input class for auto checks

This commit is contained in:
lopar
2018-03-30 22:28:22 +03:00
parent c5b4a369c3
commit b12d9702a9
3 changed files with 20 additions and 1 deletions

17
classes/input.php Normal file
View 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;
}
}