mirror of
https://github.com/fruithost/Panel.git
synced 2026-11-07 04:22:35 +09:00
27 lines
429 B
PHP
27 lines
429 B
PHP
<?php
|
|
namespace fruithost;
|
|
|
|
class Request {
|
|
private static $get = [];
|
|
|
|
public static function init() {
|
|
self::$get = $_GET;
|
|
}
|
|
|
|
public static function has($name) {
|
|
return in_array($name, self::$get);
|
|
}
|
|
|
|
public static function get($name) {
|
|
if(self::has($name)) {
|
|
return null;
|
|
}
|
|
|
|
return self::$get[$name];
|
|
}
|
|
|
|
public static function url() {
|
|
return $_SERVER['REQUEST_URI'];
|
|
}
|
|
}
|
|
?>
|