本文整理汇总了PHP中Application::Application方法的典型用法代码示例。如果您正苦于以下问题:PHP Application::Application方法的具体用法?PHP Application::Application怎么用?PHP Application::Application使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application
的用法示例。
在下文中一共展示了Application::Application方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($config,$group="")
{
// $this->starttime = microtime();
parent::Application($config,$group);
// $this->fredcontrol = new FredControl();
// $this->lua = new LUA();
$this->Core = new Core(&$this);
$this->DB = new DB("fred-gui2.db");
/*
if ($this->Core->OnlineCheck()) {
$this->Tpl->Set(NETWORKMAIN,"<FONT COLOR=#009900 style=\"border:1px solid white; border-radius:4px; background-color:white;\"> <B>ONLINE</B> </FONT>");
} else {
$this->Tpl->Set(NETWORKMAIN,"<FONT COLOR=#DD0000 style=\"border:1px solid white; border-radius:4px; background-color:white;\"> <B>OFFLINE</B> </FONT>");
}
*/
$this->Tpl->ReadTemplatesFromPath("./pages/content/"); // ca. 200ms
// $device = $this->mobile_user_agent_switch();
$this->Tpl->Set(THEME,"fredgui");
$this->Tpl->ReadTemplatesFromPath("./themes/fredgui/templates/");
$module = $this->Secure->GetGET("module");
$action = $this->Secure->GetGET("lock");
if(is_file("/home/picosafe/.webguilock"))
{
if($module!="welcome" && $module!="lock" && is_file("/home/picosafe/.webguilock"))
header("Location: index.php?module=welcome&action=lock");
}
}
示例2: GDS
function GDS()
{
parent::Application();
if ($this->uri->segment(2) !== 'demo') {
$this->auth->restrict('user');
}
}
示例3: Users
function Users()
{
parent::Application();
$this->auth->restrict('admin');
// restrict this controller to admins only
$this->load->model($this->models . "usermodel", 'users');
// Load the user model - gets lists of users etc
}
示例4: Pages
function Pages()
{
parent::Application();
$this->auth->restrict('editor');
// restrict this controller to editor and above
$this->load->model($this->models . "pagemodel", 'pages');
// Load the page model
}
示例5: SitePasswords
function SitePasswords()
{
parent::Application();
if ($this->uri->segment(1) === 'maintenance') {
$this->auth->restrict('admin');
$this->load->scaffolding('SitePasswords');
}
}
示例6: Pricing
function Pricing()
{
parent::Application();
}
示例7: AdPackage
function AdPackage()
{
parent::Application();
$this->auth->restrict('admin');
$this->load->scaffolding('AdPackage');
}
示例8: Dashboard
function Dashboard()
{
parent::Application();
}
示例9: Help
function Help()
{
parent::Application();
}
示例10: EditMethod
function EditMethod()
{
parent::Application();
$this->auth->restrict('admin');
$this->load->scaffolding('EditMethod');
}
示例12: Publishers
function Publishers()
{
parent::Application();
}
示例13:
function Client_Detail()
{
parent::Application();
$this->auth->restrict('admin');
}
示例14:
function Admin_Scripts()
{
parent::Application();
$this->auth->restrict('user');
}
示例15: Dockets
function Dockets()
{
parent::Application();
}