Date: 10/26/99
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Massimiliano Masserelli: "Re: [PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: kk
Date: Tue Oct 26 16:53:21 1999
Modified files:
php-lib/doc/sgml/04-template.sgml
php-lib/php/ct_dbm.inc
php-lib/php/template.inc
Log message:
- Removed the Windows linebreaks from ct_dbm.inc.
- Small corrections to Template and Template docs.
Index: php-lib/doc/sgml/04-template.sgml
diff -u php-lib/doc/sgml/04-template.sgml:1.3 php-lib/doc/sgml/04-template.sgml:1.4
--- php-lib/doc/sgml/04-template.sgml:1.3 Tue Oct 26 14:04:11 1999
+++ php-lib/doc/sgml/04-template.sgml Tue Oct 26 16:52:49 1999
@@ -1,4 +1,4 @@
-<!-- $Id: 04-template.sgml,v 1.3 1999/10/26 12:04:11 kk Exp $ -->
+<!-- $Id: 04-template.sgml,v 1.4 1999/10/26 14:52:49 kk Exp $ -->
<sect1>Template
<p>
<em/Note:/ If you think that this is like FastTemplates, read
@@ -85,7 +85,7 @@
this directory as the base directory where templates are being
stored.
-<tag>set_unknowns($unknowns = "keep")</tag>
+<tag>set_unknowns($unknowns = "remove")</tag>
<p>
The function sets the policy for dealing with unresolved
variable names. Must be either "remove", "comment" or "keep". If
Index: php-lib/php/ct_dbm.inc
diff -u php-lib/php/ct_dbm.inc:1.1 php-lib/php/ct_dbm.inc:1.2
--- php-lib/php/ct_dbm.inc:1.1 Wed Feb 3 00:30:01 1999
+++ php-lib/php/ct_dbm.inc Tue Oct 26 16:52:50 1999
@@ -1,74 +1,74 @@
-<?php
-
-##
-## Copyright (c) 1999 Daniel Lashua <daniel.lashua <email protected>>
-##
-## $Id: ct_dbm.inc,v 1.1 1999/02/02 23:30:01 sas Exp $
-##
-## PHPLIB Data Storage Container using DBM Files
-##
-## Code inspired by ct_shm.inc v 1.1
-
-class CT_DBM {
- ##
- ## Define these parameters by overwriting or by
- ## deriving your own class from it (recommened)
- ##
-
- var $dbm_file = ""; ## PREEXISTING DBM File
- ## writable by the web server UID
-
- ## end of configuration
-
- var $dbmid; ## our dbm resource handle
-
- function ac_start() {
- # Open DBM file for write access
- $this->dbmid = dbmopen($this->dbm_file, "w");
- }
-
- function ac_get_lock() {
- # Not needed in this instance
- }
-
- function ac_release_lock() {
- # Not needed in this instance
- }
-
- function ac_newid($str, $name) {
- return $str;
- }
-
- function ac_store($id, $name, $str) {
- dbmreplace($this->dbmid, "$id$name", urlencode($str).";".time());
- return true;
- }
-
- function ac_delete($id, $name) {
- dbmdelete($this->dbmid, "$id$name");
- }
-
- function ac_gc($gc_time, $name) {
- $cmp = time() - $gc_time * 60;
- $i = dbmfirstkey($this->dbmid);
- while ($i) {
- $val = <email protected>($this->dbmid, $i);
- $dat = explode(";", $val);
- if(strcmp($dat[1], $cmp) < 0) {
- dbmdelete($this->dbmid, $i);
- }
- $i = dbmnextkey($this->dbmid,$i);
- }
- }
-
- function ac_halt($s) {
- echo "<b>$s</b>";
- exit;
- }
-
- function ac_get_value($id, $name) {
- $dat = explode(";", dbmfetch($this->dbmid, "$id$name"));
- return urldecode($dat[0]);
- }
-}
-?>
+<?php
+
+##
+## Copyright (c) 1999 Daniel Lashua <daniel.lashua <email protected>>
+##
+## $Id: ct_dbm.inc,v 1.2 1999/10/26 14:52:50 kk Exp $
+##
+## PHPLIB Data Storage Container using DBM Files
+##
+## Code inspired by ct_shm.inc v 1.1
+
+class CT_DBM {
+ ##
+ ## Define these parameters by overwriting or by
+ ## deriving your own class from it (recommened)
+ ##
+
+ var $dbm_file = ""; ## PREEXISTING DBM File
+ ## writable by the web server UID
+
+ ## end of configuration
+
+ var $dbmid; ## our dbm resource handle
+
+ function ac_start() {
+ # Open DBM file for write access
+ $this->dbmid = dbmopen($this->dbm_file, "w");
+ }
+
+ function ac_get_lock() {
+ # Not needed in this instance
+ }
+
+ function ac_release_lock() {
+ # Not needed in this instance
+ }
+
+ function ac_newid($str, $name) {
+ return $str;
+ }
+
+ function ac_store($id, $name, $str) {
+ dbmreplace($this->dbmid, "$id$name", urlencode($str).";".time());
+ return true;
+ }
+
+ function ac_delete($id, $name) {
+ dbmdelete($this->dbmid, "$id$name");
+ }
+
+ function ac_gc($gc_time, $name) {
+ $cmp = time() - $gc_time * 60;
+ $i = dbmfirstkey($this->dbmid);
+ while ($i) {
+ $val = <email protected>($this->dbmid, $i);
+ $dat = explode(";", $val);
+ if(strcmp($dat[1], $cmp) < 0) {
+ dbmdelete($this->dbmid, $i);
+ }
+ $i = dbmnextkey($this->dbmid,$i);
+ }
+ }
+
+ function ac_halt($s) {
+ echo "<b>$s</b>";
+ exit;
+ }
+
+ function ac_get_value($id, $name) {
+ $dat = explode(";", dbmfetch($this->dbmid, "$id$name"));
+ return urldecode($dat[0]);
+ }
+}
+?>
Index: php-lib/php/template.inc
diff -u php-lib/php/template.inc:1.4 php-lib/php/template.inc:1.5
--- php-lib/php/template.inc:1.4 Sun Oct 24 15:29:34 1999
+++ php-lib/php/template.inc Tue Oct 26 16:52:50 1999
@@ -5,7 +5,7 @@
* (C) Copyright 1999 NetUSE GmbH
* Kristian Koehntopp
*
- * $Id: template.inc,v 1.4 1999/10/24 13:29:34 kk Exp $
+ * $Id: template.inc,v 1.5 1999/10/26 14:52:50 kk Exp $
*
*/
@@ -63,7 +63,7 @@
/* public: set_unknowns(enum $unknowns)
* unknowns: "remove", "comment", "keep"
*
- function set_unknowns($unknowns = "keep") {
+ function set_unknowns($unknowns = "remove") {
$this->unknowns = $unknowns;
}
-
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.
- Next message: kk: "[PHPLIB-DEV] cvs commit"
- Previous message: Massimiliano Masserelli: "Re: [PHPLIB-DEV] cvs commit"
- Next in thread: kk: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

