Esempio n. 1
0
 /**
  * @param $param
  */
 public function CalRecurrence($param = -1)
 {
     parent::__construct();
     if ($param > 0) {
         $this->setId($param);
     }
     $this->load();
 }
Esempio n. 2
0
 function __construct()
 {
     parent::__construct();
     $this->surveysTable = $this->table('tiki_surveys');
     $this->questionsTable = $this->table('tiki_survey_questions');
     $this->optionsTable = $this->table('tiki_survey_question_options');
     $this->votesTable = $this->table('tiki_user_votings');
 }
Esempio n. 3
0
 function __construct()
 {
     parent::__construct();
     // Initialize caches
     $this->usergroups_cache = array();
     $this->groupperm_cache = array(array());
     $this->groupinclude_cache = array();
     $this->get_object_permissions_for_user_cache = array();
 }
Esempio n. 4
0
 /**
  *
  */
 function __construct()
 {
     parent::__construct();
     global $prefs;
     $exts = get_loaded_extensions();
     // Which GD Version do we have?
     if (in_array('gd', $exts)) {
         $this->havegd = true;
         if (function_exists("gd_info")) {
             $this->gdinfo = gd_info();
             preg_match("/[0-9]+\\.[0-9]+/", $this->gdinfo["GD Version"], $gdversiontmp);
             $this->gdversion = $gdversiontmp[0];
         } else {
             //next try
             ob_start();
             phpinfo(INFO_MODULES);
             if (preg_match('/GD Version.*2.0/', ob_get_contents())) {
                 $this->gdversion = "2.0";
             } else {
                 // I have no experience ... maybe someone knows better
                 $this->gdversion = "1.0";
             }
             $this->gdinfo["JPG Support"] = preg_match('/JPE?G Support.*enabled/', ob_get_contents());
             $this->gdinfo["PNG Support"] = preg_match('/PNG Support.*enabled/', ob_get_contents());
             $this->gdinfo["GIF Create Support"] = preg_match('/GIF Create Support.*enabled/', ob_get_contents());
             $this->gdinfo["WBMP Support"] = preg_match('/WBMP Support.*enabled/', ob_get_contents());
             $this->gdinfo["XBM Support"] = preg_match('/XBM Support.*enabled/', ob_get_contents());
             ob_end_clean();
         }
     } else {
         $this->havegd = false;
     }
     // Do we have the imagick PECL module?
     // Module can be downloaded at http://pecl.php.net/package/imagick
     // Also check on 'imagick_rotate' function because the first check may detect imagick 2.x which has a completely different API
     if (in_array('imagick', $exts) && function_exists('imagick_rotate')) {
         $this->haveimagick = true;
     } else {
         $this->haveimagick = false;
     }
     //what shall we use?
     //$this->uselib = "gd";
     $this->uselib = $prefs['gal_use_lib'];
     //Fallback to GD
     if ($this->uselib == "imagick" && $this->haveimagick == false) {
         $this->uselib = "gd";
         $this->set_preference('gal_use_lib', 'gd');
     }
     if ($this->uselib == "imagick") {
         $this->canrotate = true;
     } else {
         $this->canrotate = false;
     }
     // get variables to determine if we can upload and how many data
     // we can upload
     $this->file_uploads = ini_get('file_uploads');
     $this->upload_max_filesize = ini_get('upload_max_filesize');
     $this->post_max_size = ini_get('post_max_size');
     if ($this->file_uploads == 0) {
         $this->max_img_upload_size = 0;
     }
 }
Esempio n. 5
0
 function __construct()
 {
     global $prefs;
     parent::__construct();
     $this->displayLanguageOrder = array();
 }
Esempio n. 6
0
 function __construct()
 {
     parent::__construct();
 }