Пример #1
0
	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
0
    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
0
	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
0
	function ModuleObject( $config )
	{
		$this->MasterObject($config);
		$this->iniz();
		$runCode = Load::moduleCode($this);
		$this->$runCode();
	}
Пример #5
0
	function ModuleObject($config)
	{
		$this->MasterObject($config);
		if (MEMBER_ID>0) {
				}
		$this->iiConfig = ini('settings');
		Load::moduleCode($this);$this->Execute();
	}
Пример #6
0
	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
0
	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
0
	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
0
	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
0
	function ModuleObject( $config )
	{
		$this->MasterObject($config);
		$runCode = Load::moduleCode($this);
		
		
		global $rewriteHandler;
		$rewriteHandler = null;
		
		$this->$runCode();
	}
Пример #11
0
	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
0
	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
0
	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
0
	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
0
	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();
	}
Пример #16
0
	function ModuleObject( $config )
	{
		$this->MasterObject($config);
						$this->Username = post('username', 'string');
		$this->Password = post('password', 'string');
		$this->Secques = quescrypt($this->Post['question'], $this->Post['answer']);
		if ( MEMBER_ID > 0 )
		{
			$this->IsAdmin = true;
		}
		if(strlen($_GET['code']) == 32 && strlen($_GET['state']) == 32){
			$this->Code  = 'qqlogin';
		}
				$runCode = Load::moduleCode($this);
		$this->$runCode();
	}
Пример #17
0
 function ModuleObject( $config )
 {
     $this->MasterObject($config);         if (MEMBER_ID < 1)
     {
         $this->Messager(__('请先登录!'), '?mod=account&code=login');
     }
     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']);
     $this->CacheConfig = ConfigHandler::get('cache');         $this->ShowConfig = ConfigHandler::get('show');         $runCode = Load::moduleCode($this, $this->Code);
     $this->$runCode();
 }
Пример #18
0
	function ModuleObject($config)
	{
		$this->MasterObject($config);
		include_once(LIB_PATH.'io.han.php');
self::$err_noData_help = <<<HELP
抱歉,当前无法连接到升级服务器!<br/>
--------------------------<br/>
<font id="update_server_test">正在重新检查...</font>
<br/>
--------------------------<br/>
如果有疑问,您可以联系在线客服QQ:<a href="#" onclick="javascript:window.open('http://bizapp.qq.com/webc.htm?new=0&sid=800058566&o=tttuangou.net&q=7', '_blank', 'height=544, width=644,toolbar=no,scrollbars=no,menubar=no,status=no');return false;">800058566</a><br/>
(需要提供相应服务器权限)
<script type="text/javascript">jQuery(document).ready(function(){jQuery.get('index.php?mod=apiz&code=update&op=ServerTest'+jQuery.rnd.stamp(), function(data){jQuery('#update_server_test').html(data)})});</script>
HELP;
$helpLinker = ihelper('tg.upgrade.error.format');
self::$err_Format_help = <<<HELP
抱歉,当前升级人数太多,请稍候进行尝试!&nbsp;&nbsp;&nbsp;&nbsp;<a href="{$helpLinker}" target="_blank">查看帮助</a>
HELP;
		Load::moduleCode($this);$this->Execute();
	}
Пример #19
0
	function ModuleObject( & $config )
	{
		$this->MasterObject($config);
		Load::moduleCode($this);$this->Execute();
	}
Пример #20
0
 public function __construct($config)
 {
     $runCode = Load::moduleCode($this);
     $this->$runCode();
 }
Пример #21
0
 function ModuleObject( $config )
 {
     $this->MasterObject($config);
             $runCode = Load::moduleCode($this, false, false);
     $this->Sort($runCode);
 }