[PHPLIB-DEV] cvs commit From: ssilk (phplib-dev <email protected>)
Date: 02/01/00

From: ssilk
Date: Wed Feb 2 00:56:26 2000
Modified files:
      php-lib/php/prepend.php3

Log message:
I suggest these changes to prepend.php3 - shortens up the file
and makes it more clear (I think)

Index: php-lib/php/prepend.php3
diff -u php-lib/php/prepend.php3:1.11 php-lib/php/prepend.php3:1.12
--- php-lib/php/prepend.php3:1.11 Thu Oct 28 22:12:32 1999
+++ php-lib/php/prepend.php3 Wed Feb 2 00:55:54 2000
@@ -5,7 +5,7 @@
  * Copyright (c) 1998,1999 SH Online Dienst GmbH
  * Boris Erdmann, Kristian Koehntopp
  *
- * $Id: prepend.php3,v 1.11 1999/10/28 20:12:32 kk Exp $
+ * $Id: prepend.php3,v 1.12 2000/02/01 23:55:54 ssilk Exp $
  *
  */
 
@@ -16,20 +16,29 @@
   $_PHPLIB["libdir"] = "";
 }
 
-require($_PHPLIB["libdir"] . "db_mysql.inc"); /* Change this to match your database. */
-require($_PHPLIB["libdir"] . "ct_sql.inc"); /* Change this to match your data storage container */
-require($_PHPLIB["libdir"] . "session.inc"); /* Required for everything below. */
-require($_PHPLIB["libdir"] . "auth.inc"); /* Disable this, if you are not using authentication. */
-require($_PHPLIB["libdir"] . "perm.inc"); /* Disable this, if you are not using permission checks. */
-require($_PHPLIB["libdir"] . "user.inc"); /* Disable this, if you are not using per-user variables. */
-
-/* Additional require statements go below this line */
-## require($_PHPLIB["libdir"] . "menu.inc"); /* Enable this, if you want to use class Menu. */
-## require($_PHPLIB["libdir"] . "menu_button.inc"); /* Enable menu.inc and this, if you want class Menu_Button. */
-/* Additional require statements go before this line */
+require($_PHPLIB["libdir"] . "db_mysql.inc"); // Change this to match your database
+require($_PHPLIB["libdir"] . "ct_sql.inc"); // Change this to match your data storage container
+require($_PHPLIB["libdir"] . "session.inc"); // Required for everything below
 
-require($_PHPLIB["libdir"] . "local.inc"); /* Required, contains your local configuration. */
+// Disable the following includes, if you are not using them
+require($_PHPLIB["libdir"] . "auth.inc"); // authentication
+require($_PHPLIB["libdir"] . "auth_sql.inc"); // SQL-Db for storing authentication
 
-require($_PHPLIB["libdir"] . "page.inc"); /* Required, contains the page management functions. */
+require($_PHPLIB["libdir"] . "perm.inc"); // permission-checks
+require($_PHPLIB["libdir"] . "user.inc"); // per-user variables
+
+// vvv Additional require statements go below this line
+// uncomment this if you want to use
+# require($_PHPLIB["libdir"] . "menu.inc"); // class Menu
+# require($_PHPLIB["libdir"] . "menu_button.inc"); // class Menu_Button
+# require($_PHPLIB["libdir"] . "query_sql.inc"); // query creating and checking
+
+// ^^^ Additional require statements go before this line
+
+// Required, contains your local configuration
+require($_PHPLIB["libdir"] . "local.inc");
+
+// Required, contains the page management functions
+require($_PHPLIB["libdir"] . "page.inc");
 
 ?>

-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.