function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // set paths $this->ext_path = RAZOR_BASE_PATH . "extension"; }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); session_start(); session_regenerate_id(); }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // open extension db and attach razor db $this->db = new RazorPDO('sqlite:' . RAZOR_BASE_PATH . 'storage/database/social_razorcms_blog.sqlite'); $this->db->exec('ATTACH "' . RAZOR_BASE_PATH . 'storage/database/razorcms.sqlite" AS razor'); }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // imagepath and relative url (important when shifting domains) $this->root_path = RAZOR_BASE_PATH . 'storage/files/images'; $this->root_url = str_replace("http://{$_SERVER["SERVER_NAME"]}" . ($_SERVER["SERVER_PORT"] == "80" ? "" : ":{$_SERVER["SERVER_PORT"]}"), "", RAZOR_BASE_URL) . 'storage/files/images'; }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // set paths $this->tmp_path = RAZOR_BASE_PATH . "storage/tmp"; $this->package_path = RAZOR_BASE_PATH . 'storage/tmp/package'; $this->backup_path = RAZOR_BASE_PATH . "storage/tmp/backup"; // includes include_once RAZOR_BASE_PATH . "library/php/razor/razor_zip.php"; }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // set paths $this->tmp_path = RAZOR_BASE_PATH . "storage/tmp"; $this->package_path = RAZOR_BASE_PATH . 'storage/tmp/package'; // check if folders exist if (!is_dir($this->tmp_path)) { mkdir($this->tmp_path); } if (!is_dir($this->package_path)) { mkdir($this->package_path); } }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // set paths $this->tmp_path = RAZOR_BASE_PATH . "storage/tmp"; $this->backup_path = RAZOR_BASE_PATH . "storage/tmp/backup"; $this->backup_url = RAZOR_BASE_URL . "storage/tmp/backup"; // includes include_once RAZOR_BASE_PATH . "library/php/razor/razor_zip.php"; // check if folders exist if (!is_dir($this->tmp_path)) { mkdir($this->tmp_path); } if (!is_dir($this->backup_path)) { mkdir($this->backup_path); } }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); // ensure folder structure if (!is_dir(RAZOR_BASE_PATH . "storage/files")) { mkdir(RAZOR_BASE_PATH . "storage/files"); } if (!is_dir(RAZOR_BASE_PATH . "storage/files/extension")) { mkdir(RAZOR_BASE_PATH . "storage/files/extension"); } if (!is_dir(RAZOR_BASE_PATH . "storage/files/extension/photo")) { mkdir(RAZOR_BASE_PATH . "storage/files/extension/photo"); } if (!is_dir(RAZOR_BASE_PATH . "storage/files/extension/photo/razorcms")) { mkdir(RAZOR_BASE_PATH . "storage/files/extension/photo/razorcms"); } if (!is_dir(RAZOR_BASE_PATH . "storage/files/extension/photo/razorcms/photo-gallery")) { mkdir(RAZOR_BASE_PATH . "storage/files/extension/photo/razorcms/photo-gallery"); } // imagepath and relative url (important when shifting domains) $this->root_path = RAZOR_BASE_PATH . 'storage/files/extension/photo/razorcms/photo-gallery'; $this->root_url = str_replace("http://{$_SERVER["SERVER_NAME"]}" . ($_SERVER["SERVER_PORT"] == "80" ? "" : ":{$_SERVER["SERVER_PORT"]}"), "", RAZOR_BASE_URL) . 'storage/files/extension/photo/razorcms/photo-gallery'; }
function __construct() { // REQUIRED IN EXTENDED CLASS TO LOAD DEFAULTS parent::__construct(); }