szurubooru/src/Helpers/InputHelper.php
2013-10-05 13:15:48 +02:00

23 lines
293 B
PHP

<?php
class InputHelper
{
public static function get($keyName)
{
if (isset($_POST[$keyName]))
{
return $_POST[$keyName];
}
if (isset($_GET[$keyName]))
{
return $_GET[$keyName];
}
if (isset($_COOKIE[$keyName]))
{
return $_COOKIE[$keyName];
}
return null;
}
}