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"); } }
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 }
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 }
function SitePasswords() { parent::Application(); if ($this->uri->segment(1) === 'maintenance') { $this->auth->restrict('admin'); $this->load->scaffolding('SitePasswords'); } }
function Pricing() { parent::Application(); }
function AdPackage() { parent::Application(); $this->auth->restrict('admin'); $this->load->scaffolding('AdPackage'); }
function Dashboard() { parent::Application(); }
function Help() { parent::Application(); }
function EditMethod() { parent::Application(); $this->auth->restrict('admin'); $this->load->scaffolding('EditMethod'); }
function Home() { parent::Application(); }
function Publishers() { parent::Application(); }
function Client_Detail() { parent::Application(); $this->auth->restrict('admin'); }
function Admin_Scripts() { parent::Application(); $this->auth->restrict('user'); }
function Dockets() { parent::Application(); }
function About_Us() { parent::Application(); }
function Processor() { parent::Application(); $this->auth->restrict('admin'); $this->load->scaffolding('Processor'); }
function Glossary() { parent::Application(); }
function Classification() { parent::Application(); $this->auth->restrict('admin'); $this->load->scaffolding('Classification'); }
function PriceType() { parent::Application(); $this->auth->restrict('admin'); $this->load->scaffolding('PriceType'); }
function Admin_Detail() { parent::Application(); $this->auth->restrict('user'); }
function Admin() { parent::Application(); }
function Ajax() { parent::Application(); }
function Maintenance() { parent::Application(); $this->auth->restrict('admin'); }
function Page() { parent::Application(); $this->load->model($this->models . "pagemodel", 'pages'); // Load the page model }
function Contact_Us() { parent::Application(); }