当前位置: 首页>>代码示例>>PHP>>正文


PHP Load::moduleCode方法代码示例

本文整理汇总了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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:32,代码来源:member.mod.php

示例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();
    }
开发者ID:pf5512,项目名称:phpstudy,代码行数:32,代码来源:upload.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:7,代码来源:robot.mod.php

示例4: ModuleObject

	function ModuleObject( $config )
	{
		$this->MasterObject($config);
		$this->iniz();
		$runCode = Load::moduleCode($this);
		$this->$runCode();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:7,代码来源:fund.mod.php

示例5: ModuleObject

	function ModuleObject($config)
	{
		$this->MasterObject($config);
		if (MEMBER_ID>0) {
				}
		$this->iiConfig = ini('settings');
		Load::moduleCode($this);$this->Execute();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:8,代码来源:get_password.mod.php

示例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();

	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:8,代码来源:sessions.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:9,代码来源:login.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:10,代码来源:comment.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:11,代码来源:api.mod.php

示例10: ModuleObject

	function ModuleObject( $config )
	{
		$this->MasterObject($config);
		$runCode = Load::moduleCode($this);
		
		
		global $rewriteHandler;
		$rewriteHandler = null;
		
		$this->$runCode();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:11,代码来源:seller.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:11,代码来源:setting.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:13,代码来源:tttuangou.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:14,代码来源:list.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:15,代码来源:install.mod.php

示例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();
	}
开发者ID:pf5512,项目名称:phpstudy,代码行数:15,代码来源:prize.mod.php


注:本文中的Load::moduleCode方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。