Ignore:
Timestamp:
09/23/07 23:49:33 (5 years ago)
Author:
hverton
Message:

changed copyright notice
added Smarty buttonlink function, to replace image buttons by real buttons using a locale for the button text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • modules/common/gallery/php-files/modules/gallery/classes/ExiteCMS/UserDB.php

    r833 r836  
    2121 */ 
    2222 
    23 /* This class is written for phpBB2 and provides full integration of the phpbb users database 
     23/* This class is written for ExiteCMS and provides full integration of the users database 
    2424 * Instead of using or duplicating memberships manually in Gallery. 
    2525 * 
    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> 
    2828 * 
    29  * This file was modified for official integration into Gallery 1.4.3 by 
    30  * Jens Tkotz 
    3129*/ 
    3230 
    33 class phpbb_UserDB extends Abstract_UserDB { 
     31class ExiteCMS_UserDB extends Abstract_UserDB { 
    3432    var $db; 
    3533 
    36     function phpbb_UserDB() { 
     34    function ExiteCMS_UserDB() { 
    3735        global $gallery; 
    38         $this->db = $gallery->database{"phpbb"}; 
     36        $this->db = $gallery->database{"ExiteCMS"}; 
    3937        $this->nobody = new NobodyUser(); 
    4038        $this->everybody = new EverybodyUser(); 
     
    4341 
    4442    function getUidList() { 
    45         global $table_prefix; 
     43        global $db_prefix; 
    4644        $uidList = array(); 
    4745        $db = $this->db; 
    4846 
    49         $result = $db->query("select user_id from ".$table_prefix."users"); 
     47        $result = dbquery("select user_id from ".$db_prefix."users"); 
    5048 
    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']); 
    5351        } 
    5452 
     
    7068        }  
    7169 
    72         $user = new phpbb_User(); 
     70        $user = new ExiteCMS_User(); 
    7371        $user->loadByUsername($username); 
    7472        return $user; 
     
    8785        }  
    8886 
    89         $user = new phpbb_User(); 
     87        $user = new ExiteCMS_User(); 
    9088        $user->loadByUid($uid); 
    9189        return $user; 
Note: See TracChangeset for help on using the changeset viewer.