function __construct($obj = NULL) { if (!is_null($obj)) { SetPublicProp::go($this, $obj); } $this->src_content_updated = $this->src_content; $this->url = FileFolder::getLastDir($this->compilerGlobal->url, 0, true) . "/"; $this->url_local = GenFun::get_local_url($this->url); $this->url_CFG(); }
function __construct($url = NULL) { $this->url = $url; if (is_null($this->url)) { $this->url = GenFun::get_full_url($_SERVER["SCRIPT_NAME"]); } Compile::$root = Import::getImportPath() . "../" . FileFolder::getLastDir($this->url) . "_compile/"; Compile::$tmpPath = Compile::$root . "tmp/"; Compile::$minifiedPath = Compile::$root . "min/"; Compile::$unminifiedPath = Compile::$root . "unmin/"; //GenFun::setCookie("compile_root", true, Compile::$root); }
public static function pathRelativeToPath($src, $relToSrc, $explode = "") { $backString = ""; $num = 0; $result = self::replaceOverlap($src, $relToSrc, "", $explode, true); //if (strpos($result["result"][1], "/") !== false) { $backAmt = explode("/", $result["result"][1]); foreach ($backAmt as $key => $value) { if ($value != "") { $backString .= "../"; $num++; } } //} //krumo($result); $lastDir = FileFolder::getLastDir($src, $num); return $backString . $result["result"][0]; }
function __construct($obj) { $this->compilers = array(); //------------------------------------------------------------ SetPublicProp::go($this, $obj); //------------------------------------------------------------ $this->compilerGlobal = new Compiler_Global(); //------------------------------------------------------------ //$this->compilePath = array(); //------------------------------------------------------------ $this->compile_id = Compiler::getCompile_id(); //------------------------------------------------------------ //if (is_null($this->compilePath)) $this->compilePath = dirname(Import::getImportPath())."/".$this->compile_id."/"; if (is_null($this->compilePath)) { $this->compilePath = GlobalMas::$filesPath_absolute . "compiler/" . FileFolder::getLastDir($_SERVER["SCRIPT_FILENAME"]) . $this->compile_id . "/"; } //----------------------------------------------------- if (isset($_GET['pageID']) && isset($_COOKIE['compile_curl'])) { GenFun::setCookie("compile_curl", false); } //----------------------------------------------------- $this->compilerGlobal->compilePath = $this->compilePath; //----------------------------------------------------- $this->refresh(); if (is_null($this->url)) { $this->url = GenFun::get_full_url($_SERVER["SCRIPT_NAME"]); } //----------------------------------------------------- $this->compilerGlobal->url = $this->url; //----------------------------------------------------- if (isset($_GET['compile']) && $_GET['compile'] == "1" && !isset($_COOKIE['compile_curl'])) { Compiler::$disabled = false; GenFun::setCookie("compile", true, 1); $this->start(); //die(); } else { if (!isset($_GET['refresh'])) { register_shutdown_function("Compiler::callRegisteredShutdown"); } } }
<?php $_POST['werm'] = array('id' => FileFolder::getLastDir(dirname(__FILE__)));