$gpc = new GPC();
$http_vars = array('action' => str, 'job' => str, 'search' => str, 'reply' => str, 'name' => str, 'email' => str, 'topic' => str, 'comment' => str, 'error' => str, 'pw' => str, 'pwx' => str, 'order' => str, 'sort' => str, 'letter' => str, 'fullname' => str, 'about' => str, 'location' => str, 'signature' => str, 'hp' => str, 'icq' => str, 'pic' => str, 'question' => str, 'type' => str, 'gender' => str, 'aol' => str, 'msn' => str, 'yahoo' => str, 'jabber' => str, 'fid' => str, 'file' => str, 'groups' => str, 'board' => int, 'topic_id' => int, 'id' => int, 'page' => int, 'temp' => int, 'temp2' => int, 'dosmileys' => int, 'dowords' => int, 'birthday' => int, 'birthmonth' => int, 'birthyear' => int, 'opt_0' => int, 'opt_1' => int, 'opt_2' => int, 'opt_3' => int, 'opt_4' => int, 'opt_5' => int, 'opt_6' => int, 'opt_7' => int, 'notice' => arr_str, 'boards' => arr_int, 'delete' => arr_int);
$http_all = array_merge(array_keys($http_vars), array_keys($_POST), array_keys($_GET));
$http_all = array_unique($http_all);
$http_std = array(int => 0, arr_int => array(), arr_str => array(), str => '', none => null);
foreach ($http_all as $key) {
    if (isset($http_vars[$key])) {
        $type = $http_vars[$key];
    } else {
        $type = str;
    }
    if (isset($_POST[$key])) {
        if ($type == int || $type == arr_int) {
            $_POST[$key] = $gpc->save_int($_POST[$key]);
        } else {
            $_POST[$key] = $gpc->save_str($_POST[$key]);
        }
    } else {
        $_POST[$key] = $http_std[$type];
    }
    if (isset($_GET[$key])) {
        if ($type == int || $type == arr_int) {
            $_GET[$key] = $gpc->save_int($_GET[$key]);
        } else {
            $_GET[$key] = $gpc->save_str($_GET[$key]);
        }
    } else {
        $_GET[$key] = $http_std[$type];
    }
}
$_GET['page'] = !isset($_GET['page']) || $_GET['page'] < 1 ? 1 : $_GET['page'];