?? index.php
字號:
<?php
require"head.php";
//記數
function xydwcount($counter_file)
{
$count = 0;
if (file_exists($counter_file))
{
$fp = fopen($counter_file,"r");
$count = 0 + fgets($fp,6);
fclose($fp);
}
$count++;
$fp = fopen($counter_file,"w");
fputs($fp,$count);
fclose($fp);
return ($count);
}
$xydwcount=xydwcount('count.txt');
$filen=explode("¤",join("",file("xydw.php")));
$notice=$filen[0];
//bbs
function xydwbbs(){
global $bbsm;
$xydwbbsdb=@mysql_query ("SELECT * FROM $bbsm where type='forum'");
while($xydwbbs=@mysql_fetch_array($xydwbbsdb)) {
echo" <a href=bbs/thread.php?fid=$xydwbbs[fid]><span class=a4>$xydwbbs[name]</span></a><br>";
}
}
//統計
function countdb($sql){
$sql = "select count(*) as amount from $sql";
$result = @mysql_query($sql);
$row = @mysql_fetch_row($result);
$amount = $row[0];
return $amount;
}
$amountbbs = countdb($info);
$amount1 = countdb('room');
$amount2 = countdb('xydwpic');
$amount3 = countdb('down');
$news=$room=$tuya=$down=$pic=array();
$news=xydwsql('news');
$room=xydwsql('room');
$tuya=xydwsql('tuya');
$down=xydwsql('down');
$pic=xydwsql('xydwpic');
$picdb=@mysql_query ("SELECT * FROM xydwpic ORDER BY `id` DESC LIMIT 0,5");
$picarr=array();
while ($xydwpic=@mysql_fetch_array($picdb)) $picarr[]=$xydwpic;
$xydwljdb1=@mysql_query ("SELECT * FROM lj where imglogo = '' ORDER BY `id` ASC");
$xydwljarr1=array();
while ($xydwlj1=@mysql_fetch_array($xydwljdb1)) $xydwljarr1[]=$xydwlj1;
$xydwljdb2=@mysql_query ("SELECT * FROM lj where imglogo != '' ORDER BY `id` ASC");
$xydwljarr2=array();
while ($xydwlj2=@mysql_fetch_array($xydwljdb2)) $xydwljarr2[]=$xydwlj2;
include_once "html/$temp/index.htm";
require"foot.php";
?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -