From: Juliette W. <jv...@us...> - 2005-06-14 14:27:49
|
Update of /cvsroot/stack/stack-1-0 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30116 Modified Files: Tag: frontend_dev chat.php editquiz.php index.php Log Message: Removed a couple more warnings. New attempt at admin menu! Index: chat.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/chat.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** chat.php 10 Jun 2005 18:40:24 -0000 1.8 --- chat.php 14 Jun 2005 14:27:40 -0000 1.8.2.1 *************** *** 12,51 **** * */ ! session_start(); require_once("other/ListMenu.php"); - require_once("stackstd.php"); - - - //////////////////////////////////////////////// - // (1) Establish user - //////////////////////////////////////////////// - // (2.0) Try to establish the user. - if (array_key_exists('user',$_SESSION)) { - $user = $_SESSION['user']; - } - - - // Deal with slahes in input - if (get_magic_quotes_gpc()) { - /** - * Automatically removes slashes deeply from arrays. - * - * @param $value incoming array. - * @return $value the array with slashed removed. - */ - function stripslashes_deep($value) - { - $value = is_array($value) ? - array_map('stripslashes_deep', $value) : - stripslashes($value); - - return $value; - } - - $_POST = array_map('stripslashes_deep', $_POST); - $_GET = array_map('stripslashes_deep', $_GET); - $_COOKIE = array_map('stripslashes_deep', $_COOKIE); - } $options['Display']='LaTeX'; --- 12,20 ---- * */ ! require_once("stackstd.php"); ! include('stackstd.php'); ! include($stack_root.'/frontend_general/process_input.php'); require_once("other/ListMenu.php"); $options['Display']='LaTeX'; Index: editquiz.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/editquiz.php,v retrieving revision 1.10.2.1 retrieving revision 1.10.2.2 diff -C2 -d -r1.10.2.1 -r1.10.2.2 *** editquiz.php 13 Jun 2005 13:04:05 -0000 1.10.2.1 --- editquiz.php 14 Jun 2005 14:27:40 -0000 1.10.2.2 *************** *** 8,12 **** * @subpackage Stack */ ! session_start(); require_once("other/ListMenu.php"); require_once("stackstd.php"); --- 8,12 ---- * @subpackage Stack */ ! require_once("other/ListMenu.php"); require_once("stackstd.php"); Index: index.php =================================================================== RCS file: /cvsroot/stack/stack-1-0/index.php,v retrieving revision 1.17.2.1 retrieving revision 1.17.2.2 diff -C2 -d -r1.17.2.1 -r1.17.2.2 *** index.php 13 Jun 2005 13:04:05 -0000 1.17.2.1 --- index.php 14 Jun 2005 14:27:40 -0000 1.17.2.2 *************** *** 29,33 **** // (1) Process Input - this sets $action, $user and $username /////////////////////////////////////////////////////////////// ! $action = 'loginscreen'; include('stackstd.php'); include($stack_root.'/frontend_general/process_input.php'); --- 29,33 ---- // (1) Process Input - this sets $action, $user and $username /////////////////////////////////////////////////////////////// ! include('stackstd.php'); include($stack_root.'/frontend_general/process_input.php'); |