19 lines
456 B
PHP
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;
|
|
}
|
|
} |