[geeklog-cvs] geeklog: Make sure we can actually call USER_createPassword

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun May 29 13:19:55 EDT 2011


changeset 8297:ab2237c4e58d
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ab2237c4e58d
user: Dirk Haun <dirk at haun-online.de>
date: Sun May 29 19:14:51 2011 +0200
description:
Make sure we can actually call USER_createPassword

diffstat:

 sql/updates/mssql_1.7.2_to_1.8.0.php |  5 ++++-
 sql/updates/mysql_1.7.2_to_1.8.0.php |  7 +++++--
 sql/updates/pgsql_1.7.2_to_1.8.0.php |  5 ++++-
 3 files changed, 13 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r 56c5d725b1ce -r ab2237c4e58d sql/updates/mssql_1.7.2_to_1.8.0.php
--- a/sql/updates/mssql_1.7.2_to_1.8.0.php	Sun May 29 18:52:39 2011 +0200
+++ b/sql/updates/mssql_1.7.2_to_1.8.0.php	Sun May 29 19:14:51 2011 +0200
@@ -67,7 +67,10 @@
  */
 function update_UsersFor180()
 {
-    global $_TABLES;
+    global $_CONF, $_TABLES;
+
+    require_once $_CONF['path_system'] . 'lib-security.php';
+    require_once $_CONF['path_system'] . 'lib-user.php';
     
     $passwords = array();
     
diff -r 56c5d725b1ce -r ab2237c4e58d sql/updates/mysql_1.7.2_to_1.8.0.php
--- a/sql/updates/mysql_1.7.2_to_1.8.0.php	Sun May 29 18:52:39 2011 +0200
+++ b/sql/updates/mysql_1.7.2_to_1.8.0.php	Sun May 29 19:14:51 2011 +0200
@@ -67,8 +67,11 @@
  */
 function update_UsersFor180()
 {
-    global $_TABLES;
-    
+    global $_CONF, $_TABLES;
+
+    require_once $_CONF['path_system'] . 'lib-security.php';
+    require_once $_CONF['path_system'] . 'lib-user.php';
+
     $passwords = array();
     
     $sql = "SELECT uid FROM {$_TABLES['users']} WHERE (remoteservice IS NOT NULL OR remoteservice != '') AND passwd = ''";
diff -r 56c5d725b1ce -r ab2237c4e58d sql/updates/pgsql_1.7.2_to_1.8.0.php
--- a/sql/updates/pgsql_1.7.2_to_1.8.0.php	Sun May 29 18:52:39 2011 +0200
+++ b/sql/updates/pgsql_1.7.2_to_1.8.0.php	Sun May 29 19:14:51 2011 +0200
@@ -68,7 +68,10 @@
  */
 function update_UsersFor180()
 {
-    global $_TABLES;
+    global $_CONF, $_TABLES;
+
+    require_once $_CONF['path_system'] . 'lib-security.php';
+    require_once $_CONF['path_system'] . 'lib-user.php';
     
     $passwords = array();
     



More information about the geeklog-cvs mailing list