cvs: php-hosts-web /msgboard list.php message.php shared-msgboard.inc toolbar.php /msgboard/etc delete.php
| From: | jim winstead | Date: | Mon, 22 Apr 2002 00:52:17 +0000 |
| Subject: | cvs: php-hosts-web /msgboard list.php message.php shared-msgboard.inc toolbar.php /msgboard/etc delete.php | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-9742@lists.php.net to get a copy of this message | ||
jimw Sun Apr 21 20:52:17 2002 EDT
Modified files:
/php-hosts-web/msgboard list.php message.php shared-msgboard.inc
toolbar.php
/php-hosts-web/msgboard/etc delete.php
Log:
remove USE_SUBGROUPS switch
Index: php-hosts-web/msgboard/list.php
diff -u php-hosts-web/msgboard/list.php:1.2 php-hosts-web/msgboard/list.php:1.3
--- php-hosts-web/msgboard/list.php:1.2 Sun Apr 21 20:48:38 2002
+++ php-hosts-web/msgboard/list.php Sun Apr 21 20:52:17 2002
@@ -1,16 +1,12 @@
<?php
include("shared-msgboard.inc");
-if ($USE_SUBGROUPS):
- if (isSet($subgroup)):
- $groupname=getSubgroupName($subgroup);
- commonHeader("List Messages: $groupname");
- title("List Messages");
- else:
- Header("Location: index.php");
- exit;
- endif;
+if (isSet($subgroup)):
+ $groupname=getSubgroupName($subgroup);
+ commonHeader("List Messages: $groupname");
+ title("List Messages");
else:
- $subgroup=0;
+ Header("Location: index.php");
+ exit;
endif;
?>
@@ -41,7 +37,7 @@
<CENTER>
<?
-include($TOOLBAR);
+include('toolbar.php');
echo "</CENTER>\n";
commonFooter();
?>
Index: php-hosts-web/msgboard/message.php
diff -u php-hosts-web/msgboard/message.php:1.3 php-hosts-web/msgboard/message.php:1.4
--- php-hosts-web/msgboard/message.php:1.3 Sun Apr 21 20:42:03 2002
+++ php-hosts-web/msgboard/message.php Sun Apr 21 20:52:17 2002
@@ -24,7 +24,7 @@
echo "</TABLE><BR>\n";
echo "<CENTER>\n";
echo "<a
href=\"post.php?subgroup=$subgroup&parent=$id\">$BUTTON_POSTFOLLOW</a>
| \n";
-include($TOOLBAR);
+include('toolbar.php');
echo "</CENTER>\n";
commonFooter();
?>
Index: php-hosts-web/msgboard/shared-msgboard.inc
diff -u php-hosts-web/msgboard/shared-msgboard.inc:1.7
php-hosts-web/msgboard/shared-msgboard.inc:1.8
--- php-hosts-web/msgboard/shared-msgboard.inc:1.7 Sun Apr 21 20:48:38 2002
+++ php-hosts-web/msgboard/shared-msgboard.inc Sun Apr 21 20:52:17 2002
@@ -46,19 +46,6 @@
$TABLE_MSGS="msgboard_msgs";
-/* Setup the directory and URL structures: */
-
-$HOME_URL="http://hosts.php.net";
-$GIFS="$ROOT_URL/gifs";
-$STAFF_URL="http://hosts.php.net/staff";
-$TOOLBAR="toolbar.php";
-
-/* If $USE_SUBGROUP = true, you will have subgroups, or categories, defined for each message.
- Write your own code to convert between the subgroup number and the subgroup name!
-*/
-
-$USE_SUBGROUPS = true;
-
$SUBGROUP_TITLE = "Hosting Company";
$query = "select * from $HOSTS_TABLE order by HostName";
@@ -217,9 +204,7 @@
$FT2="<FONT FACE=\"$FONTFACE\" COLOR=\"$TEXT_COLOR2\"
SIZE=-1>";
echo "<TABLE BORDER=0 cellpadding=3 cellspacing=0 width=$TABLE_WIDTH
BGCOLOR=\"$MSG_FRAME_COLOR2\">\n";
echo "<TR VALIGN=top><TD align=right WIDTH=20%>$FT1
Title:<BR></TD><TD
align=left>$FT2<B>$subj</B><BR></TD></TR>\n";
- if ($USE_SUBGROUPS):
- echo "<TR VALIGN=top><TD align=right>$FT1 Play:</TD><TD
align=left>$FT2<B>".getSubgroupName($subgroup)."</B></TD></TR>\n";
- endif;
+ echo "<TR VALIGN=top><TD align=right>$FT1 Play:</TD><TD
align=left>$FT2<B>".getSubgroupName($subgroup)."</B></TD></TR>\n";
echo "<TR VALIGN=top><TD align=right>$FT1 Posted by:</TD><TD
align=left>$FT2<B>$name</B>";
if ($email!=""):
echo " <<a href=\"mailto:$email\">$email</a>>";
Index: php-hosts-web/msgboard/toolbar.php
diff -u php-hosts-web/msgboard/toolbar.php:1.1 php-hosts-web/msgboard/toolbar.php:1.2
--- php-hosts-web/msgboard/toolbar.php:1.1 Sun Apr 21 16:58:04 2002
+++ php-hosts-web/msgboard/toolbar.php Sun Apr 21 20:52:17 2002
@@ -1,7 +1,4 @@
<?php
-if (!$USE_SUBGROUPS):
- $subgroup=0;
-endif;
echo "<a href=\"post.php?subgroup=$subgroup\">$BUTTON_POSTNEW</a>
| \n";
echo "<a href=\"list.php?subgroup=$subgroup\">$BUTTON_LISTHEAD</a>
| \n";
echo "<a href=\"index.php\">$BUTTON_INDEX</a>\n";
Index: php-hosts-web/msgboard/etc/delete.php
diff -u php-hosts-web/msgboard/etc/delete.php:1.2 php-hosts-web/msgboard/etc/delete.php:1.3
--- php-hosts-web/msgboard/etc/delete.php:1.2 Sun Apr 21 20:48:39 2002
+++ php-hosts-web/msgboard/etc/delete.php Sun Apr 21 20:52:17 2002
@@ -26,14 +26,9 @@
exit;
endif;
-if ($USE_SUBGROUPS):
- $groupname=getSubgroupName($subgroup);
-else:
- $groupname="Message Board";
- $subgroup=0;
-endif;
+$groupname=getSubgroupName($subgroup);
?>
-<FORM METHOD="POST" ACTION="delete.php">
+<form method="post" action="delete.php">
<TABLE BORDER=0 CELLPADDING=5 CELLSPACING=0 BGCOLOR="<? echo
$MSG_FRAME_COLOR2;?>" WIDTH=100%>