include/typeunit.class.menu.php
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<?php if(!defined('DEDEINC')) exit("Request Error!");
/**
* 栏目单元,主要用户管理后台管理菜单处
*
* @version $Id: typeunit.class.menu.php 1 15:21 2010年7月5日Z tianya $
* @package DedeCMS.Libraries
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
* @license http://help.dedecms.com/usersguide/license.html
* @link http://www.dedecms.com
*/
require_once(DEDEDATA."/cache/inc_catalog_base.inc");
/**
* 栏目单元,主要用户管理后台管理菜单处
*
* @package TypeUnit
* @subpackage DedeCMS.Libraries
* @link http://www.dedecms.com
*/
class TypeUnit
{
var $dsql;
var $aChannels;
var $isAdminAll;
//php5构造函数
function __construct($catlogs='')
{
global $cfg_Cs;
$this->dsql = $GLOBALS['dsql'];
$this->aChannels = Array();
$this->isAdminAll = false;
if(!empty($catlogs) && $catlogs!='-1')
{
$this->aChannels = explode(',',$catlogs);
foreach($this->aChannels as $cid)
{
if($cfg_Cs[$cid][0]==0)
{
$this->dsql->SetQuery("Select id,ispart From `#@__arctype` where reid=$cid");
$this->dsql->Execute();
while($row = $this->dsql->GetObject())
{
//if($row->ispart==1)
$this->aChannels[] = $row->id;
}
}
}
}
else
{
$this->isAdminAll = true;
}
}
function TypeUnit($catlogs='')
{
$this->__construct($catlogs);
}
后面还有 166 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。