📄 index.php
字号:
<?php
include'include/begin.php';
$fid = '';
$tp3 = array(5, 18, 17, 26);
$tpl_html = 'index';
include language();
$pagename_m = $_pagename[1];
if (file_exists('./cache/new.twt')) {
$new_f = file_get_contents('./cache/new.twt');
} else {
$new_f = '';
$new_file = '';
$new_link = '';
$new_title = '';
$result = mysql_query("select * from {$db_prefix}title where recommend >'0' && state>'0' && thumb>'0' ORDER BY posttime DESC LIMIT 0,"
. (int)$f_new, $myconn);
while ($row = mysql_fetch_array($result)) {
if ($new_file != '') {
$new_file .= '|';
}
if ($new_link != '') {
$new_link .= '|';
}
if ($new_title != '') {
$new_title .= '|';
}
$new_file .= $softdir . '/thumbs/' . floor($row['cid'] / 10000) . '/' . $row['cid'] . '_m.jpg';
$new_link .= $row['wid']?'vread-' . $row['cid'].'.html': 'read-' . $row['cid'].'.html';
$new_title .= str_replace('|', '', $row['title']);
}
$new_f = 'bcastr_file=' . $new_file . '&bcastr_link=' . $new_link . '&bcastr_title=' . $new_title;
$fp = fopen('./cache/new.twt', 'w');
fwrite($fp, $new_f);
fclose($fp);
}
include'include/main.php';
$content='';
while (list($key, $val) = each($tp6)) {
$idc++;
$content1 = $content2 = $content3 = '';
$i = 0;
if($val===true){
$_val=$key;
if ($t1[$_val]==7){
$content1 = jsjcache(22, "where wid='$_val' && state>0 && thumb>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[22], $tpup, $_tp7, $time, 'wid_' . $_val . '_');
$content2 .= tpl_fun_tpx2(array('hover' => $i == 0?'selectTag':'', 'name' => $wname[$_val], 'id' => $idc, 'i' => $i, 'wid' => $_val));
$content3 .= tpl_fun_tpx0(array('block' => $i == 0?'selectTag':'', 'wid' => $_val, 'content' => $content1, 'softdir' => $softdir, 'i' => $i, 'id' => $idc));
}else{
$ts_id=0;
$ts_txt='';
$content1 = jstcache(22, "where wid='$_val' && state>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[22], 2, $tpup, $_tp4, $_tp7, $time, 'new_' . $_val . '_', 1);
$content2 .= tpl_fun_tpx2(array('hover' => $i == 0?'selectTag':'', 'name' => $wname[$_val], 'id' => $idc, 'i' => $i, 'wid' => $_val));
$content3 .= tpl_fun_tpx3(array('block' => $i == 0?'selectTag':'', 'wid' => $_val, 'tsdir' => floor($ts_id / 10000), 'tsid' => $ts_id, 'tstxt' => $ts_txt, 'content' => $content1, 'softdir' => $softdir, 'i' => $i, 'id' => $idc));
}
$content.= tpl_fun_tpx1(array('id' => $idc, 'tpx2' => $content2, 'tpx3' => $content3,'tpx10'=>''));
}else{
$tpx10=tpl_fun_tpx10(array('tabname'=>$wname[$key]));
while (list(, $_val) = each($val)) {
if ($t1[$_val]==7){
$content1 = jsjcache(22, "where wid='$_val' && state>0 && thumb>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[22], $tpup, $_tp7, $time, 'wid_' . $_val . '_');
$content2 .= tpl_fun_tpx2(array('hover' => $i == 0?'selectTag':'', 'name' => $wname[$_val], 'id' => $idc, 'i' => $i, 'wid' => $_val));
$content3 .= tpl_fun_tpx0(array('block' => $i == 0?'selectTag':'', 'wid' => $_val, 'content' => $content1, 'softdir' => $softdir, 'i' => $i, 'id' => $idc));
}else{
$ts_id=0;
$ts_txt='';
$content1 = jstcache(22, "where wid='$_val' && state>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[22], 2, $tpup, $_tp4, $_tp7, $time, 'new_' . $_val . '_', 1);
$content2 .= tpl_fun_tpx2(array('hover' => $i == 0?'selectTag':'', 'name' => $wname[$_val], 'id' => $idc, 'i' => $i, 'wid' => $_val));
$content3 .= tpl_fun_tpx3(array('block' => $i == 0?'selectTag':'', 'wid' => $_val, 'tsdir' => floor($ts_id / 10000), 'tsid' => $ts_id, 'tstxt' => $ts_txt, 'content' => $content1, 'softdir' => $softdir, 'i' => $i, 'id' => $idc));
}
$i++;
}
$content.= tpl_fun_tpx1(array('id' => $idc, 'tpx2' => $content2, 'tpx3' => $content3,'tpx10'=>$tpx10));
}
}
$content_100 = '';
if (!$fuclose){
$i = 0;
$content1 = $content2 = $content3 = '';
while (list(, $_val) = @each($tp9)) {
$ts_id=0;
$ts_txt='';
$content1 = jstcache(23, "where fid='$_val' && state>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[23], 1, $tpup, $_tp4, $_tp7, $time, 'fnew_' . $_val . '_', 1);
$content2 .= tpl_fun_tpx5(array('hover' => $i == 0?'selectTag':'', 'name' => $forumnames[$_val], 'id' => 100, 'i' => $i, 'fid' => $_val));
$content3 .= tpl_fun_tpx6(array('block' => $i == 0?'selectTag':'', 'fid' => $_val, 'content' => $content1, 'softdir' => $softdir, 'i' => $i, 'id' => 100,'tsid'=>$ts_id,'tstxt'=>$ts_txt,'tsdir'=>floor($ts_id / 10000)));
$i++;
}
$content_100 = tpl_fun_tpx4(array('id' => 100, 'tpx5' => $content2, 'tpx6' => $content3,'bbsname'=>$bbsname));
}
include_once'./cache/template/m_' . $style_id . '_' . $tpl_html . '.php';
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -