⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.php

📁 PHP整站程序
💻 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"&nbsp;&nbsp;&nbsp;<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 + -