Show
Ignore:
Timestamp:
02/17/07 15:24:06 (14 years ago)
Author:
exi
Message:

Changed default td width for options to 160px.
Added the appropiate timeframe to the fast contractlisttable.
Events now can also return a reference to a variable containing additional information.
Killlists now return a non formatted isk-value for losses/kills, please report any errors on other pages.
Added a custom user menu, able to be shownon every page.
Added some code for user logins, please ignore it for now.
Added a small battle statistics frame to the battle overview.
To login as admin now just leave user blank and use the admin password.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/class.page.php

    r181 r188  
    4040    } 
    4141 
     42    function error($message) 
     43    { 
     44        global $smarty; 
     45 
     46        $smarty->assign('error', $message); 
     47        $this->setContent($smarty->fetch(get_tpl('error'))); 
     48        $this->generate(); 
     49    } 
     50 
    4251    function generate() 
    4352    { 
    44         global $config, $smarty; 
     53        global $smarty; 
    4554 
    4655        $smarty->assign('kb_title', KB_TITLE.' Killboard - '.$this->title_); 
     
    129138        $smarty->assign('profile', KB_PROFILE); 
    130139        $smarty->assign('content_html', $this->contenthtml_); 
     140        if (config::get('user_showmenu')) 
     141        { 
     142            $this->contexthtml_ = user::menu().$this->contexthtml_; 
     143        } 
    131144        $smarty->assign('context_html', $this->contexthtml_); 
    132145        $smarty->display(get_tpl('index')); 
     
    183196        $this->cachetime_ = $cachetime; 
    184197    } 
    185  
    186     function error($errormsg) 
    187     { 
    188         echo $errormsg; 
    189         exit; 
    190     } 
    191198} 
    192199