Exemplo n.º 1
0
 public function system_path($path)
 {
     return Config::getBasePath() . self::SYSTEM_RESOURCE_PATH . '/' . $this->trimSlashes($path);
 }
 public static function delete($name)
 {
     setcookie(self::prefixed($name), 1, TimeUtil::getTime() - 3600, Config::getBasePath());
 }
 public static function systemRedirect($url = "")
 {
     header("Location: " . Config::getBasePath() . Settings::SYSTEM_REQUEST_PREFIX . '/' . trim($url, "/"));
     exit;
 }
 public static function getAbsolutePath($path)
 {
     return $_SERVER['DOCUMENT_ROOT'] . Config::getBasePath() . trim($path, '/');
 }