cvs: docweb /include lib_auth.inc.php
| From: | Vincent Gevers | Date: | Sun, 31 Jul 2005 21:48:08 +0000 |
| Subject: | cvs: docweb /include lib_auth.inc.php | ||
| Groups: | php.doc.web | ||
| Request: | Send a blank email to doc-web+get-753@lists.php.net to get a copy of this message | ||
vincent Sun Jul 31 17:48:08 2005 EDT
Modified files:
/docweb/include lib_auth.inc.php
Log:
The doc.php.net has still PHP4 and no sqlite_exec support
http://cvs.php.net/diff.php/docweb/include/lib_auth.inc.php?r1=1.10&r2=1.11&ty=u
Index: docweb/include/lib_auth.inc.php
diff -u docweb/include/lib_auth.inc.php:1.10 docweb/include/lib_auth.inc.php:1.11
--- docweb/include/lib_auth.inc.php:1.10 Sun Jul 31 17:34:45 2005
+++ docweb/include/lib_auth.inc.php Sun Jul 31 17:48:08 2005
@@ -17,7 +17,7 @@
* | Nuno Lopes <nlopess@php.net> |
* +----------------------------------------------------------------------+
*
- * $Id: lib_auth.inc.php,v 1.10 2005/07/31 21:34:45 vincent Exp $
+ * $Id: lib_auth.inc.php,v 1.11 2005/07/31 21:48:08 vincent Exp $
*/
require_once 'cvs-auth.inc';
@@ -141,7 +141,7 @@
// if we found a name, cache it in the DB
if
(preg_match('@<th[^>]+>Name:</th>\s+<td><input[^>]+value="([^"]+)"@',
$txt, $match)) {
- sqlite_exec($GLOBALS['idx'], "INSERT INTO users (username, name) VALUES
('$nick', '$match[1]')");
+ sqlite_query($GLOBALS['idx'], "INSERT INTO users (username, name) VALUES
('$nick', '$match[1]')"); //the server has no sqlite_exec support yet
(still php4)
return $match[1];
}