public static function init() { Constants::$host = self::$host; Constants::$pass = self::$pass; Constants::$user = self::$user; Constants::$database = self::$database; UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath; UploadHandler::$rootFilesPath = "/upload/generated_files/"; }
public static function init() { Constants::$host = self::$host; Constants::$pass = self::$pass; Constants::$user = self::$user; Constants::$database = self::$database; Account_v0::$confirmation_url = Import::getImportPath(true) . "confirmation.php"; Account_v0::$forgot_url = Import::getImportPath(true) . "forgot.php"; UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath; UploadHandler::$rootFilesPath = "upload/generated_files/"; }
public static function init() { Compiler::init(array("css" => "min_single", "js" => "min_single", "getServices" => array("except" => Import::getImportPath() . "service.php"), "global" => array("copy" => array(Import::$uber_src_path . "service.php", Import::getImportPath() . "index.php"), "getImages" => true, "code" => array("tmpl" => array("replace" => array("replaceSrc" => false, "\${images}" => Import::$uber_src_path . "/global/images/")))), "compile" => array(array("id" => "min_single", "minify" => true, "copy" => array(), "code" => array("css" => array("singleFile" => true, "path" => "global/css/"), "js" => array("singleFile" => true, "path" => "global/js/"))), array("id" => "min_multi", "minify" => true, "code" => array("css" => array("singleFile" => false, "path" => "global/css/"), "js" => array("singleFile" => false, "path" => "global/js/"))), array("id" => "unmin", "code" => array("css" => array("singleFile" => false, "path" => "global/css/"), "js" => array("singleFile" => false, "path" => "global/js/"))), array("id" => "unmin_raw", "raw" => true)))); //------------------------------------------------ GlobalMas::$host = self::$host; GlobalMas::$pass = self::$pass; GlobalMas::$user = self::$user; GlobalMas::$database = self::$database; UploadHandler::$projectFilesPath = ProjectGlobal::$projectFilesPath; //UploadHandler::$rootFilesPath = "/upload/generated_files/"; self::$filesLocalPath = $_SERVER['DOCUMENT_ROOT'] . "/" . UploadHandler::$rootFilesPath . self::$projectFilesPath; self::$filesPath = GenFun::get_full_url(self::$filesLocalPath); }