anuchit2499
สมุนแก๊งเสียว
พลังน้ำใจ: 35
ออฟไลน์
กระทู้: 736
|
|
« เมื่อ: 12 กันยายน 2011, 23:14:59 » |
|
ช่วยด้วย ที่หน้า index อ่านภาษาไทยได้แค่ 8 ตัวอักษรถ้ามากกว่านั้น มันจะกลายเป็นภาษาต่างด่าวครับ
ต้องแก้ตรงไหนครับ
ผมแนบ index.php มาให้ด้วยครับ
index.php
// +------------------------------------------------------------------------+ session_start();
if( file_exists("install.php")) { die("Please delete the file <strong>install.php</strong> from your root directory after installation. <br /> If you haven't installed the site yet, please proceed to the <a href=\"install.php\">installation process</a>."); } require('config.php');
if($_POST['select_language'] == 1 || (strcmp($_POST['select_language'],"1") == 0)) { require_once('include/settings.php'); $l_id = (int) $_POST['lang_id']; if( ! array_key_exists($l_id, $langs) ) { $l_id = 1; } setcookie(COOKIE_LANG, $l_id, time()+COOKIE_TIME, COOKIE_PATH); exit(); }
//require_once('include/functions.php'); require_once('include/user_functions.php'); require_once('include/islogged.php'); require_once('include/article_functions.php');
// define meta tags & common variables $meta_title = sprintf($lang['homepage_title'], _SITENAME); $meta_description = ''; // end $top_videos = top_videos($config['top_videos_sort'], _TOPVIDS); $new_videos = list_videos('added', _NEWVIDS); $voth = make_voth(); $video = request_video($voth, "index"); $voth_title = '<a href="'. makevideolink($video['uniq_id']).'">'. $video['artist'] .' - '. $video['video_title'] .'</a>';
if($config['show_tags'] == 1) { $tag_cloud = tag_cloud(0, $config['tag_cloud_limit'], $config['shuffle_tags']); $smarty->assign('tags', $tag_cloud); $smarty->assign('show_tags', 1); }
if($config['show_stats'] == 1) { $stats = stats(); $smarty->assign('stats', $stats); $smarty->assign('show_stats', 1); }
// Get latest articles if (_MOD_ARTICLE) { $articles = art_load_articles(0, 5);
if ( ! array_key_exists('type', $articles)) { foreach ($articles as $id => $article) { $articles[$id]['title'] = fewchars($article['title'], 10000); } $smarty->assign('articles', $articles); } }
$article_categories = art_html_list_categories($cid, $categories); $smarty->assign('art_categories', $article_categories);
$playingnow = videosplaying(9); // LIMIT TO X VIDEOS preg_match_all("/<\/li>/", $playingnow, $matches); $total_playingnow = count($matches[0]);
$smarty->assign('total_playingnow', $total_playingnow); $smarty->assign('playingnow', $playingnow); $smarty->assign('voth_title', $voth_title); $smarty->assign('video', $video);
$smarty->assign('voth', $voth); $smarty->assign('new_videos', $new_videos); $smarty->assign('top_videos', $top_videos); // --- DEFAULT SYSTEM FILES - DO NOT REMOVE --- // $smarty->assign('meta_title', $meta_title); $smarty->assign('meta_description', $meta_description); $smarty->assign('template_dir', $template_f); $smarty->display('index.tpl'); ?>
|