📄 index.php
字号:
<?php
define('W_T',__FILE__ ? substr(__FILE__,0,-16) : '../');
require_once(W_T.'global.php');
$db_blogurl = substr($db_blogurl,0,-7);
$tablewidth = '95%';
$i_table = 'bgcolor="#E5E3E3"';
$pagesize = 100;
$title = '';
$cid = (int)$_GET['cid'];
require_once PrintEot('simple_head');
if ($cid > 0) {
include_once(R_P.'simple/simple_thread.php');
} elseif ((int)$itemid > 0) {
include_once(R_P.'simple/simple_read.php');
} elseif ((int)$uid > 0) {
include_once(R_P.'simple/simple_usershow.php');
} else {
include_once(R_P.'simple/simple_index.php');
}
$ft_gzip = $db_obstart==1 ? 'Gzip enabled' : 'Gzip disabled';
$wind_spend = '';
if ($db_footertime==1) {
$db && $qn = $db->query_num;
$t_array = explode(' ',microtime());
$totaltime = number_format(($t_array[0]+$t_array[1]-$P_S_T),6);
$wind_spend = "Time $totaltime second(s),query:$qn";
}
include PrintEot('simple_footer');
$output = str_replace(array('<!--<!---->','<!---->'),'',ob_get_contents());
if ($db_htmifopen) {
$output = preg_replace(
"/\<a(\s*[^\>]+\s*)href\=([\"|\']?)([^\"\'>\s]+\.php\?[^\"\'>\s]+)([\"|\']?)/ies",
"Htm_cv('\\3','<a\\1href=\"')",
$output
);
}
ob_end_clean();
echo ObContents($output);
ObFlush();
exit;
function smpage($count,&$page,$per,$url){
global $tablecolor;
$ret = '';
$pre = 3;
$next = 4;
$sum = ceil($count/$per);
$page > $sum && $page = $sum;
(int)$page<1 && $page = 1;
if ($sum <= 1){
return;
} else {
$ret = "<a href='$url&page=1'><< </a>";
$flag = 0;
for ($i=$page-$pre;$i <= min($sum,$page+$next);$i++) {
if ($i<1) continue;
$ret .= $i==$page ? " <b>$page</b> " : " <a href=\"$url&page=$i\"> $i </a>";
}
$ret .= " <input type=\"text\" size=\"2\" style=\"height: 16px; border:1px solid #E5E5E5;\" onkeydown=\"javascript: if(window.event.keyCode==13) window.location='{$url}'+this.value;\"> <a href=\"$url&page=$sum\"> >></a> Pages: ( $page/$sum total )";
return $ret;
}
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -