ACC SHELL

Path : /srv/www/vhosts/centrumlb/administrace/libs/
File Upload :
Current File : /srv/www/vhosts/centrumlb/administrace/libs/input.class.php

<?php

class Input
{

    public static function exists($type = 'post')
    {
        switch ($type)
        {
            case 'post': return (!empty($_POST)) ? true : false;
                break;
            case 'get': return !empty($_GET) ? true : false;
                break;
            default: return false;
                break;
        }
    }

    public static function get($item)
    {
        if (isset($_POST[$item]))
        {
            return $_POST[$item];
        } elseif (isset($_GET[$item]))
        {
            return $_GET[$item];
        }
        return '';
    }

}

ACC SHELL 2018