[phplib-dev] cvs commit
by kk other posts by this author
Jul 14 2001 8:25PM messages near this date
[phplib-dev] Help you with our programming skills and experience
|
Re: [phplib-dev] cvs commit
From: kk
Date: Sat Jul 14 22:25:26 2001
Modified files:
php-lib-stable/doc/sgml/04-template.sgml
php-lib-stable/php/prepend.php3
Log message:
This is becasue $_PHPLIB['libdir'] is only initalized if it isn't present.
Simply remvove the if(!(is_array($_PHPLIB)) { call and it will be better.
Index: php-lib-stable/doc/sgml/04-template.sgml
diff -u php-lib-stable/doc/sgml/04-template.sgml:1.1 php-lib-stable/doc/sgml/04-template.sgm
l:1.2
--- php-lib-stable/doc/sgml/04-template.sgml:1.1 Mon Apr 17 18:40:04 2000
+++ php-lib-stable/doc/sgml/04-template.sgml Sat Jul 14 22:24:55 2001
@@ -1,4 +1,4 @@
-<!-- $Id: 04-template.sgml,v 1.1 2000/04/17 16:40:04 kk Exp $ -->
+<!-- $Id: 04-template.sgml,v 1.2 2001/07/14 20:24:55 kk Exp $ -->
<sect1> Template
<p>
<em/Note:/ If you think that this is like FastTemplates, read
@@ -310,10 +310,10 @@
}
# build out from box, then build out from page...
- $t->parse("out", array("box", "page"));
+ $t->parse("OUT", array("box", "page"));
# finish out and print it.
- $t->p("out");
+ $t->p("OUT");
?>
<hr>
<?php
Index: php-lib-stable/php/prepend.php3
diff -u php-lib-stable/php/prepend.php3:1.3 php-lib-stable/php/prepend.php3:1.4
--- php-lib-stable/php/prepend.php3:1.3 Wed Jul 12 20:25:44 2000
+++ php-lib-stable/php/prepend.php3 Sat Jul 14 22:24:55 2001
@@ -5,16 +5,12 @@
* Copyright (c) 1998-2000 NetUSE AG
* Boris Erdmann, Kristian Koehntopp
*
- * $Id: prepend.php3,v 1.3 2000/07/12 18:25:44 kk Exp $
+ * $Id: prepend.php3,v 1.4 2001/07/14 20:24:55 kk Exp $
*
*/
-if (!isset($_PHPLIB) or !is_array($_PHPLIB)) {
-# Aren't we nice? We are prepending this everywhere
-# we require or include something so you can fake
-# include_path when hosted at provider that sucks.
- $_PHPLIB["libdir"] = "";
-}
+$_PHPLIB = array();
+$_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 co
ntainer */
--
Abbestellen mit Mail an: phplib-dev-unsubscribe@[...].de
Kommandoliste mit Mail an: phplib-dev-help@lists.netuse.de
Thread:
kk
nathan r. hruby
Chris Johnson
|