本文整理汇总了PHP中Load::moduleCode方法的典型用法代码示例。如果您正苦于以下问题:PHP Load::moduleCode方法的具体用法?PHP Load::moduleCode怎么用?PHP Load::moduleCode使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Load
的用法示例。
在下文中一共展示了Load::moduleCode方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
if(isset($this->Get['code']))
{
$this->Code = $this->Get['code'];
}elseif(isset($this->Post['code']))
{
$this->Code = $this->Post['code'];
}
if(isset($this->Get['id']))
{
$this->ID = (int)$this->Get['id'];
}elseif(isset($this->Post['id']))
{
$this->ID = (int)$this->Post['id'];
}
if(isset($this->Get['ids']))
{
$this->IDS = $this->Get['ids'];
}elseif(isset($this->Post['ids']))
{
$this->IDS = $this->Post['ids'];
}
$this->FormHandler = new FormHandler();
Load::moduleCode($this);$this->Execute();
}
示例2: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config);
$rtype = user()->get('role_type');
$rtype || $rtype = 'normal';
$artypes = explode(',', ini('upload.role'));
if (false === array_search($rtype, $artypes))
{
$msg = 'Access Deined';
if ($this->Code == 'image')
{
$ops = array(
'status' => 'fails',
'msg' => $msg
);
}
elseif ($this->Code == 'editor')
{
$ops = array(
'error' => 1,
'message' => $msg
);
}
else
{
exit($msg);
}
exit(jsonEncode($ops));
}
$runCode = Load::moduleCode($this);
$this->$runCode();
}
示例3: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
$this->ID = $this->Get['id']?(int)$this->Get['id']:(int)$this->Post['id'];
$this->configPath=CONFIG_PATH;
Load::moduleCode($this);$this->Execute();
}
示例4: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config);
$this->iniz();
$runCode = Load::moduleCode($this);
$this->$runCode();
}
示例5: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
if (MEMBER_ID>0) {
}
$this->iiConfig = ini('settings');
Load::moduleCode($this);$this->Execute();
}
示例6: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
$this->ID = (int)$this->Post['id']?(int)$this->Post['id']:(int)$this->Get['id'];
Load::moduleCode($this);$this->Execute();
}
示例7: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
$this->Username = isset($this->Post['username'])?trim($this->Post['username']):"";
$this->Password = isset($this->Post['password'])?trim($this->Post['password']):"";
Load::moduleCode($this);$this->Execute();
}
示例8: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config);
if (MEMBER_ID < 1)
{
$this->Messager(__('请先登录!'), '?mod=account&code=login');
}
$runCode = Load::moduleCode($this, false, false);
$this->$runCode();
}
示例9: ModuleObject
public function ModuleObject( $config )
{
$this->MasterObject($config);
$loader = INCLUDE_PATH.'api/func/loader.php';
if (is_file($loader))
{
require $loader;
}
$runCode = Load::moduleCode($this);
$this->main();
}
示例10: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config);
$runCode = Load::moduleCode($this);
global $rewriteHandler;
$rewriteHandler = null;
$this->$runCode();
}
示例11: ModuleObject
function ModuleObject($config)
{
$this->MasterObject($config);
$this->FormHandler = new FormHandler;
include_once(LIB_PATH.'io.han.php');
$this->IoHandler=new IoHandler;
Load::moduleCode($this);$this->Execute();
}
示例12: ModuleObject
function ModuleObject($config){
$this->MasterObject($config); Load::logic('product');
$this->ProductLogic = new ProductLogic();
Load::logic('pay');
$this->PayLogic = new PayLogic();
Load::logic('me');
$this->MeLogic = new MeLogic();
Load::logic('order');
$this->OrderLogic = new OrderLogic();
$this -> config =$config;
$this->ID = (int) ($this->Post['id'] ? $this->Post['id'] : $this->Get['id']);
Load::moduleCode($this);$this->Execute();
}
示例13: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config); Load::logic('product');
$this->ProductLogic = new ProductLogic();
Load::logic('pay');
$this->PayLogic = new PayLogic();
Load::logic('me');
$this->MeLogic = new MeLogic();
Load::logic('order');
$this->OrderLogic = new OrderLogic();
$this->ID = ( int )($this->Post['id'] ? $this->Post['id'] : $this->Get['id']);
$this->CacheConfig = ConfigHandler::get('cache'); $this->ShowConfig = ConfigHandler::get('show'); $runCode = Load::moduleCode($this, $this->Code);
$this->$runCode();
}
示例14: __construct
public function __construct($config)
{
if (is_file(DATA_PATH.'install.lock'))
{
return $this->Alert('您已安装,如需重新安装请先删除 '.DATA_PATH.' 目录下的install.lock文件!');
}
if (true == in_array(ini('settings.site_domain'), array('localx.uuland.org', 'dev.tttuangou.net', )))
{
ini('settings.site_domain', $_SERVER['HTTP_HOST']);
ini('settings.site_url', rtrim(thtmlspecialchars('http:/'.'/'.$_SERVER['HTTP_HOST'].preg_replace("/\/+/",'/',str_replace("\\",'/',dirname($_SERVER['PHP_SELF']))."/")),'/'));
}
$this->MasterObject($config);
$runCode = Load::moduleCode($this);
$this->$runCode();
}
示例15: ModuleObject
function ModuleObject( $config )
{
$this->MasterObject($config);
if (MEMBER_ID < 1)
{
if (get('pid'))
{
header('Location: '.rewrite('?view='.get('pid')));
exit;
}
$this->Messager(__('请先登录!'), '?mod=account&code=login');
}
$runCode = Load::moduleCode($this);
$this->$runCode();
}