Changeset 836 in ExiteCMS for modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php
- Timestamp:
- 09/23/07 23:49:33 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php
r833 r836 21 21 */ 22 22 23 /* This class is written for phpBB2 and provides full integration of the phpbbusers database23 /* This class is written for ExiteCMS and provides full integration of the users database 24 24 * Instead of using or duplicating memberships manually in Gallery. 25 25 * 26 * Gallery <-> phpBB2 integration ver. (www.snailsource.com)27 * Written by Martin Smallridge <info@snailsource.com>26 * Gallery <-> ExiteCMS integratio 27 * Written by Harro 'WanWizard' Verton <wanwizard@gmail.com> 28 28 * 29 * This file was modified for official integration into Gallery 1.4.3 by30 * Jens Tkotz31 29 */ 32 30 33 class phpbb_UserDB extends Abstract_UserDB {31 class ExiteCMS_UserDB extends Abstract_UserDB { 34 32 var $db; 35 33 36 function phpbb_UserDB() {34 function ExiteCMS_UserDB() { 37 35 global $gallery; 38 $this->db = $gallery->database{" phpbb"};36 $this->db = $gallery->database{"ExiteCMS"}; 39 37 $this->nobody = new NobodyUser(); 40 38 $this->everybody = new EverybodyUser(); … … 43 41 44 42 function getUidList() { 45 global $ table_prefix;43 global $db_prefix; 46 44 $uidList = array(); 47 45 $db = $this->db; 48 46 49 $result = $db->query("select user_id from ".$table_prefix."users");47 $result = dbquery("select user_id from ".$db_prefix."users"); 50 48 51 while ($row = $db->fetch_row($result)) {52 array_push($uidList, $row[ 0]);49 while ($row = dbarray($result)) { 50 array_push($uidList, $row['user_id']); 53 51 } 54 52 … … 70 68 } 71 69 72 $user = new phpbb_User();70 $user = new ExiteCMS_User(); 73 71 $user->loadByUsername($username); 74 72 return $user; … … 87 85 } 88 86 89 $user = new phpbb_User();87 $user = new ExiteCMS_User(); 90 88 $user->loadByUid($uid); 91 89 return $user;
Note: See TracChangeset
for help on using the changeset viewer.
