Ignore:
Timestamp:
May 3, 2014 11:09:03 PM (10 years ago)
Author:
anonymous
Message:

Convert tabs to spaces, and lineendings to LF in all files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Auth_SQL.inc.php

    r478 r479  
    129129    public function __construct($namespace='')
    130130    {
    131         $app =& App::getInstance();
     131        $app =& App::getInstance();
    132132
    133133        $this->_ns = $namespace;
     
    155155    public function initDB($recreate_db=false)
    156156    {
    157         $app =& App::getInstance();
    158         $db =& DB::getInstance();
     157        $app =& App::getInstance();
     158        $db =& DB::getInstance();
    159159
    160160
     
    276276    public function getParam($param)
    277277    {
    278         $app =& App::getInstance();
     278        $app =& App::getInstance();
    279279
    280280        if (array_key_exists($param, $this->_params)) {
     
    293293    public function clear()
    294294    {
    295         $db =& DB::getInstance();
     295        $db =& DB::getInstance();
    296296
    297297        $this->initDB();
     
    363363    public function authenticate($username, $password)
    364364    {
    365         $app =& App::getInstance();
    366         $db =& DB::getInstance();
     365        $app =& App::getInstance();
     366        $db =& DB::getInstance();
    367367
    368368        $this->initDB();
     
    414414    public function login($username, $password)
    415415    {
    416         $app =& App::getInstance();
    417         $db =& DB::getInstance();
     416        $app =& App::getInstance();
     417        $db =& DB::getInstance();
    418418
    419419        $this->initDB();
     
    541541    public function isLoggedIn($user_id=null)
    542542    {
    543         $app =& App::getInstance();
    544         $db =& DB::getInstance();
     543        $app =& App::getInstance();
     544        $db =& DB::getInstance();
    545545
    546546        $this->initDB();
     
    673673    public function requireLogin($message='', $type=MSG_NOTICE, $file=null, $line=null)
    674674    {
    675         $app =& App::getInstance();
     675        $app =& App::getInstance();
    676676
    677677        if (!$this->isLoggedIn()) {
     
    695695    public function blockAccount($user_id=null, $reason='')
    696696    {
    697         $app =& App::getInstance();
    698         $db =& DB::getInstance();
     697        $app =& App::getInstance();
     698        $db =& DB::getInstance();
    699699
    700700        $this->initDB();
     
    725725    public function isBlocked($user_id=null)
    726726    {
    727         $db =& DB::getInstance();
     727        $db =& DB::getInstance();
    728728
    729729        $this->initDB();
     
    747747    public function unblockAccount($user_id=null)
    748748    {
    749         $db =& DB::getInstance();
     749        $db =& DB::getInstance();
    750750
    751751        $this->initDB();
     
    771771    public function usernameExists($username)
    772772    {
    773         $db =& DB::getInstance();
     773        $db =& DB::getInstance();
    774774
    775775        $this->initDB();
     
    791791    public function getUsername($user_id)
    792792    {
    793         $db =& DB::getInstance();
     793        $db =& DB::getInstance();
    794794
    795795        $this->initDB();
     
    903903    public function setPassword($user_id=null, $password)
    904904    {
    905         $app =& App::getInstance();
    906         $db =& DB::getInstance();
     905        $app =& App::getInstance();
     906        $db =& DB::getInstance();
    907907
    908908        $this->initDB();
     
    953953    public function resetPassword($user_id=null, $reason='')
    954954    {
    955         $app =& App::getInstance();
    956         $db =& DB::getInstance();
     955        $app =& App::getInstance();
     956        $db =& DB::getInstance();
    957957
    958958        $this->initDB();
     
    10401040    public function requireAccessClearance($security_zone, $message='')
    10411041    {
    1042         $app =& App::getInstance();
     1042        $app =& App::getInstance();
    10431043
    10441044        $zone_members = preg_split('/,\s*/', $security_zone);
Note: See TracChangeset for help on using the changeset viewer.