예제 #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (validateSystemid($this->getSystemid())) {
         $this->loadElementData();
     }
 }
 public function __construct()
 {
     parent::__construct();
     if ($this->getAction() == "list") {
         $this->setAction("login");
     }
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $intDateStart = class_carrier::getInstance()->getObjSession()->getSession(self::$STR_SESSION_KEY_DATE_START);
     if ($intDateStart == "") {
         $intDateStart = strtotime(strftime("%Y-%m", time()) . "-01");
     }
     //Start: first day of current month
     $this->objDateStart = new class_date();
     $this->objDateStart->setTimeInOldStyle($intDateStart);
     //End: Current Day of month
     $intDateEnd = class_carrier::getInstance()->getObjSession()->getSession(self::$STR_SESSION_KEY_DATE_END);
     if ($intDateEnd == "") {
         $intDateEnd = time() + 3600 * 24;
     }
     $this->objDateEnd = new class_date();
     $this->objDateEnd->setTimeInOldStyle($intDateEnd);
     $this->intInterval = class_carrier::getInstance()->getObjSession()->getSession(self::$STR_SESSION_KEY_INTERVAL);
     if ($this->intInterval == "") {
         $this->intInterval = 2;
     }
     class_carrier::getInstance()->getObjSession()->setSession(self::$STR_SESSION_KEY_DATE_START, $intDateStart);
     class_carrier::getInstance()->getObjSession()->setSession(self::$STR_SESSION_KEY_DATE_END, $intDateEnd);
     class_carrier::getInstance()->getObjSession()->setSession(self::$STR_SESSION_KEY_INTERVAL, $this->intInterval);
     //stats may take time -> increase the time available
     if (@ini_get("max_execution_time") < 500 && @ini_get("max_execution_time") > 0) {
         @ini_set("max_execution_time", "500");
     }
     //stats may consume a lot of memory, increase max mem limit
     if (class_carrier::getInstance()->getObjConfig()->getPhpIni("memory_limit") < 30) {
         @ini_set("memory_limit", "60M");
     }
     $this->objPluginManager = new class_pluginmanager(self::$STR_PLUGIN_EXTENSION_POINT, "/admin/statsreports");
     $this->setAction("list");
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->setStrLangBase("system");
     if ($this->getAction() == "list") {
         $this->setAction("change");
     }
 }
 public function __construct()
 {
     $this->setArrModuleEntry("template", "/login.tpl");
     parent::__construct();
     if ($this->getAction() != "pwdReset" || $this->getAction() != "adminLogin" || $this->getAction() != "adminLogout") {
         $this->setAction("login");
     }
 }
예제 #6
0
 /**
  * @param string $strSystemid
  */
 public function __construct($strSystemid = "")
 {
     parent::__construct($strSystemid);
     if ($this->getParam("pe") == "1") {
         $this->strPeAddon = "&pe=1";
     }
     if ($this->getParam("unlockid") != "") {
         $objLockmanager = new class_lockmanager($this->getParam("unlockid"));
         $objLockmanager->unlockRecord(true);
     }
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $intDateStart = class_carrier::getInstance()->getObjSession()->getSession(class_module_stats_admin::$STR_SESSION_KEY_DATE_START);
     //Start: first day of current month
     $this->objDateStart = new class_date();
     $this->objDateStart->setTimeInOldStyle($intDateStart);
     //End: Current Day of month
     $intDateEnd = class_carrier::getInstance()->getObjSession()->getSession(class_module_stats_admin::$STR_SESSION_KEY_DATE_END);
     $this->objDateEnd = new class_date();
     $this->objDateEnd->setTimeInOldStyle($intDateEnd);
     $this->intInterval = class_carrier::getInstance()->getObjSession()->getSession(class_module_stats_admin::$STR_SESSION_KEY_INTERVAL);
 }
 /**
  * Constructor, doing nothing but a few inits
  */
 public function __construct()
 {
     $this->setArrModuleEntry("template", "/folderview.tpl");
     parent::__construct();
     $this->setStrLangBase("mediamanager");
 }