input class for auto checks
This commit is contained in:
17
classes/input.php
Normal file
17
classes/input.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
/**
|
||||
* Copyright (c) 2018.
|
||||
* Author: Igor Barkov <lopar.4ever@gmail.com>
|
||||
* Project name: Battles-Game
|
||||
*/
|
||||
|
||||
class input
|
||||
{
|
||||
public static function get($name) {
|
||||
return isset($_GET[$name]) ? $_GET[$name] : null;
|
||||
}
|
||||
|
||||
public static function post($name) {
|
||||
return isset($_POST[$name]) ? $_POST[$name] : null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user