From: Scott P. <wht...@us...> - 2007-09-08 23:56:57
|
Update of /cvsroot/helpmeict/Helpdesk/share/themes/blue In directory sc8-pr-cvs17:/tmp/cvs-serv9207/share/themes/blue Modified Files: header Log Message: added $_GET, $_POST, $_REQUEST sanitizing added magic_quotes dectection added checking existince of superglobals index's before using them 'isset' is your friend \ this removes the Undefined Index notices from these files. fixed all undefined constants in these files. This removes the undefined constants from these files. added globals where needed to remove the undefined variable notices from these files. Index: header =================================================================== RCS file: /cvsroot/helpmeict/Helpdesk/share/themes/blue/header,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** header 11 Mar 2007 15:23:48 -0000 1.3 --- header 8 Sep 2007 23:56:50 -0000 1.4 *************** *** 16,27 **** // Add a timed refresh to certain pages $path = $HTTP_SERVER_VARS['SCRIPT_NAME']; ! if (($_GET['act'] == "action" && substr_count($path,'summary.php')) ! || substr_count($path,'unassignedissues.php') ! || substr_count($path,'myissues.php') ! || substr_count($path,'mysitesissues.php')) ! { ?> <meta http-equiv="Refresh" content="<?php echo 120; ?>"> <?php } ?> --- 16,30 ---- // Add a timed refresh to certain pages $path = $HTTP_SERVER_VARS['SCRIPT_NAME']; ! if (isset($_GET['act'])) { ! if (($_GET['act'] == "action" && substr_count($path,'summary.php')) ! || substr_count($path,'unassignedissues.php') ! || substr_count($path,'myissues.php') ! || substr_count($path,'mysitesissues.php')) ! ! { ?> <meta http-equiv="Refresh" content="<?php echo 120; ?>"> <?php + } } ?> *************** *** 43,45 **** </head> ! <body> \ No newline at end of file --- 46,48 ---- </head> ! <body> |