admin/inc/inc_menu_func.php
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php
/**
* 管理菜单函数
*
* @version $Id: inc_menu_func.php 1 10:32 2010年7月21日Z tianya $
* @package DedeCMS.Administrator
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(dirname(__FILE__)."/../config.php");
require_once(DEDEINC."/dedetag.class.php");
$headTemplet = "<dl class='bitem' id='sunitems~cc~'><dt onClick='showHide(\"items~cc~\")'><b>~channelname~</b></dt>
<dd style='display:~display~' class='sitem' id='items~cc~'>
<ul class='sitemu'>\r\n";
$footTemplet = "</ul>\r\n</dd>\r\n</dl>\r\n";
$itemTemplet = "<li>~link~</li>\r\n";
function GetMenus($userrank,$topos='main')
{
global $openitem,$headTemplet,$footTemplet,$itemTemplet;
if($topos=='main')
{
$openitem = (empty($openitem) ? 1 : $openitem);
$menus = $GLOBALS['menusMain'];
}
else if($topos=='module')
{
$openitem = 100;
$menus = $GLOBALS['menusMoudle'];
}
$dtp = new DedeTagParse();
$dtp->SetNameSpace('m','<','>');
$dtp->LoadSource($menus);
$dtp2 = new DedeTagParse();
$dtp2->SetNameSpace('m','<','>');
$m = 0;
foreach($dtp->CTags as $i=>$ctag)
{
if($ctag->GetName()=='top' && ($ctag->GetAtt('rank')=='' || TestPurview($ctag->GetAtt('rank')) ))
{
if($openitem!=999 && !preg_match("#".$openitem.'_'."#", $ctag->GetAtt('item')) && $openitem!=100) continue;
$m++;
echo "<!-- Item ".($m+1)." Strat -->\r\n";
$htmp = str_replace("~channelname~",$ctag->GetAtt("name"),$headTemplet);
if(empty($openitem) || $openitem==100)
{
if($ctag->GetAtt('notshowall')=='1') continue;
$htmp = str_replace('~display~',$ctag->GetAtt('display'),$htmp);
}
else
{
if($openitem==$ctag->GetAtt('item') || preg_match("#".$openitem.'_'."#", $ctag->GetAtt('item')) || $openitem=='-1')
$htmp = str_replace('~display~','block',$htmp);
else
$htmp = str_replace('~display~','none',$htmp);
}
后面还有 48 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。