[Phpslash-commit] CVS: phpslash-ft/public_html poll.php3,1.9,1.10
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2002-02-11 18:26:01
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv14287/phpslash-ft/public_html Modified Files: poll.php3 Log Message: register_globals off Index: poll.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/poll.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** poll.php3 6 Feb 2002 19:55:46 -0000 1.9 --- poll.php3 11 Feb 2002 18:25:58 -0000 1.10 *************** *** 9,12 **** --- 9,17 ---- page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); + /* parse cmd line variables into array */ + while ( list($key, $val) = each($HTTP_GET_VARS )) { + $ary[$key] = $val; + } + slashhead($pagetitle,$xsiteobject); *************** *** 14,20 **** /* the comment stuff is using "story_id" so we have to funky fix it here. */ ! if (!$question_id && $story_id) { ! $question_id = $story_id; ! }; $as = arg_separator("1"); # Default: = & --- 19,27 ---- /* the comment stuff is using "story_id" so we have to funky fix it here. */ ! if (!$ary['question_id'] && $ary['story_id']) { ! $question_id = $ary['story_id']; ! } else { ! $question_id = $ary['question_id']; ! } $as = arg_separator("1"); # Default: = & *************** *** 26,34 **** /* setting up the possible comment variables... */ ! $cmtary['mode'] = $mode; ! $cmtary['order'] = $order; $cmtary['question_id'] = $question_id; ! switch ($submit) { case "vote": $poll->vote($question_id, $answer_id, $REMOTE_ADDR); --- 33,41 ---- /* setting up the possible comment variables... */ ! $cmtary['mode'] = $ary['mode']; ! $cmtary['order'] = $ary['order']; $cmtary['question_id'] = $question_id; ! switch ($ary['submit']) { case "vote": $poll->vote($question_id, $answer_id, $REMOTE_ADDR); *************** *** 55,59 **** case "list": ! $poll->listPolls ($min); break; --- 62,66 ---- case "list": ! $poll->listPolls ($ary['min']); break; *************** *** 62,66 **** $poll->resultPage($cmtary); } else { ! $poll->listPolls ($min); } } --- 69,73 ---- $poll->resultPage($cmtary); } else { ! $poll->listPolls ($ary['min']); } } |