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

📄 main.php

📁 多国语言系统,支持中英文,繁体文.有很强的 稳定性.
💻 PHP
字号:
<?
####################################################################################
//					弨旛
####################################################################################
set_time_limit(0);
if(!$is_admin){
nalog_error("偙偺僾儔僌僀儞偼娗棟幰偺傒棙梡弌棃傑偡丅");
}
?>

<?
####################################################################################
//					嵟弶偺夋柺
####################################################################################
if(!$pmode){?>
<table width=100% board=0 cellpadding=2 cellspacing=0 align=center bgcolor=white>
<tr><td align=center>
<br><br><br><br><br>
<img src="plug_in/<?=$plugin[dir]?>/logo.gif" border=0>
<br><br><br><br><br><br>
</td></tr>
</table>
<?}?>

<?
####################################################################################
//					僶僢僋傾僢僾夋柺
####################################################################################
if($pmode==1){?>
<?
$tables=nalog_list_bd();
$total=count($tables);

$page=10;
$pageviewsu=10; 
$pagesu=ceil($total/$page); 
$start=($page*$pagenum); 
$no=$total-$start;
$pagegroup=ceil(($pagenum+1)/$pageviewsu); 
$pagestart=($pageviewsu*($pagegroup-1))+1; 
$pageend=$pagestart+$pageviewsu-1;
$nowpage=$pagenum+1; 
$send="&page=$page&";
?>
		<table align=center width=98% cellpadding=4 cellspacing=0 border=1 bordercolor=white>
		<form method=post action=plug_in/<?=$plugin[dir]?>/dump.php>
		<tr>
		<td>崌寁 <b><?=$total?></b>偮偺僇僂儞僞</td>
		<td align=right>曐懚曽朄 : <input type=radio name=how value=1 checked> 僟僂儞儘乕僪
		<input type=radio name=how value=0> 僒乕僶乕偵曐懚 (曐懚宱楬 : <?=str_replace("admin_counter.php","*.sql",$PHP_SELF)?>)</td> 
		</tr> 
		</table>
	
		<table align=center width=98% cellpadding=4 cellspacing=0 border=1 bordercolor=white>
		<input type=hidden name=counter value="<?=$counter?>">
		<input type=hidden name=id value="<?=$id?>">
		<input type=hidden name=pmode value="<?=$pmode?>">
		<tr bgcolor=#C9F0FF>
		<td width=1% nowrap align=center>斣崋</td>
		<td width=1% nowrap align=center>慖戰</td>
		<td width=92% align=center>僇僂儞僞柤</td>
		<td width=1% nowrap align=center>僇僂儞僞婰榐</td>
		<td width=1% nowrap align=center>OS/BW婰榐</td>
		<td width=1% nowrap align=center>LOG婰榐</td>
		<td width=1% nowrap align=center>DLOG婰榐</td>
		<td width=1% nowrap align=center>朘栤幰婰榐</td>
		<td width=1% nowrap align=center>夛堳婰榐</td>
		</tr>
<?
		$j=0;
		for($i=$start;$i<$start+$page;$i++)
		{
		if(!$tables[$i]){break;}
		$board_name=$tables[$i];

		$total_data=mysql_fetch_array(mysql_query("select count(*) from nalog3_data where counter='$board_name'"));
		$total_os=mysql_fetch_array(mysql_query("select count(*) from nalog3_os where counter='$board_name' and os='1'"));
		$total_bw=mysql_fetch_array(mysql_query("select count(*) from nalog3_os where counter='$board_name' and os='0'"));
		$total_log=mysql_fetch_array(mysql_query("select count(*) from nalog3_log_$board_name"));
		$total_dlog=mysql_fetch_array(mysql_query("select count(*) from nalog3_dlog_$board_name"));
		$total_dlog=mysql_fetch_array(mysql_query("select count(*) from nalog3_dlog_$board_name"));
		$total_counter=mysql_fetch_array(mysql_query("select count(*) from nalog3_counter_$board_name"));
		$total_member=mysql_fetch_array(mysql_query("select count(*) from nalog3_counter_$board_name where id<>''"));


		echo"
		<tr bgcolor=white>
		<td width=1% nowrap align=center>$no</td>
		<td width=1% nowrap align=center><input type=checkbox name=name[$j] value='$board_name' checked id=name[$j]></td>
		<td width=92%><b><label for=name[$j]>$board_name</label></b></td>
		<td width=1% nowrap align=right>$total_data[0]擔</td>
		<td width=1% nowrap align=right>$total_os[0]/$total_bw[0]屄</td>
		<td width=1% nowrap align=right>$total_log[0]屄</td>
		<td width=1% nowrap align=right>$total_dlog[0]屄</td>
		<td width=1% nowrap align=right>$total_counter[0]恖</td>
		<td width=1% nowrap align=right>$total_member[0]恖</td>
		</tr>
		";
		$no--;
		$j++;
		}
?>
		</table>
		<table align=center width=98% cellpadding=4 cellspacing=0 border=1 bordercolor=white>
		<tr>
		<td align=center><?nalog_index()?></td>
		</tr>
		<tr bgcolor=white>
		<td align=center><input type=submit class=button value=僶僢僋傾僢僾></td>	
		</tr>
		</form>
		</table>
<?}?>

<?
####################################################################################
//					暅媽夋柺
####################################################################################
if($pmode==2){?>

		<script language=javascript>
		function chk(){
		if(!ok.filename.value){alert('暅媽懳徾僼傽僀儖傪慖戰偟偰壓偝偄\n傕偟丄懳徾僼傽僀儖偑僒乕僶乕偵側偗傟偽丄僼傽僀儖傪傾僢僾儘乕僪偟偰壓偝偄');ok.filename.focus();return false;}
		}
		function chkup(){
		if(!up.backup.value){alert('傾僢僾儘乕僪偡傞僼傽僀儖傪慖傫偱壓偝偄');up.backup.click();return false;}
		}
		</script>

		<table align=center width=98% cellpadding=4 cellspacing=0 border=1 bordercolor=white>
		<tr bgcolor=#C9F0FF>
		<td align=center>n@log 僨乕僞乕 僶僢僋傾僢僾 僼傽僀儖 傾僢僾儘乕僪</td>
		</tr>
		</table>

		<table align=center width=98% cellpadding=10 cellspacing=0 border=1 bordercolor=white>
		<form method=post action=plug_in/<?=$plugin[dir]?>/upload.php onsubmit="return chkup()" name=up enctype=multipart/form-data>
		<tr bgcolor=white>
		<td><input type=file name=backup size=32 class=input> 偙偺僼傽僀儖傪 n@log僼僅儖僟乕偵揮憲偟傑偡丅</td>
		<td align=right><input type=submit class=button value=揮憲></td>
		</tr>
		</form>
		</table>

		<table align=center width=98% cellpadding=10 cellspacing=0 border=1 bordercolor=white>
		<tr><td>僨乕僞乕傪暅媽偡傞偵偼丄n@log偑愝抲偝傟偰偄傞僼僅儖僟乕偵丄僶僢僋傾僢僾僼傽僀儖(*.sql)傪擖傟偰偍偔昁梫偑偁傝傑偡丅<br>
		FTP偱揮憲偡傞偐丄忋婰偺僼僅乕儉偱揮憲偡傞僼傽僀儖傪揧晅偟偰壓偝偄丅<br>
		</table>

		<table align=center width=98% cellpadding=4 cellspacing=0 border=1 bordercolor=white>
		<tr bgcolor=#C9F0FF>
		<td align=center>n@log 僼僅儖僟乕偵曐懚偝傟偨僨乕僞乕僼傽僀儖暅媽</td>
		</tr>
		</table>

		<table align=center width=98% cellpadding=10 cellspacing=0 border=1 bordercolor=white>
		<tr bgcolor=white>
		<form method=post action=plug_in/<?=$plugin[dir]?>/restore.php onsubmit="return chk()" name=ok>
		<td><select name=filename>
		<option value="">僨乕僞乕傪暅媽偡傞僼傽僀儖傪慖傫偱壓偝偄丅</option>
		<?
		$handle=@opendir("./");
		while ($dir = @readdir($handle))
		{
		if(!eregi("\.sql$",$dir)){continue;}
		echo "<option value=\"$dir\">$dir</option>";
		}
		?>
		</select> 偙偺僼傽僀儖傪僒乕僶乕偺n@log偵暅媽偟傑偡丅</td>
		<td align=right><input type=submit class=button value=暅媽奐巒></td>
		</tr>
		</table>


<?}?>

<?
####################################################################################
//					僾儔僌僀儞忣曬
####################################################################################
if($pmode==3){?>
<table width=100% board=0 cellpadding=5 cellspacing=0 align=center bgcolor=white>
<tr>
<td width=99% valign=top>
	<table width=100% board=0 cellpadding=4 cellspacing=0 align=center bgcolor=white>
	<tr>
	<td width=1% nowrap>僾儔僌僀儞柤</td>
	<td width=99%> : <?=$plugin[name]?></td>
	</tr>	
	<tr>
	<td width=1% nowrap>僾儔僌僀儞 ID</td>
	<td width=99%> : <?=$plugin[id]?></td>
	</tr>
	<tr>
	<td width=1% nowrap>僶乕僕儑儞</td>
	<td width=99%> : <?=$plugin[version]?></td>
	</tr>
	<tr>
	<td width=1% nowrap>攝晍擔</td>
	<td width=99%> : <?=$plugin[date]?></td>
	</tr>
	<tr>
	<td width=1% nowrap> 嶌幰 </td>
	<td width=99%> : <?=$plugin[programmer]?></td>
	</tr>
	<tr>
	<td width=1% nowrap>e-mail</td>
	<td width=99%> : <?=$plugin[email]?></td>
	</tr>
	<tr>
	<td width=1% nowrap>homepage</td>
	<td width=99%> : <?=$plugin[homepage]?></td>
	</tr> 
	</table>                        
</td>
<td width=1% nowrap valign=top><img src="plug_in/<?=$plugin[dir]?>/logo.gif" border=0></td>
</tr>
</table>
<?}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -