Changeset 213 for dev/mods/forum_post

Show
Ignore:
Timestamp:
05/08/07 16:40:42 (13 years ago)
Author:
ralle030583
Message:

All files (i hope i havent forgott something) was modified to use the the config in this way:
- config::get($key)
- config::del($key)
- config::set($key,value)

Exception Templates/Smarty?:
The templates still uses $config->get($key) and $config->set($key,$value) cause
it seems that smarty dont like the :: notification

Location:
dev/mods/forum_post
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/forum_post/cc_detail.php

    r212 r213  
    229229 
    230230$killboard = $page->killboard_; 
    231 if (config::getKillPoints()) 
     231if (config::get('kill_points')) 
    232232{ 
    233233    $tklist = new TopContractScoreList(); 
  • dev/mods/forum_post/class.killsummarytable.php

    r212 r213  
    108108 
    109109        $sql = 'SELECT count(*) AS knb, scl_id, scl_class,'; 
    110         if (config::getConfig('ship_values')) 
     110        if (config::get('ship_values')) 
    111111        { 
    112112            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS kisk FROM kb3_kills kll 
     
    142142 
    143143        $sql = 'SELECT count(*) AS lnb, scl_id, scl_class,'; 
    144         if (config::getConfig('ship_values')) 
     144        if (config::get('ship_values')) 
    145145        { 
    146146            $sql .= ' sum(ifnull(ksv.shp_value,scl.scl_value)) AS lisk FROM kb3_kills kll 
     
    401401 
    402402                // Build our Post 
    403                 $set_colours = unserialize(config::getConfig('forum_post_colours'));    //load colour settings 
     403                $set_colours = unserialize(config::get('forum_post_colours'));  //load colour settings 
    404404                if(!is_array($set_colours)) { $set_colours = array(); }                                 // if the settings have been reset create an empty array so as not to brake the code later on 
    405                 $set_styles = unserialize(config::getConfig('forum_post_styles'));              //load style settings 
     405                $set_styles = unserialize(config::get('forum_post_styles'));            //load style settings 
    406406                if(!is_array($set_styles)) { $set_styles = array(); }                                   // if the settings have been reset create an empty array so as not to brake the code later on 
    407                 $set_isk = config::getConfig('forum_post_isk',$_POST['isk']);                   // load isk setting 
     407                $set_isk = config::get('forum_post_isk',$_POST['isk']);                 // load isk setting 
    408408                 
    409409                //print_r($set_styles); 
     
    441441                $style_close = ""; 
    442442                }                
    443                 $order = config::getConfig('forum_post_order'); 
     443                $order = config::get('forum_post_order'); 
    444444                 
    445445                if($order == "first"){ 
  • dev/mods/forum_post/settings.php

    r212 r213  
    2424if(isset($_POST['Reset'])) 
    2525{ 
    26 config::setConfig('forum_post_colours',""); 
    27 config::setConfig('forum_post_styles',""); 
     26config::set('forum_post_colours',""); 
     27config::set('forum_post_styles',""); 
    2828$confirm = "<strong>Settings Reset</strong><br/>"; 
    2929} 
     
    5656         
    5757        } 
    58 config::setConfig('forum_post_colours',serialize($forum_post_colours) ); 
    59 config::setConfig('forum_post_styles',serialize($forum_post_styles)); 
    60 config::setConfig('forum_post_isk',$_POST['isk']); 
    61 config::setConfig('forum_post_order',$_POST['order']); 
     58config::set('forum_post_colours',serialize($forum_post_colours) ); 
     59config::set('forum_post_styles',serialize($forum_post_styles)); 
     60config::set('forum_post_isk',$_POST['isk']); 
     61config::set('forum_post_order',$_POST['order']); 
    6262 
    6363$confirm = "<strong>Settings Saved</strong><br/>"; 
     
    6868$html .= $confirm; 
    6969 
    70 $set_colours = unserialize(config::getConfig('forum_post_colours'));    //load colour settings 
     70$set_colours = unserialize(config::get('forum_post_colours'));  //load colour settings 
    7171if(!is_array($set_colours)) { $set_colours = array(); }                                 // if the settings have been reset create an empty array so as not to brake the code later on 
    72 $set_styles = unserialize(config::getConfig('forum_post_styles'));              //load style settings 
     72$set_styles = unserialize(config::get('forum_post_styles'));            //load style settings 
    7373if(!is_array($set_styles)) { $set_styles = array(); }                                   // if the settings have been reset create an empty array so as not to brake the code later on 
    74 $set_isk = config::getConfig('forum_post_isk',$_POST['isk']);                   // load isk setting 
     74$set_isk = config::get('forum_post_isk',$_POST['isk']);                 // load isk setting 
    7575 
    7676//print_r($set_styles); 
     
    142142         
    143143        Place ship class at start or end of each line?<br/>'; 
    144         if(config::getConfig('forum_post_order') != "last"){ 
     144        if(config::get('forum_post_order') != "last"){ 
    145145         
    146146        $html .= '<input name="order" type="radio" value="first" checked="checked"/>Start<br/>