cvs: phpweb /manual add-note.php

From: Date: Tue, 28 Aug 2001 02:57:05 +0000
Subject: cvs: phpweb /manual add-note.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-6150@lists.php.net to get a copy of this message
jimw Mon Aug 27 22:57:05 2001 EDT Modified files: /phpweb/manual add-note.php Log: don't include .php in sect Index: phpweb/manual/add-note.php diff -u phpweb/manual/add-note.php:1.21 phpweb/manual/add-note.php:1.22 --- phpweb/manual/add-note.php:1.21 Wed Apr 25 17:01:27 2001 +++ phpweb/manual/add-note.php Mon Aug 27 22:57:05 2001 @@ -53,6 +53,7 @@ if (isset($note) && isset($action) && strtolower($action) != "preview"): $now = date("Y-m-d H:i:s"); + $sect = ereg_replace("\.php$","",$sect); $query = "INSERT INTO note (user, note, sect, ts, lang) VALUES "; # no need to call htmlspecialchars() -- we handle it on output $query .= "('$user','$note','$sect','$now','$lang')";

« previous php.mirrors (#6150) next »