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

📄 modtemp.php

📁 学校网站源码http://您的网址/admin/admin_login.asp 默认登录用户:admin 默认登录密码:admin
💻 PHP
字号:
<style>
.list{BACKGROUND-COLOR: expression((this.sectionRowIndex%2==0)?'#f5f5f5':'#ffffff');font-size:14px;}
</style>

<?php
define("ROOTPATH", "../");
include(ROOTPATH."config.inc.php");
include(ROOTPATH."language/".$sLan."_".$charset.".php");
include(ROOTPATH."includes/SysGlobal.php");
include(ROOTPATH."includes/pro.php");
include(ROOTPATH."includes/func/common.inc.php");
include(ROOTPATH."includes/func/db.inc.php");


		echo "<table cellspacing='0' cellpadding='5' width='760' style='border:1px #d5d5d5 solid'><tr bgcolor='#f5f5f5' >
   <td >插件名称</td> <td >插件标签</td>
    <td >默认模版</td>
  </tr><tr class=list>";
		$FromPath=".";
		$handle=opendir($FromPath);
		while ($ifile = readdir($handle)){
			$nowfile=$FromPath."/".$ifile;

    		if($ifile!="." && $ifile!=".." && !is_dir($nowfile) && $ifile!="modtemp.php" && $ifile!="MySearch.php" && substr($ifile,0,4)!="Advs"){
    			
						
						$iname=str_replace(".php","",$ifile);
						$iname="mod".$iname;
						$msql->query("select plusname from $tbl_plus_set where pluslable='$iname'");
						if($msql->next_record()){
							$plusname=$msql->f('plusname');
						}
						$lable="{#".$iname."#}";
						$fd=fopen($nowfile,"r");
						$mcon=fread($fd,10000);
						fclose($fd);
						$modulearr=explode('PSET["tempname"],"',$mcon);
						$modulearrs=explode('")',$modulearr[1]);
						
						if($modulearrs[0]!=""){
							echo "<td width=220 >".$plusname."</td><td width=250 >".$lable."</td><td >".$modulearrs[0];
						}else{
							echo "<td width=220 >".$plusname."</td><td width=250 >".$lable."</td><td >无";
						}

						
						echo "</td></tr><tr class=list>";
					
    		
    				
    		}
      		
     	}
      	closedir($handle); 

		echo "</tr></table>";




?>

⌨️ 快捷键说明

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