cvs: pear /Forum/frontend list.php
| From: | Thomas V.V.Cox | Date: | Fri, 12 Oct 2001 18:08:52 +0000 |
| Subject: | cvs: pear /Forum/frontend list.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-991@lists.php.net to get a copy of this message | ||
cox Fri Oct 12 14:08:52 2001 EDT
Modified files:
/pear/Forum/frontend list.php
Log:
don't throw debug msgs when DEBUG is not set
Index: pear/Forum/frontend/list.php
diff -u pear/Forum/frontend/list.php:1.1 pear/Forum/frontend/list.php:1.2
--- pear/Forum/frontend/list.php:1.1 Sat Oct 6 17:59:42 2001
+++ pear/Forum/frontend/list.php Fri Oct 12 14:08:52 2001
@@ -8,13 +8,16 @@
if(isset($collapse) && $collapse == "1") {
SetCookie("collapse","1",time()+60*60*24*30); //keep cookie for 30 days
- print 'SetCookie("collapse","1",time()+60*60*24*30); //keep cookie for 30
days';
+ $_cookietext = 'SetCookie("collapse","1",time()+60*60*24*30); //keep
cookie for 30 days';
} else {
SetCookie("collapse","0",time()+60*60*24*30); //keep cookie for 30 days
- print 'SetCookie("collapse","0",time()+60*60*24*30); //keep cookie for 30
days';
+ $_cookietext = 'SetCookie("collapse","0",time()+60*60*24*30); //keep
cookie for 30 days';
+}
+if($FORUM["DEBUG"]) {
+ print $_cookietext;
+ my_var_dump($HTTP_COOKIE_VARS);
+ my_var_dump($collapse);
}
-my_var_dump($HTTP_COOKIE_VARS);
-my_var_dump($collapse);
// forum_start load's any include files needed and returns a class
$list = forum_start(FORUM_LIST);
@@ -35,10 +38,8 @@
$list->get_settings();
if(isset($collapse) && $collapse == "1") {
- print "COLLAPSE";
$list->collapse=1;
} else {
- print "EXPLODE";
$list->collapse=0;
}