mirror of
https://github.com/ChronosX88/Influence-cjdns.git
synced 2024-11-10 01:41:01 +00:00
14 lines
225 B
PHP
14 lines
225 B
PHP
|
<?php
|
||
|
|
||
|
function request($x)
|
||
|
{
|
||
|
return array_intersect_key($_REQUEST, array_fill_keys(explode(',', $x), 1));
|
||
|
}
|
||
|
|
||
|
function redirect($x = NULL)
|
||
|
{
|
||
|
if (is_null($x)) $x = $_SERVER['REQUEST_URI'];
|
||
|
header('Location: '.$x);
|
||
|
exit;
|
||
|
}
|