phpslash-commit Mailing List for phpSlash (Page 78)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2002-09-16 21:18:49
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv10203/phpslash-ft/class Modified Files: Comment.class Log Message: commentEdit arguments Index: Comment.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Comment.class 13 Sep 2002 15:43:12 -0000 1.31 --- Comment.class 16 Sep 2002 21:18:46 -0000 1.32 *************** *** 1076,1081 **** * */ ! function commentEdit() { ! global $story_id,$comment_id,$parent_id; $this->db->query("SELECT name, --- 1076,1081 ---- * */ ! function commentEdit($ary='') { ! // global $story_id,$comment_id,$parent_id; $this->db->query("SELECT name, *************** *** 1084,1089 **** comment_text FROM psl_comment ! WHERE story_id = '$story_id' ! AND comment_id = '$comment_id'"); if ($this->db->next_record()) { --- 1084,1089 ---- comment_text FROM psl_comment ! WHERE story_id = '$ary[story_id]' ! AND comment_id = '$ary[comment_id]'"); if ($this->db->next_record()) { *************** *** 1094,1100 **** $ary['subject'] = clean($this->db->f("subject")); $ary['comment_text'] = clean($this->db->f("comment_text")); ! $ary['story_id'] = $story_id; ! $ary['parent_id'] = $parent_id; ! $ary['comment_id'] = $comment_id; return $this->getForm($ary); --- 1094,1100 ---- $ary['subject'] = clean($this->db->f("subject")); $ary['comment_text'] = clean($this->db->f("comment_text")); ! // $ary['story_id'] = $story_id; ! // $ary['parent_id'] = $parent_id; ! // $ary['comment_id'] = $comment_id; return $this->getForm($ary); |
From: Joe S. <joe...@us...> - 2002-09-16 21:15:20
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv9154/phpslash-ft/public_html/admin Modified Files: commentAdmin.php3 Log Message: commentEdit arguments Index: commentAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/commentAdmin.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** commentAdmin.php3 11 Sep 2002 20:21:52 -0000 1.11 --- commentAdmin.php3 16 Sep 2002 21:15:17 -0000 1.12 *************** *** 101,109 **** case "edit": $content .= getTitlebar("100%","Edit Comment"); ! $returned = $cmt->commentEdit($HTTP_POST_VARS); if($returned) { $content .= $returned; } else { ! $content .= getError($cmst->getMessage()); } break; --- 101,109 ---- case "edit": $content .= getTitlebar("100%","Edit Comment"); ! $returned = $cmt->commentEdit($HTTP_GET_VARS); if($returned) { $content .= $returned; } else { ! $content .= getError($cmt->getMessage()); } break; *************** *** 119,123 **** $content .= $returned; } else { ! $content .= getError($cmst->getMessage()); } break; --- 119,123 ---- $content .= $returned; } else { ! $content .= getError($cmt->getMessage()); } break; |
From: Joe S. <joe...@us...> - 2002-09-16 21:15:20
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv9154/phpslash-ft Modified Files: CHANGES Log Message: commentEdit arguments Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.558 retrieving revision 1.559 diff -C2 -d -r1.558 -r1.559 *** CHANGES 16 Sep 2002 15:11:15 -0000 1.558 --- CHANGES 16 Sep 2002 21:15:17 -0000 1.559 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-September-16 4:00PM CDT Joe Stewart <joe...@us...> + [B] - Comment.class, commentAdmin.php3 - commentEdit accepts GET variables via + arguments instead of globals. + 2002-September-16 10:00AM CDT Joe Stewart <joe...@us...> [B] - config.php3 - corrected missing require of MailingList.class. |
From: Joe S. <joe...@us...> - 2002-09-16 15:11:19
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv9009/phpslash-ft/public_html Modified Files: config.php3 Log Message: reqire MailingList.class Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.150 retrieving revision 1.151 diff -C2 -d -r1.150 -r1.151 *** config.php3 12 Sep 2002 15:13:08 -0000 1.150 --- config.php3 16 Sep 2002 15:11:17 -0000 1.151 *************** *** 515,528 **** require($_PSL['classdir'] . "/Section.class"); ! foreach($_PSL[module] as $key => $value) { switch ($key) { ! case Author: require($_PSL['classdir'] . "/Author.class"); break; ! case Block: require($_PSL['classdir'] . "/Block.class"); --- 515,528 ---- require($_PSL['classdir'] . "/Section.class"); ! foreach($_PSL['module'] as $key => $value) { switch ($key) { ! case 'Author': require($_PSL['classdir'] . "/Author.class"); break; ! case 'Block': require($_PSL['classdir'] . "/Block.class"); *************** *** 532,556 **** break; ! case Comment: require($_PSL['classdir'] . "/Comment.class"); break; ! case Group: require($_PSL['classdir'] . "/Group.class"); break; ! case NavBar: require($_PSL['classdir'] . "/NavBar.class"); break; ! case Poll: require($_PSL['classdir'] . "/Poll.class"); break; ! case Story: require($_PSL['classdir'] . "/Story_base.class"); --- 532,562 ---- break; ! case 'Comment': require($_PSL['classdir'] . "/Comment.class"); break; ! case 'Group': require($_PSL['classdir'] . "/Group.class"); break; ! case 'MailingList': ! ! require($_PSL['classdir'] . "/MailingList.class"); ! break; ! ! ! case 'NavBar': require($_PSL['classdir'] . "/NavBar.class"); break; ! case 'Poll': require($_PSL['classdir'] . "/Poll.class"); break; ! case 'Story': require($_PSL['classdir'] . "/Story_base.class"); *************** *** 559,573 **** break; ! case Submission: require($_PSL['classdir'] . "/Submission.class"); break; ! case TopicBar: require($_PSL['classdir'] . "/TopicBar.class"); break; ! case Variable: require($_PSL['classdir'] . "/Variable.class"); --- 565,579 ---- break; ! case 'Submission': require($_PSL['classdir'] . "/Submission.class"); break; ! case 'TopicBar': require($_PSL['classdir'] . "/TopicBar.class"); break; ! case 'Variable': require($_PSL['classdir'] . "/Variable.class"); |
From: Joe S. <joe...@us...> - 2002-09-16 15:11:19
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv9009/phpslash-ft Modified Files: CHANGES Log Message: reqire MailingList.class Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.557 retrieving revision 1.558 diff -C2 -d -r1.557 -r1.558 *** CHANGES 16 Sep 2002 14:52:58 -0000 1.557 --- CHANGES 16 Sep 2002 15:11:15 -0000 1.558 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-September-16 10:00AM CDT Joe Stewart <joe...@us...> + [B] - config.php3 - corrected missing require of MailingList.class. + 2002-September-16 9:30AM CDT Joe Stewart <joe...@us...> [W] - comment.php3 - beginnings of "login to post". |
From: Joe S. <joe...@us...> - 2002-09-16 14:53:01
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv1309/phpslash-ft Modified Files: CHANGES Log Message: login to post Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.556 retrieving revision 1.557 diff -C2 -d -r1.556 -r1.557 *** CHANGES 14 Sep 2002 16:12:16 -0000 1.556 --- CHANGES 16 Sep 2002 14:52:58 -0000 1.557 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-September-16 9:30AM CDT Joe Stewart <joe...@us...> + [W] - comment.php3 - beginnings of "login to post". + 2002-September-14 11:30AM CDT Joe Stewart <joe...@us...> [B] - backend.php3, backendWml.tpl - corrected bug [ 603504 ] backend.php3 |
From: Joe S. <joe...@us...> - 2002-09-16 14:53:01
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv1309/phpslash-ft/public_html Modified Files: comment.php3 Log Message: login to post Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** comment.php3 13 Sep 2002 17:23:42 -0000 1.18 --- comment.php3 16 Sep 2002 14:52:58 -0000 1.19 *************** *** 88,92 **** case "post": ! if ($ary[parent_id] != 0) { $parent_ary = $cmt->getCommentArray($ary[parent_id]); $ary['replying_to'] = $cmt->formatComment($parent_ary); --- 88,96 ---- case "post": ! if( !$perm->have_perm('commentPost')) { ! $auth->auth['error'] = pslgetText("Login required to post comments"); ! $auth->login_if(true); ! } ! if ($ary[parent_id] != 0) { $parent_ary = $cmt->getCommentArray($ary[parent_id]); $ary['replying_to'] = $cmt->formatComment($parent_ary); |
From: Joe S. <joe...@us...> - 2002-09-14 16:12:20
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic In directory usw-pr-cvs1:/tmp/cvs-serv11051/phpslash-ft/public_html/templates/en/basic Modified Files: backendWml.tpl Log Message: bugfix [ 603504 ] backend.php3 tricks IE Index: backendWml.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic/backendWml.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** backendWml.tpl 5 Sep 2002 00:41:57 -0000 1.2 --- backendWml.tpl 14 Sep 2002 16:12:17 -0000 1.3 *************** *** 1,10 **** ! <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="nifcard" title="{SITE_NAME}"> <!-- BEGIN each_story --> ! <P><u>{TITLE}</u> <i>{INTRO_TEXT}</i></P> <!-- END each_story --> ! <p align="right">Powered by <A HREF="{ROOTDIR}">{SITE_NAME}</A></p> </card> </wml> --- 1,10 ---- ! <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="nifcard" title="{SITE_NAME}"> <!-- BEGIN each_story --> ! <p><u>{TITLE}</u> <i>{INTRO_TEXT}</i></p> <!-- END each_story --> ! <p align="right">Powered by {SITE_NAME}</p> </card> </wml> |
From: Joe S. <joe...@us...> - 2002-09-14 16:12:20
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv11051/phpslash-ft/public_html/templates/en/default Modified Files: backendWml.tpl Log Message: bugfix [ 603504 ] backend.php3 tricks IE Index: backendWml.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/backendWml.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** backendWml.tpl 5 Sep 2002 00:41:57 -0000 1.2 --- backendWml.tpl 14 Sep 2002 16:12:17 -0000 1.3 *************** *** 1,10 **** ! <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="nifcard" title="{SITE_NAME}"> <!-- BEGIN each_story --> ! <P><u>{TITLE}</u> <i>{INTRO_TEXT}</i></P> <!-- END each_story --> ! <p align="right">Powered by <A HREF="{ROOTDIR}">{SITE_NAME}</A></p> </card> </wml> --- 1,10 ---- ! <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="nifcard" title="{SITE_NAME}"> <!-- BEGIN each_story --> ! <p><u>{TITLE}</u> <i>{INTRO_TEXT}</i></p> <!-- END each_story --> ! <p align="right">Powered by {SITE_NAME}</p> </card> </wml> |
From: Joe S. <joe...@us...> - 2002-09-14 16:12:20
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv11051/phpslash-ft Modified Files: CHANGES Log Message: bugfix [ 603504 ] backend.php3 tricks IE Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.555 retrieving revision 1.556 diff -C2 -d -r1.555 -r1.556 *** CHANGES 13 Sep 2002 20:51:43 -0000 1.555 --- CHANGES 14 Sep 2002 16:12:16 -0000 1.556 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-September-14 11:30AM CDT Joe Stewart <joe...@us...> + [B] - backend.php3, backendWml.tpl - corrected bug [ 603504 ] backend.php3 + tricks IE. + 2002-September-13 3:30PM CDT Joe Stewart <joe...@us...> [W] - slashAuthCR.class - test to preserve POST and GET variables through |
From: Joe S. <joe...@us...> - 2002-09-14 16:12:20
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv11051/phpslash-ft/public_html Modified Files: backend.php3 Log Message: bugfix [ 603504 ] backend.php3 tricks IE Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** backend.php3 5 Sep 2002 00:41:57 -0000 1.30 --- backend.php3 14 Sep 2002 16:12:17 -0000 1.31 *************** *** 76,82 **** --- 76,84 ---- case 'js': $viewtpl = 'backendJS.tpl'; + header("Content-type: application/x-javascript"); break; case 'jsdata': $viewtpl = 'backendJSData.tpl'; + header("Content-type: application/x-javascript"); break; case 'mozilla': *************** *** 86,95 **** --- 88,100 ---- case 'opml': $viewtpl = 'backendOpml.tpl'; + header("Content-type: text/xml"); break; case 'rss91': $viewtpl = 'backendRSS91.tpl'; + header("Content-type: text/xml"); break; case 'rss92': $viewtpl = 'backendRSS92.tpl'; + header("Content-type: text/xml"); break; case 'txt': *************** *** 98,101 **** --- 103,107 ---- case 'wml': $viewtpl = 'backendWml.tpl'; + header("Content-type: text/vnd.wap.wml"); break; case 'rss': *************** *** 129,132 **** --- 135,139 ---- // will be parsed with these variables. $template->set_var(array( + 'SKIN' => $_PSL['skin'], 'SITE_NAME' => $_PSL['site_name'], 'SITE_TITLE' => $_PSL['site_title'], *************** *** 155,159 **** case 'l': $description = $_PSL['site_name'] . ' - '; ! $description .= htmlentities(strip_tags($stories[$i]["intro_text"])); // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; --- 162,166 ---- case 'l': $description = $_PSL['site_name'] . ' - '; ! $description .= htmlspecialchars(strip_tags($stories[$i]["intro_text"])); // $description .= format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; *************** *** 161,174 **** case '1': default: ! $description = htmlentities(strip_tags($stories[$i]["intro_text"])); // $description = format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; } - - $template->set_var(array( 'STORY_ID' => $stories[$i]['story_id'], ! 'TITLE' => htmlentities($stories[$i]['title']), 'INTRO_TEXT' => $description, 'IDX' => $i, --- 168,179 ---- case '1': default: ! $description = htmlspecialchars(strip_tags($stories[$i]["intro_text"])); // $description = format_mail(eregi_replace("<([font][^>]*)>", "",$stories[$i]["intro_text"]),"80", "scrub"); break; } $template->set_var(array( 'STORY_ID' => $stories[$i]['story_id'], ! 'TITLE' => htmlspecialchars($stories[$i]['title']), 'INTRO_TEXT' => $description, 'IDX' => $i, |
From: Joe S. <joe...@us...> - 2002-09-13 21:01:42
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv3995/phpslash-ft/class Modified Files: slashAuthCR.class Log Message: preserve GET and POST through login Index: slashAuthCR.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** slashAuthCR.class 31 Aug 2002 14:10:53 -0000 1.15 --- slashAuthCR.class 13 Sep 2002 20:51:44 -0000 1.16 *************** *** 43,47 **** function auth_loginform() { ! global $_PSL, $challenge; $challenge = md5(uniqid($this->magic)); --- 43,53 ---- function auth_loginform() { ! global $_PSL, $challenge, $HTTP_GET_VARS, $HTTP_POST_VARS, $sess, $saved_get, $saved_post; ! ! $saved_post = $HTTP_POST_VARS; ! $saved_get = $HTTP_GET_VARS; ! ! $sess->register("saved_post"); ! $sess->register("saved_get"); $challenge = md5(uniqid($this->magic)); *************** *** 64,68 **** } else { $templ->set_var('USERNAME', ""); ! $this->auth["error"] = ""; } if (isset($this->auth["error"])) { --- 70,74 ---- } else { $templ->set_var('USERNAME', ""); ! // $this->auth["error"] = ""; } if (isset($this->auth["error"])) { *************** *** 135,139 **** function auth_validatelogin() { ! global $HTTP_POST_VARS; // TODO: Change there so they aren't undefined indexes :) $username = $HTTP_POST_VARS['username']; --- 141,145 ---- function auth_validatelogin() { ! global $HTTP_POST_VARS, $HTTP_GET_VARS, $saved_get, $saved_post; // TODO: Change there so they aren't undefined indexes :) $username = $HTTP_POST_VARS['username']; *************** *** 217,220 **** --- 223,231 ---- // may also need to get legacy records $this->auth["perm"] = $this->get_userperms( $uid); + + $this->auth["error"] = ""; + + $HTTP_GET_VARS = $saved_get; + $HTTP_POST_VARS = $saved_post; return $uid; |
From: Joe S. <joe...@us...> - 2002-09-13 21:01:42
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv3995/phpslash-ft Modified Files: CHANGES Log Message: preserve GET and POST through login Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.554 retrieving revision 1.555 diff -C2 -d -r1.554 -r1.555 *** CHANGES 13 Sep 2002 17:23:41 -0000 1.554 --- CHANGES 13 Sep 2002 20:51:43 -0000 1.555 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-September-13 3:30PM CDT Joe Stewart <joe...@us...> + [W] - slashAuthCR.class - test to preserve POST and GET variables through + login to provide an interstitial login process. + 2002-September-13 12:00PM CDT Joe Stewart <joe...@us...> [W] - comment.php3 - register_globals off. |
From: Joe S. <joe...@us...> - 2002-09-13 17:23:46
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv26716/phpslash-ft/public_html Modified Files: comment.php3 Log Message: comment.php3 - register_globals off Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** comment.php3 11 Sep 2002 20:21:52 -0000 1.17 --- comment.php3 13 Sep 2002 17:23:42 -0000 1.18 *************** *** 8,179 **** page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); ! $auth->login_if(!$perm->have_perm('commentPost')); ! ! /* if we are the result of a post operation, then setup the ! session variables */ ! if ($REQUEST_METHOD == "POST") { ! $name = $HTTP_POST_VARS["name"]; ! $email = $HTTP_POST_VARS["email"]; ! $url = $HTTP_POST_VARS["url"]; ! } ! if (isset($cookiebox)) { ! $sess->register("name"); ! $sess->register("email"); ! $sess->register("url"); ! } ! ! $cmtary[mode] = $HTTP_GET_VARS[mode]; ! $cmtary[order] = $HTTP_GET_VARS[order]; ! $cmtary[story_id] = $story_id; ! $cmtary[comment_id] = $comment_id; ! ! #if (!isset($HTTP_GET_VARS[parent_id])) { ! # $cmtary[parent_id] = 0; ! #} else { ! # $cmtary[parent_id] = $HTTP_GET_VARS[parent_id]; ! #} ! ! if (!isset($parent_id)) { ! $cmtary[parent_id] = 0; ! } else { ! $cmtary[parent_id] = $parent_id; ! } ! ! if ((!$section) AND (!$section_id)){ ! $section = $_PSL['site_homesection']; ! if(!$section) { ! $section = "Home"; ! } ! $ary['section'] = $section; ! } else { ! $pagetitle .= " - $section"; ! } ! ! $cmt = new Comment($cmtary); $content = ''; ! switch($submit) { ! case "show": ! ! /* when you click on a link in the thread/index view... */ ! ! if ($comment_id) { ! # this commented out code shows ONE comment. ! # ! # $comment_show_ary = $cmt->getCommentArray($comment_id); ! # echo $cmt->formatComment($comment_show_ary); ! # ! # This code, shows the one comment and any children ! $content .= $cmt->getAllComments($cmtary); ! } else { ! $content .= "can't do much without a comment_id! ($comment_id)"; ! } ! break; ! case "post": ! /* the first step in posting a comment */ ! if ($cmtary[parent_id] != 0) { ! $parent_ary = $cmt->getCommentArray($cmtary[parent_id]); ! $replying_to = $cmt->formatComment($parent_ary); ! } else { ! $story = new Story; ! $replying_to = $story->getStory($cmtary[story_id],"full"); ! } ! $ary = array( ! replying_to => $replying_to, ! action_url => $PHP_SELF, ! story_id => $cmtary[story_id], ! parent_id => $cmtary[parent_id], ! name => $name, ! email => $email, ! content => $content, ! siteowner => $_PSL['site_owner'], ! comment_text => $comment_text ! ); ! if ($parent_ary[subject] == "") { ! $ary[subject] = pslgetText("No Subject Given"); ! } elseif( preg_match ("/Re\:/i",$parent_ary['subject'])) { ! $ary[subject] = $parent_ary[subject]; ! } else { ! $ary[subject] = pslgetText("Re: ") . $parent_ary[subject]; ! } ! $content .= $cmt->getForm($ary); ! break; ! case "preview": ! /* when you are previewing a comment before submitting */ ! $ary = array( ! name => $name, ! subject => $subject, ! story_id => $cmtary[story_id], ! parent_id => $cmtary[parent_id], ! comment_id => $cmtary[comment_id], ! comment_text => $comment_text, ! content => $content, ! email => $email, ! time => date("l, F d @h:iA", time()), ! timestamp => time(), ! action_url => $PHP_SELF ! ); ! $ary[replying_to] = $cmt->formatComment($ary); ! $content .= $cmt->getForm($ary); ! break; ! case "view": ! case "Change": ! /* the basic viewing of the comments */ ! $content .= getTitlebar("100%", pslgetText("Comments")); ! $content .= $cmt->getAllComments($cmtary); ! break; ! case "save": ! /* when you click on "save", this is what happens.. */ ! $content .= "<BR>Click <A HREF=\"" . $return_link . "\">here</A> to go back<BR>\n"; ! if ($parent_id) { ! $content .= "<A HREF=\"" . $_PSL[rooturl] . "/comment.php3?submit=show&story_id=$story_id&comment_id=$parent_id&mode=flat\">View Parent Comment</A>\n"; ! } ! $content .= "<BR><BR>\n"; ! $content .= getTitlebar("100%", "Submitted Comment"); ! $ary = $HTTP_POST_VARS; /* get all the POST'ed VARS */ ! $ary['ip'] = $REMOTE_ADDR; /* add the poster's IP addr */ ! $id = $cmt->update($ary); ! if ($id) { ! $comment_ary = $cmt->getCommentArray($id); ! $content .= $cmt->formatComment($comment_ary); ! // send email for new submission. ! if ($_PSL[commentnotify]) { ! $mail_ary['tpl'] = "emailNotifyComment"; ! $mail_ary['vars'] = $HTTP_POST_VARS + $cmtary; ! $success = emailNotify($mail_ary); ! } ! } else { ! $content .= pslgetText("Your comment was NOT saved") . "<BR>\n"; ! } ! break; ! default: ! $content .= pslgetText("You didn't supply a good submit value") . "<BR>\n"; - echo "<PRE>\n"; - var_dump($HTTP_POST_VARS); - echo "</PRE>\n"; } --- 8,151 ---- page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); ! $auth->login_if(!$perm->have_perm('commentView')); $content = ''; ! if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $ary = $HTTP_POST_VARS; ! ! $name = $ary['name']; ! $email = $ary['email']; ! $url = $ary['url']; ! ! if (!empty($ary['cookiebox'])) { ! ! $name = $ary['name']; ! $email = $ary['email']; ! $url = $ary['url']; ! $sess->register("name"); ! $sess->register("email"); ! $sess->register("url"); ! } ! ! $cmt = new Comment($ary); ! ! switch( $submit) { ! case "preview": ! ! // when you are previewing a comment before submitting ! ! $ary[replying_to] = $cmt->formatComment($ary); ! $content .= $cmt->getForm($ary); ! break; ! ! case "save": ! $content .= "<BR>Click <A HREF=\"" . $return_link . "\">here</A> to go back<BR>\n"; ! if ($ary['parent_id']) { ! $content .= "<A HREF=\"" . $_PSL[rooturl] . "/comment.php3?submit=view&story_id=$ary[story_id]&comment_id=$ary[parent_id]&mode=flat\">View Parent Comment</A>\n"; ! } ! $content .= getTitlebar("100%", "Submitted Comment"); ! $ary['ip'] = $REMOTE_ADDR; /* add the poster's IP addr */ ! $id = $cmt->update($ary); ! if ($id) { ! $content .= getMessage($cmt->getMessage()); ! $comment_ary = $cmt->getCommentArray($id); ! $content .= $cmt->formatComment($comment_ary); ! // send email for new submission. ! if ($_PSL[commentnotify]) { ! $mail_ary['tpl'] = "emailNotifyComment"; ! $mail_ary['vars'] = $ary; ! $success = emailNotify($mail_ary); ! } ! } else { ! $content .= getError($cmt->getMessage()); ! } ! break; ! } ! ! } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $ary = $HTTP_GET_VARS; ! if (empty($ary['parent_id'])) { ! $ary['parent_id'] = 0; ! } ! $cmt = new Comment($ary); ! switch( $submit) { ! ! case "post": ! if ($ary[parent_id] != 0) { ! $parent_ary = $cmt->getCommentArray($ary[parent_id]); ! $ary['replying_to'] = $cmt->formatComment($parent_ary); ! } else { ! $story = new Story; ! $ary['replying_to'] = $story->getStory($ary[story_id],"full"); ! } ! if ($parent_ary[subject] == "") { ! $ary[subject] = pslgetText("No Subject Given"); ! } elseif( preg_match ("/Re\:/i",$parent_ary['subject'])) { ! $ary[subject] = $parent_ary[subject]; ! } else { ! $ary[subject] = pslgetText("Re: ") . $parent_ary[subject]; ! } ! $ary['action_url'] = $_PSL['phpself']; ! $ary['siteowner'] = $_PSL['site_owner']; ! // session variables ! if(isset($name)) { ! $ary['name'] = $name; ! } ! if(isset($email)) { ! $ary['email'] = $email; ! } ! if(isset($url)) { ! $ary['url'] = $url; ! } ! ! $content .= $cmt->getForm($ary); ! break; ! case "view": ! case "Change": ! // the basic viewing of the comments ! $content .= getTitlebar("100%", pslgetText("Comments")); ! $content .= $cmt->getAllComments($ary); ! break; ! } ! ! } ! if($content == '') { ! $content = getTitlebar("100%","Comment Error!"); ! $content .= getError(pslgetText("You didn't supply a good submit value")); ! } + if ((!$HTTP_GET_VARS['section']) AND (!$HTTP_GET_VARS['section_id'])){ + $section = $_PSL['site_homesection']; + if(!$section) { + $section = "Home"; + } + $ary['section'] = $section; + } else { + $pagetitle .= " - $section"; } |
From: Joe S. <joe...@us...> - 2002-09-13 17:23:44
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv26716/phpslash-ft Modified Files: CHANGES Log Message: comment.php3 - register_globals off Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.553 retrieving revision 1.554 diff -C2 -d -r1.553 -r1.554 *** CHANGES 13 Sep 2002 15:43:12 -0000 1.553 --- CHANGES 13 Sep 2002 17:23:41 -0000 1.554 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-September-13 12:00PM CDT Joe Stewart <joe...@us...> + [W] - comment.php3 - register_globals off. + 2002-September-13 10:30AM CDT Joe Stewart <joe...@us...> [B] - Comment.class - comma typo. |
From: Joe S. <joe...@us...> - 2002-09-13 15:43:15
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv22626/phpslash-ft Modified Files: CHANGES Log Message: Cemment.class comma typo Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.552 retrieving revision 1.553 diff -C2 -d -r1.552 -r1.553 *** CHANGES 12 Sep 2002 15:13:05 -0000 1.552 --- CHANGES 13 Sep 2002 15:43:12 -0000 1.553 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-September-13 10:30AM CDT Joe Stewart <joe...@us...> + [B] - Comment.class - comma typo. + 2002-September-12 10:00AM CDT Joe Stewart <joe...@us...> [W] - submission.php3, slash-all.sql - ability to submit articles is defined |
From: Joe S. <joe...@us...> - 2002-09-13 15:43:15
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv22626/phpslash-ft/class Modified Files: Comment.class Log Message: Cemment.class comma typo Index: Comment.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Comment.class,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** Comment.class 10 Sep 2002 21:09:50 -0000 1.30 --- Comment.class 13 Sep 2002 15:43:12 -0000 1.31 *************** *** 160,164 **** subject, comment_text, ! date_format(date,\"%W, %M %d \@%h:%i%p\") AS time UNIX_TIMESTAMP(date) AS timestamp FROM psl_comment --- 160,164 ---- subject, comment_text, ! date_format(date,\"%W, %M %d \@%h:%i%p\") AS time, UNIX_TIMESTAMP(date) AS timestamp FROM psl_comment |
From: Joe S. <joe...@us...> - 2002-09-12 15:13:15
|
Update of /cvsroot/phpslash/phpslash-ft/tables/0.7 In directory usw-pr-cvs1:/tmp/cvs-serv4830/phpslash-ft/tables/0.7 Modified Files: slash-all.sql Log Message: nobody permissions Index: slash-all.sql =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/tables/0.7/slash-all.sql,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** slash-all.sql 31 Aug 2002 14:10:54 -0000 1.10 --- slash-all.sql 12 Sep 2002 15:13:09 -0000 1.11 *************** *** 142,146 **** INSERT INTO db_sequence VALUES ('psl_group_seq',27); INSERT INTO db_sequence VALUES ('psl_group_section_lut_seq',66); ! INSERT INTO db_sequence VALUES ('psl_group_permission_lut_seq',109); INSERT INTO db_sequence VALUES ('psl_group_group_lut_seq',64); INSERT INTO db_sequence VALUES ('psl_author_group_lut_seq',27); --- 142,146 ---- INSERT INTO db_sequence VALUES ('psl_group_seq',27); INSERT INTO db_sequence VALUES ('psl_group_section_lut_seq',66); ! INSERT INTO db_sequence VALUES ('psl_group_permission_lut_seq',110); INSERT INTO db_sequence VALUES ('psl_group_group_lut_seq',64); INSERT INTO db_sequence VALUES ('psl_author_group_lut_seq',27); *************** *** 656,659 **** --- 656,660 ---- INSERT INTO psl_group_permission_lut VALUES (94,20,3); INSERT INTO psl_group_permission_lut VALUES (95,20,5); + INSERT INTO psl_group_permission_lut VALUES (109,20,12); INSERT INTO psl_group_permission_lut VALUES (96,21,4); INSERT INTO psl_group_permission_lut VALUES (97,21,6); |
From: Joe S. <joe...@us...> - 2002-09-12 15:13:15
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv4830/phpslash-ft/public_html Modified Files: submission.php3 config.php3 Log Message: nobody permissions Index: submission.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/submission.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** submission.php3 11 Sep 2002 17:14:25 -0000 1.10 --- submission.php3 12 Sep 2002 15:13:08 -0000 1.11 *************** *** 8,11 **** --- 8,13 ---- page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); + $auth->login_if(!$perm->have_perm('submissionNew')); + $ary_post = $HTTP_POST_VARS; $ary = $HTTP_GET_VARS; Index: config.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/config.php3,v retrieving revision 1.149 retrieving revision 1.150 diff -C2 -d -r1.149 -r1.150 *** config.php3 3 Sep 2002 19:52:57 -0000 1.149 --- config.php3 12 Sep 2002 15:13:08 -0000 1.150 *************** *** 331,335 **** 'name' => "Add Story", 'link' => $_PSL['rooturl'] . "/submission.php3", ! 'perm' => "nobody", 'module' => "Submission" ); --- 331,335 ---- 'name' => "Add Story", 'link' => $_PSL['rooturl'] . "/submission.php3", ! 'perm' => "submissionNew", 'module' => "Submission" ); *************** *** 511,568 **** // SECTION 3 - PHPSLASH CLASS CONFIGURATION ------------------------------ ////////////////////////////////////////////////////////////////////////// - // TODO: nh: Re-write this in a for loop ! if ($_PSL['module']['Comment']) { ! require($_PSL['classdir'] . "/Comment.class"); ! } ! if ($_PSL['module']['Poll']) { ! require($_PSL['classdir'] . "/Poll.class"); ! } ! if ($_PSL['module']['Story']) { ! require($_PSL['classdir'] . "/Story_base.class"); ! require($_PSL['classdir'] . "/Story.class"); ! require($_PSL['classdir'] . "/Story_admin.class"); ! } ! require($_PSL['classdir'] . "/Topic.class"); ! require($_PSL['classdir'] . "/Section.class"); ! if ($_PSL['module']['Submission']) { ! require($_PSL['classdir'] . "/Submission.class"); ! } ! if ($_PSL['module']['TopicBar']) { ! require($_PSL['classdir'] . "/TopicBar.class"); ! } ! if ($_PSL['module']['NavBar']) { ! require($_PSL['classdir'] . "/NavBar.class"); ! } ! if ($_PSL['module']['Block']) { ! require($_PSL['classdir'] . "/Block.class"); ! require($_PSL['classdir'] . "/Block_i.class"); ! require($_PSL['classdir'] . "/Block_admin.class"); ! require($_PSL['classdir'] . "/Block_render_i.class"); ! } ! require($_PSL['classdir'] . "/Author.class"); ! if ($_PSL['module']['Glossary']) { ! require($_PSL['classdir'] . "/Glossary.class"); ! } - if ($_PSL['module']['MailingList']) { - require($_PSL['classdir'] . "/MailingList.class"); - } - if ($_PSL['module']['Variable']) { - require($_PSL['classdir'] . "/Variable.class"); - } - if ($_PSL['module']['Group']) { - require($_PSL['classdir'] . "/Group.class"); } --- 511,583 ---- // SECTION 3 - PHPSLASH CLASS CONFIGURATION ------------------------------ ////////////////////////////////////////////////////////////////////////// ! require($_PSL['classdir'] . "/Topic.class"); ! require($_PSL['classdir'] . "/Section.class"); ! foreach($_PSL[module] as $key => $value) { ! switch ($key) { ! case Author: ! require($_PSL['classdir'] . "/Author.class"); ! break; ! case Block: ! require($_PSL['classdir'] . "/Block.class"); ! require($_PSL['classdir'] . "/Block_i.class"); ! require($_PSL['classdir'] . "/Block_admin.class"); ! require($_PSL['classdir'] . "/Block_render_i.class"); ! break; ! case Comment: ! require($_PSL['classdir'] . "/Comment.class"); ! break; ! case Group: ! require($_PSL['classdir'] . "/Group.class"); ! break; ! ! case NavBar: ! ! require($_PSL['classdir'] . "/NavBar.class"); ! break; ! ! case Poll: ! ! require($_PSL['classdir'] . "/Poll.class"); ! break; ! ! case Story: ! ! require($_PSL['classdir'] . "/Story_base.class"); ! require($_PSL['classdir'] . "/Story.class"); ! require($_PSL['classdir'] . "/Story_admin.class"); ! break; ! ! case Submission: ! ! require($_PSL['classdir'] . "/Submission.class"); ! break; ! ! case TopicBar: ! ! require($_PSL['classdir'] . "/TopicBar.class"); ! break; ! ! case Variable: ! ! require($_PSL['classdir'] . "/Variable.class"); ! break; ! ! } } + + + |
From: Joe S. <joe...@us...> - 2002-09-12 15:13:15
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv4830/phpslash-ft Modified Files: CHANGES Log Message: nobody permissions Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.551 retrieving revision 1.552 diff -C2 -d -r1.551 -r1.552 *** CHANGES 11 Sep 2002 20:21:52 -0000 1.551 --- CHANGES 12 Sep 2002 15:13:05 -0000 1.552 *************** *** 13,16 **** --- 13,22 ---- 9 - Removal of something (kill -9 :) + 2002-September-12 10:00AM CDT Joe Stewart <joe...@us...> + [W] - submission.php3, slash-all.sql - ability to submit articles is defined + by the group "nobody" having the "submissionNew" permission. + config.php3 - submission link in navbar controlled by submissionNew + permission. Added foreach loop for module class inclusion. + 2002-September-11 12:30PM CDT Joe Stewart <joe...@us...> [B] - Properly initialize the $content variable - comment.php3, poll.php3, |
From: Joe S. <joe...@us...> - 2002-09-11 20:23:26
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv29141/phpslash-ft/public_html Modified Files: test.php3 Log Message: register_globals off Index: test.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/test.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** test.php3 19 Mar 2002 17:17:14 -0000 1.4 --- test.php3 11 Sep 2002 20:23:23 -0000 1.5 *************** *** 60,65 **** /* Handle special modes */ ! if (isset($mode)) { ! switch ($mode) { case 'phpinfo': --- 60,65 ---- /* Handle special modes */ ! if (isset($HTTP_GET_VARS['mode'])) { ! switch ($HTTP_GET_VARS['mode']) { case 'phpinfo': |
From: Joe S. <joe...@us...> - 2002-09-11 20:21:55
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv28691/phpslash-ft/public_html/admin Modified Files: commentAdmin.php3 groupAdmin.php3 infologAdmin.php3 variableAdmin.php3 Log Message: initialize content variable Index: commentAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/commentAdmin.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** commentAdmin.php3 10 Sep 2002 21:09:50 -0000 1.10 --- commentAdmin.php3 11 Sep 2002 20:21:52 -0000 1.11 *************** *** 26,30 **** $cmt = new Comment; ! $content .= ''; if(!empty($HTTP_POST_VARS['action'])) { --- 26,30 ---- $cmt = new Comment; ! $content = ''; if(!empty($HTTP_POST_VARS['action'])) { Index: groupAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/groupAdmin.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** groupAdmin.php3 10 Sep 2002 21:09:50 -0000 1.3 --- groupAdmin.php3 11 Sep 2002 20:21:52 -0000 1.4 *************** *** 27,31 **** $group = new Group; ! $content .= ''; if(!empty($HTTP_POST_VARS['submit'])) { --- 27,31 ---- $group = new Group; ! $content = ''; if(!empty($HTTP_POST_VARS['submit'])) { Index: infologAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/infologAdmin.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** infologAdmin.php3 10 Sep 2002 21:09:50 -0000 1.6 --- infologAdmin.php3 11 Sep 2002 20:21:53 -0000 1.7 *************** *** 25,28 **** --- 25,30 ---- /* END DEBUG */ + $content = ''; + if ($perm->have_perm("infologList")) { switch ($HTTP_POST_VARS['submit']) { Index: variableAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/variableAdmin.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** variableAdmin.php3 10 Sep 2002 21:09:50 -0000 1.5 --- variableAdmin.php3 11 Sep 2002 20:21:53 -0000 1.6 *************** *** 26,30 **** $variable = new Variable; ! $content .= ''; if(!empty($HTTP_POST_VARS['submit'])) { --- 26,30 ---- $variable = new Variable; ! $content = ''; if(!empty($HTTP_POST_VARS['submit'])) { |
From: Joe S. <joe...@us...> - 2002-09-11 20:21:55
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv28691/phpslash-ft Modified Files: CHANGES Log Message: initialize content variable Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.550 retrieving revision 1.551 diff -C2 -d -r1.550 -r1.551 *** CHANGES 11 Sep 2002 17:14:21 -0000 1.550 --- CHANGES 11 Sep 2002 20:21:52 -0000 1.551 *************** *** 14,17 **** --- 14,21 ---- 2002-September-11 12:30PM CDT Joe Stewart <joe...@us...> + [B] - Properly initialize the $content variable - comment.php3, poll.php3, + commentAdmin.php3, groupAdmin.php3, infologAdmin.php3, variableAdmin.php3. + + 2002-September-11 12:30PM CDT Joe Stewart <joe...@us...> [W] - more work towards register_globals off. Affected files - about.php3, article.php3, errordocument.php3, glossary.php3, index.php3, login.php3, |
From: Joe S. <joe...@us...> - 2002-09-11 20:21:55
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv28691/phpslash-ft/public_html Modified Files: poll.php3 comment.php3 Log Message: initialize content variable Index: poll.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/poll.php3,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** poll.php3 11 Sep 2002 17:14:24 -0000 1.15 --- poll.php3 11 Sep 2002 20:21:52 -0000 1.16 *************** *** 44,47 **** --- 44,49 ---- $cmtary['question_id'] = $question_id; + $content = ''; + switch ($ary['submit']) { case "vote": Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** comment.php3 3 Sep 2002 15:06:08 -0000 1.16 --- comment.php3 11 Sep 2002 20:21:52 -0000 1.17 *************** *** 52,56 **** $cmt = new Comment($cmtary); ! $content .= ''; switch($submit) { --- 52,56 ---- $cmt = new Comment($cmtary); ! $content = ''; switch($submit) { |
From: Joe S. <joe...@us...> - 2002-09-11 17:14:57
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv31714/phpslash-ft/public_html/admin Modified Files: blockAdmin.php3 Log Message: register_globals off Index: blockAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/blockAdmin.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** blockAdmin.php3 10 Sep 2002 21:09:50 -0000 1.7 --- blockAdmin.php3 11 Sep 2002 17:14:23 -0000 1.8 *************** *** 30,36 **** } elseif (!empty($HTTP_GET_VARS['submit'])) { $submit = $HTTP_GET_VARS['submit']; - $_PSL['debug'] = true; - debug("GET_VARS", $HTTP_GET_VARS); - $_PSL['debug'] = false; } else { $submit = ''; --- 30,33 ---- |