示例#1
0
  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;\">&nbsp;<B>ONLINE</B>&nbsp;</FONT>");
  } else {
    $this->Tpl->Set(NETWORKMAIN,"<FONT COLOR=#DD0000 style=\"border:1px solid white; border-radius:4px; background-color:white;\">&nbsp;<B>OFFLINE</B>&nbsp;</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
0
文件: gds.php 项目: homebru/bandb
 function GDS()
 {
     parent::Application();
     if ($this->uri->segment(2) !== 'demo') {
         $this->auth->restrict('user');
     }
 }
 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
0
文件: pages.php 项目: simonhoye/Fresh
 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
0
 function SitePasswords()
 {
     parent::Application();
     if ($this->uri->segment(1) === 'maintenance') {
         $this->auth->restrict('admin');
         $this->load->scaffolding('SitePasswords');
     }
 }
示例#6
0
文件: pricing.php 项目: homebru/bandb
 function Pricing()
 {
     parent::Application();
 }
示例#7
0
 function AdPackage()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('AdPackage');
 }
示例#8
0
 function Dashboard()
 {
     parent::Application();
 }
示例#9
0
 function Help()
 {
     parent::Application();
 }
示例#10
0
 function EditMethod()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('EditMethod');
 }
示例#11
0
文件: home.php 项目: homebru/bandb
 function Home()
 {
     parent::Application();
 }
示例#12
0
 function Publishers()
 {
     parent::Application();
 }
示例#13
0
 function Client_Detail()
 {
     parent::Application();
     $this->auth->restrict('admin');
 }
示例#14
0
 function Admin_Scripts()
 {
     parent::Application();
     $this->auth->restrict('user');
 }
示例#15
0
 function Dockets()
 {
     parent::Application();
 }
示例#16
0
 function About_Us()
 {
     parent::Application();
 }
示例#17
0
 function Processor()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('Processor');
 }
示例#18
0
 function Glossary()
 {
     parent::Application();
 }
示例#19
0
 function Classification()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('Classification');
 }
示例#20
0
 function PriceType()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('PriceType');
 }
示例#21
0
 function Admin_Detail()
 {
     parent::Application();
     $this->auth->restrict('user');
 }
示例#22
0
文件: admin.php 项目: homebru/bandb
 function Admin()
 {
     parent::Application();
 }
示例#23
0
 function Ajax()
 {
     parent::Application();
 }
示例#24
0
 function Maintenance()
 {
     parent::Application();
     $this->auth->restrict('admin');
 }
示例#25
0
文件: page.php 项目: simonhoye/Fresh
 function Page()
 {
     parent::Application();
     $this->load->model($this->models . "pagemodel", 'pages');
     // Load the page model
 }
示例#26
0
 function Contact_Us()
 {
     parent::Application();
 }