index.php
来自「采用模块化设计,自由组合文章,软件,论坛等模块,安装方便快捷 模板支持Dre」· PHP 代码 · 共 41 行
PHP
41 行
<?php
if (!defined('ROOT'))
exit('Access Denied');
$m=array();
$a= allmods();
foreach ($a as $_mod)
{
$_t[0] = urlencode($_mod);
$_t[1] = modname($_mod);
$_t[2] = file_exists('./' . $_mod . '/box_admin.php') ? true : false;
$_t[3] = ver($_mod);
$_mod=='admin' && $_t[3]=ver('center');
$_t[4] = show_file('./'.$_mod.'/templates',0);
$_t[5] = show_file('./'.$_mod.'/languages',0);
$_t[6] = $_t[7]=array();
$_mod=='center' && $_t[6] = show_file('./templates',0);
$_mod=='center' && $_t[7] = show_file('./languages',0);
$func=$_mod.'_adminmenu';
call_func($func);
$_t[8]=$func();
array_push($m, $_t);
}
$_f = array();
$_d = opendir('./');
while ($entry = readdir($_d))
{
is_dir('./' . $entry) && file_exists('./' . $entry . '/include/' . $entry .
'.sql') && !isset($sys['mod'][$entry]) && $_f[] = $entry;
}
closedir($_d);
$_u = array();
foreach ($sys['mod'] as $_mod => $val)
{
file_exists('./' . $_mod . '/patch/index.php') && $_u[] = $_mod;
}
?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?