Beispiel #1
0
 public static function init()
 {
     GlobalMas::$host = 'mydatabase.ctla99hip1d5.us-west-2.rds.amazonaws.com:3306';
     GlobalMas::$user = '******';
     GlobalMas::$pass = '******';
     GlobalMas::$database = "compiler";
     //------------------------------------------------------
     ProjectGlobal::$compileObj = array("compile" => array(array("save_path" => "", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true, "fileProp" => array("fileTypeProp" => array("png" => array("quality" => 100), "jpeg" => array("quality" => 90)))), "files" => array("data.js" => array("base64" => false)), "getIncluded" => false, "minify" => true)));
 }
Beispiel #2
0
 public static function init()
 {
     GlobalMas::$host = 'mydatabase.ctla99hip1d5.us-west-2.rds.amazonaws.com:3306';
     GlobalMas::$user = '******';
     GlobalMas::$pass = '******';
     GlobalMas::$database = "compiler";
     GlobalMas::$filesPath_relative = "/Modules/generated_files/compiler/";
     GlobalMas::$filesPath_absolute = $_SERVER["DOCUMENT_ROOT"] . GlobalMas::$filesPath_relative;
     GlobalMas::$filesPath_web = GenFun::get_full_url(GlobalMas::$filesPath_absolute) . "/";
     //------------------------------------------------------
     ProjectGlobal::$compileObj = array("compile" => array(array("save_path" => "", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true, "fileProp" => array("fileTypeProp" => array("png" => array("quality" => 100), "jpeg" => array("quality" => 90)))), "files" => array("data.js" => array("base64" => false)), "getIncluded" => false, "minify" => true)));
 }
Beispiel #3
0
 public static function init()
 {
     //GlobalMas::$host = 'mydatabase.ctla99hip1d5.us-west-2.rds.amazonaws.com:3306';
     //GlobalMas::$user = '******';
     //GlobalMas::$pass = '******';
     //GlobalMas::$database = "compiler";
     GlobalMas::$host = '127.0.0.1:9306';
     //GlobalMas::$user = '******';
     //GlobalMas::$pass = '******';
     //GlobalMas::$database = "compiler";
     ProjectGlobal::$compileObj = array("compile" => array(array("save_path" => "seperate/", "removeHTMLComments" => false, "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("fileProp" => array("fileTypeProp" => array("png" => array("quality" => 100), "jpeg" => array("quality" => 100))), "save_dir" => "project/images/"), "getIncluded" => false, "minify" => false, "cssProp" => array("matchProp" => array("applyToFilesIn" => array("project/css/" => array("save_dir" => "project/css/"), "project/js/" => array("save_dir" => "project/css/"))), "save_dir" => "global/css/"), "tmplProp" => array("compileType" => "inject", "minify" => false)), array("save_path" => "single/", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true, "save_dir" => "", "fileProp" => array("fileTypeProp" => array("png" => array("quality" => 1), "jpeg" => array("quality" => 40)))), "files" => array("data.js" => array("base64" => false)), "getIncluded" => false, "minify" => true)));
 }
Beispiel #4
0
 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);
 }
Beispiel #5
0
<?php

class ProjectGlobal
{
    //----------------------------------------------------
    static $host = 'mstyle031312.db.2585794.hostedresource.com';
    static $user = '******';
    static $pass = '******';
    static $database = "mstyle031312";
    //----------------------------------------------------
    static $email = '*****@*****.**';
    static $name = 'Wilmer Abreu';
    //----------------------------------------------------
    static $projectFilesPath = "myBiz/files/";
    static $filesLocalPath = NULL;
    static $filesPath = NULL;
    //----------------------------------------------------
    public function init()
    {
        Constants::$host = self::$host;
        Constants::$pass = self::$pass;
        Constants::$user = self::$user;
        Constants::$database = self::$database;
    }
}
ProjectGlobal::init();
Beispiel #6
0
 public static function init()
 {
     ProjectGlobal::$compileObj = array("compile" => array(array("save_path" => "seperate/", "removeHTMLComments" => false, "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("fileProp" => array("fileTypeProp" => array("png" => array("quality" => 100), "jpeg" => array("quality" => 100))), "save_dir" => "project/images/"), "getIncluded" => false, "minify" => false, "cssProp" => array("matchProp" => array("applyToFilesIn" => array("{strict}project/css/" => array("save_dir" => "project/css/"), "project/js/" => array("save_dir" => "project/css/"))), "save_dir" => "global/css/"), "tmplProp" => array("compileType" => "inject", "minify" => false)), array("save_path" => "single/", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true, "save_dir" => "", "fileProp" => array("fileTypeProp" => array("png" => array("quality" => 1), "jpeg" => array("quality" => 40)))), "files" => array("data.js" => array("base64" => false)), "getIncluded" => false, "minify" => true)));
 }
Beispiel #7
0
    static $host = 'mybizpage.db.2585794.hostedresource.com';
    static $user = '******';
    static $pass = '******';
    static $database = "mybizpage";
    //----------------------------------------------------
    static $email = '*****@*****.**';
    static $name = 'heresthebiz';
    static $confirmation_url = NULL;
    static $forgot_url = NULL;
    //----------------------------------------------------
    static $mysqli = NULL;
    static $projectFilesPath = "fileUploader/files/";
    static $filesLocalPath = NULL;
    static $filesPath = NULL;
    //----------------------------------------------------
    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/";
    }
}
ProjectGlobal::init();
ProjectGlobal::$filesLocalPath = $_SERVER['DOCUMENT_ROOT'] . "/" . UploadHandler::$rootFilesPath . ProjectGlobal::$projectFilesPath;
ProjectGlobal::$filesPath = GenFun::get_full_url(ProjectGlobal::$filesLocalPath);
Beispiel #8
0
 public static function init()
 {
     ProjectGlobal::$compileObj = array("compile" => array(array("save_path" => "", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true), "getIncluded" => false, "minify" => true)));
 }
Beispiel #9
0
 public static function init()
 {
     ProjectGlobal::$compileObj = array("compilePath" => dirname(__FILE__) . "generated_files/compiler/" . $_GET['pageID'] . "/", "compile" => array(array("save_path" => "single/", "compileType" => "inject", "outputContent" => array("saveas" => "index.html"), "imagesProp" => array("base64" => true, "save_dir" => "", "fileProp" => array("fileTypeProp" => array("png" => array("quality" => 1), "jpeg" => array("quality" => 40)))), "files" => array("data.js" => array("base64" => false)), "getIncluded" => false, "minify" => true)));
 }