Changeset 458

Show
Ignore:
Timestamp:
09/30/09 07:59:48 (13 years ago)
Author:
kovell
Message:

Lookup function added to pilot class. Syndication now works for pilots. Configuration defaults include db update level.

Location:
dev/common/includes
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/common/includes/class.config.php

    r453 r458  
    6565                        config::set('cache_dir', 'cache/cache'); 
    6666                        config::set('km_cache_dir', 'cache/mails'); 
     67                        config::set('DBUpdate', LATEST_DB_UPDATE); 
    6768        } 
    6869    } 
  • dev/common/includes/class.pilot.php

    r456 r458  
    260260                       where plt_id = ".$this->id_); 
    261261    } 
     262    //! Lookup a pilot name and set this object to use the details found. 
     263 
     264    /*! 
     265     * \param $name The pilot name to look up. 
     266     */ 
     267    function lookup($name) 
     268    { 
     269        $qry = new DBQuery(); 
     270        $qry->execute("select * from kb3_pilots 
     271                       where plt_name = '".slashfix($name)."'"); 
     272        $row = $qry->getRow(); 
     273        if ($row['plt_id']) $this->id_ = $row['plt_id']; 
     274                $this->name_ = $row['plt_name']; 
     275                $this->externalid_ = intval($row['plt_externalid']); 
     276                $this->alliance_ = $row['plt_crp_id']; 
     277    } 
    262278} 
  • dev/common/includes/globals.php

    r457 r458  
    77else 
    88{ 
    9         $svn_rev = '457'; 
     9        $svn_rev = '458'; 
    1010} 
    1111define('SVN_REV', $svn_rev); 
     
    1515// current version: major.minor.sub 
    1616// unpair numbers for minor = development version 
    17 define('KB_VERSION', '2.0.4'); 
     17define('KB_VERSION', '2.0.5'); 
    1818define('KB_RELEASE', '(Apocrypha)'); 
    19  
    20 // set the running-server for id-syncs here 
    21 define('KB_SYNCURL', 'http://sync.eve-dev.net/?a=sync_server'); 
    2219 
    2320// add new corporations here once you've added the logo to img/corps/