battles/classes/input.php
Igor Barkov [iwork] 5b34e1e706 Fix mysql
2018-11-01 19:11:58 +02:00

19 lines
456 B
PHP

<?php
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* Project name: Battles-Game
*/
class input
{
public static function get($name) {
rtrim($_GET[$name]);
return (isset($_GET[$name]) AND !empty($_GET[$name])) ? $_GET[$name] : null;
}
public static function post($name) {
rtrim($_POST[$name]);
return (isset($_POST[$name]) AND !empty($_POST[$name])) ? $_POST[$name] : null;
}
}