Improved register_globals handling

This commit is contained in:
root 2008-08-17 23:27:19 +00:00
parent 15ffc7821a
commit 86af1fce0c

View file

@ -17,11 +17,14 @@
*/ ?> */ ?>
<? <?
$id = intval($_REQUEST['id']); $id = 0; if(array_key_exists("id",$_REQUEST)) $id=intval($_REQUEST['id']);
$oldid = 0; if(array_key_exists("oldid",$_REQUEST)) $oldid=intval($_REQUEST['oldid']);
$process = ""; if(array_key_exists("process",$_REQUEST)) $process=$_REQUEST['process'];
if($id == 2) if($id == 2)
$id = 0; $id = 0;
$oldid = intval($_REQUEST['oldid']);
$process = $_REQUEST['process']; $_SESSION['_config']['errmsg'] = "";
if($id == 17 || $id == 20) if($id == 17 || $id == 20)
{ {