📄 main.php
字号:
}
@mysql_query("delete from {$db_prefix}online where time <'$temp'", $myconn);
@mysql_query("delete from {$db_prefix}online2 where time <'$temp'", $myconn);
$result = mysql_query("select * from {$db_prefix}online2", $myconn);
$gouer=mysql_num_rows($result);
$counter = $reger + $gouer;
$result = mysql_query("select * from {$db_prefix}bbsinfo", $myconn);
if ($b_row = mysql_fetch_array($result)) {
if ($counter >= $b_row["higholnum"]) {
mysql_query("update {$db_prefix}bbsinfo set higholnum='$counter',higholtime='$time'", $myconn);
}
}
sj('<li class="li-1">$_p_main[12]<span class="s-nums">' . $row2['totalmember'] . '</span></li><li class="li-2">$_p_main[0]<span class="s-nums">' . $reger . '</span></li><li class="li-3">$_p_main[1]<span class="s-nums">' . $gouer . '</span></li><li class="li-4">$_p_main[2]<span class="s-nums">' . $counter . '</span></li><li class="li-5">$_p_main[3]<span class="s-nums">' . $b_row['higholnum'] . '</span></li><li class="li-6">$_p_main[4]<span class="s-nums">' . echotime($b_row['higholtime']) . '</span></li><li class="li-7">$_p_main[6]<span class="s-nums">' . $row2['highdanum'] . '</span></li><li class="li-8">$_p_main[7]<span class="s-nums">' . echotime($row2['highdatime']) . '</span></li>', 's_8', $time, array('$_p_main[0]', '$_p_main[1]', '$_p_main[2]', '$_p_main[3]', '$_p_main[4]', '$_p_main[5]','$_p_main[6]', '$_p_main[7]','$_p_main[12]'));
include'cache/s_8.php';
}
$vmain[8] = $text;
break;
case 9:
jsucache($val, " ORDER BY postnum DESC LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, 'postnum');
break;
case 10:
jsucache($val, " ORDER BY a DESC LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, 'a');
break;
case 11:
jsucache($val, " ORDER BY b DESC LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, 'b');
break;
case 12:
jsucache($val, " ORDER BY c DESC LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, 'c');
break;
case 13:
jsucache($val, "where admin>0 || forums ORDER BY lasttime LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, "lasttime");
break;
case 15:
jstcache($val, "where state>0 && fid='$fid' && recommend>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[$val], 1, $tpup, $_tp4, $_tp7, $time, "ft_" . $fid . "_");
break;
case 16:
if (!$fid) {
break;
}
if (file_exists('cache/c_' . $fid . '.php')) {
include'cache/c_' . $fid . '.php';
clearstatcache();
} else {
$jstime = 0;
}
if (!$tpup) {
break;
}
if ($jstime < ($time - $intervals[16])) {
$tpup--;
$result = mysql_query("select * from {$db_prefix}forums where fid='$fid'", $myconn);
$row = mysql_fetch_array($result);
$jstime = $row['ctime'];
$countdata = explode('|', $row['countdata']);
$hour1 = date('G', $time);
$hour2 = date('G', $jstime);
if ($hour1 == $hour2) {
$_count = $row['count'];
$countdata[$hour1] = $row['count'];
} else {
for($i = $hour1 - $hour2, $n = $hour1;$i > 0;$i--, $n--) {
if ($n < 0) {
$n = 23;
}
$countdata[$n] = 0;
}
$countdata[$n] = $row['count'];
$_count = 0;
}
$rsql = 1;
}
if ($time < $jstime || ($time - $jstime > 86400)) {
$hour1 = date("G", $time);
$_count = 0;
$countdata = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
$rsql = 1;
}
if ($rsql) {
$_countdata = implode('|', $countdata);
@mysql_query("update {$db_prefix}forums set ctime='$time',count='$_count',countdata='$_countdata' where fid='$fid'" , $myconn);
for($i = 0, $n = $hour1;$i < $_tp7[16];$i++, $n--) {
if ($n < 0) {
$n = 23;
}
$m = $n == 23?0 : $n + 1;
$nf = $n < 10?'0':'';
$mf = $m < 10?'0':'';
$content .= '<li class="li-'.($i+1).'">' . $nf . $n . ':00 -' . $mf . $m . ':00<span class="s-nums">' . $countdata[$n] . '</span></li>';
}
sj($content, 'c_' . $fid, $time);
include'cache/c_' . $fid . '.php';
}
$vmain[16] = $text;
break;
case 18:
jstcache($val, "where state>0 && recommend>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[$val], 0, $tpup, $_tp4, $_tp7, $time);
break;
case 20:
if (!$wid) {
break;
}
jstcache($val, "where wid='$wid' && state>0 && recommend>0 ORDER BY posttime DESC LIMIT 0," . $_tp7[$val], 2, $tpup, $_tp4, $_tp7, $time, "wt_" . $wid . "_");
break;
case 21:
if (!$wid) {
break;
}
jstcache($val, "where state>0 && wid='$wid' ORDER BY hits DESC LIMIT 0," . $_tp7[$val], 2, $tpup, $_tp4, $_tp7, $time, "wr_" . $wid . "_");
break;
case 24:
$s_v24 = jsucache($val, " ORDER BY regdate DESC LIMIT 0,$_tp7[$val]", $tpup, $_tp7, $time, 'regdate');
break;
case 26:
if (file_exists('cache/s_26.php')) {
include 'cache/s_26.php';
clearstatcache();
} else {
$jstime = 0;
}
if ($jstime < ($time - $intervals[26]) && $tpup) {
$tpup--;
$i = 0;
$result = mysql_query("select * from {$db_prefix}annex where code='poll' && fix='1' && pollfix=1", $myconn);
while ($annexs = mysql_fetch_array($result)) {
$i++;
unset($pollscontent, $polls, $pollslist, $pollslist_1);
$content = explode("|", $annexs["content"]);
while (list($key, $val) = each($content)) {
$poll = explode("\t", $val);
$pollscontent[$key] = $poll[0];
$polls[$key] = $poll[1];
}
$pollnum = array_sum($polls);
$html = explode('|', $annexs['type']);
$polltype = $html[0]?'checkbox' : 'radio';
$pollname = $html[0]?'poll[]' : 'poll';
while (list($key, $val) = each($polls)) {
$ptext = trim($pollscontent[$key]);
$pollslist[0] .= '<li><input type=' . $polltype . ' name=' . $pollname . ' value='
. $key . '><a title="' . htmlspecialchars($ptext) . '">' . substrs($ptext, $_tp4[26][0]) . '</a></li>';
$pollslist[1] .= '<li><input type=' . $polltype . ' name=' . $pollname . ' value=' . $key . '><a title="' . htmlspecialchars($ptext) . '">' . substrs($ptext, $_tp4[26][1]) . '</a></li>';
}
$annexhtml[0] .= '<form name="webpoll' . $i . '" method="post" action="poll.php?aid=' . $annexs['id'] . '"><div class="s-title">' . htmlspecialchars($annexs['title']) . '</div>' . $pollslist[0] . '</form><li class="s-submit"><input type="submit" onmouseup="window.location=(\'read.php?tid='
. $annexs['tid'] . '\')" value="$_p_main[9]" /><input onmouseup="webpoll' . $i . '.submit()" name="submit" value="$_p_main[8]" type="submit" /></li>' ;
$annexhtml[1] .= '<form name="webpoll' . $i . '" method="post" action="poll.php?aid=' . $annexs['id'] . '"><div class="s-title">' . htmlspecialchars($annexs['title']) . '</div>' . $pollslist[1] . '</form><li class="s-submit"><input type="submit" onmouseup="window.location=(\'read.php?tid='
. $annexs['tid'] . '\')" value="$_p_main[9]" /><input onmouseup="webpoll' . $i . '.submit()" name="submit" value="$_p_main[8]" type="submit" /></li>' ;
}
sj($annexhtml, 's_26', $time, array('$_p_main[8]', '$_p_main[9]'));
include 'cache/s_26.php';
}
$vmain[26] = $text[STYLE_CS];
break;
}
}
$tpl_center = '';
$starttime = microtime();
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -