Example #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");
		} 
  }
Example #2
0
 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
 }
Example #4
0
 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
 }
Example #5
0
 function SitePasswords()
 {
     parent::Application();
     if ($this->uri->segment(1) === 'maintenance') {
         $this->auth->restrict('admin');
         $this->load->scaffolding('SitePasswords');
     }
 }
Example #6
0
 function Pricing()
 {
     parent::Application();
 }
Example #7
0
 function AdPackage()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('AdPackage');
 }
Example #8
0
 function Dashboard()
 {
     parent::Application();
 }
Example #9
0
 function Help()
 {
     parent::Application();
 }
Example #10
0
 function EditMethod()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('EditMethod');
 }
Example #11
0
 function Home()
 {
     parent::Application();
 }
Example #12
0
 function Publishers()
 {
     parent::Application();
 }
Example #13
0
 function Client_Detail()
 {
     parent::Application();
     $this->auth->restrict('admin');
 }
Example #14
0
 function Admin_Scripts()
 {
     parent::Application();
     $this->auth->restrict('user');
 }
Example #15
0
 function Dockets()
 {
     parent::Application();
 }
Example #16
0
 function About_Us()
 {
     parent::Application();
 }
Example #17
0
 function Processor()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('Processor');
 }
Example #18
0
 function Glossary()
 {
     parent::Application();
 }
Example #19
0
 function Classification()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('Classification');
 }
Example #20
0
 function PriceType()
 {
     parent::Application();
     $this->auth->restrict('admin');
     $this->load->scaffolding('PriceType');
 }
Example #21
0
 function Admin_Detail()
 {
     parent::Application();
     $this->auth->restrict('user');
 }
Example #22
0
 function Admin()
 {
     parent::Application();
 }
Example #23
0
 function Ajax()
 {
     parent::Application();
 }
Example #24
0
 function Maintenance()
 {
     parent::Application();
     $this->auth->restrict('admin');
 }
Example #25
0
 function Page()
 {
     parent::Application();
     $this->load->model($this->models . "pagemodel", 'pages');
     // Load the page model
 }
Example #26
0
 function Contact_Us()
 {
     parent::Application();
 }