Changeset 213 for dev/mods/known_members

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/known_members
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • dev/mods/known_members/corp_detail.php

    r212 r213  
    406406                 
    407407   case "known_members": 
    408                 if($config->getConfig('known_members_own')) 
     408                if(config::get('known_members_own')) 
    409409                        { 
    410410                                $alliance->getID(); 
     
    432432                        $qry->execute($query); 
    433433                        $cnt = $qry->recordCount(); 
    434                         $clmn = $config->getConfig('known_members_clmn'); 
     434                        $clmn = config::get('known_members_clmn'); 
    435435                         
    436436                $html .= "<div class=block-header2>Known Pilots (".$cnt.")</div>"; 
     
    535535$menubox->addOption("link","Top killers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_kills"); 
    536536 
    537 if (config::getKillPoints()) 
     537if (config::get('kill_points')) 
    538538    $menubox->addOption("link","Top scorers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_scores"); 
    539539$menubox->addOption("link","Top solokillers", "?a=corp_detail&crp_id=" . $corp->getID() . "&view=pilot_solo"); 
  • dev/mods/known_members/settings.php

    r212 r213  
    44if ($_POST['submit']) 
    55{ 
    6 if($_POST['known_members_own']){ 
    7         $config->setConfig('known_members_own', '1'); 
    8         } 
    9         else 
    10         { 
    11         $config->setConfig('known_members_own', '0'); 
    12         } 
    13  
    14 $clmn = ""; 
    15 if($_POST['img']) {$clmn .=",img";} 
    16 if($_POST['kll_pnts']) {$clmn .=",kll_pnts";}    
    17 if($_POST['dmg_dn']) {$clmn .=",dmg_dn";}        
    18 if($_POST['dmg_rcd']) {$clmn .=",dmg_rcd";}      
    19 if($_POST['eff']) {$clmn .=",eff";} 
    20 if($_POST['lst_sn']) {$clmn .=",lst_sn";} 
    21 $config->setConfig('known_members_clmn', $clmn);         
    22          
    23         $html .= "Setting Saved"; 
     6        if($_POST['known_members_own']){ 
     7                config::set('known_members_own', '1'); 
     8                } 
     9                else 
     10                { 
     11                config::set('known_members_own', '0'); 
     12                } 
     13                $clmn = ""; 
     14                if($_POST['img']) {$clmn .=",img";} 
     15                if($_POST['kll_pnts']) {$clmn .=",kll_pnts";}    
     16                if($_POST['dmg_dn']) {$clmn .=",dmg_dn";}        
     17                if($_POST['dmg_rcd']) {$clmn .=",dmg_rcd";}      
     18                if($_POST['eff']) {$clmn .=",eff";} 
     19                if($_POST['lst_sn']) {$clmn .=",lst_sn";} 
     20                config::set('known_members_clmn', $clmn);        
     21                $html .= "Setting Saved"; 
    2422} 
    2523 
     
    3028$html .= "<table class=kb-subtable>"; 
    3129$html .= "<tr><td><b>Remove Known Members page for board owner:</b></td><td><input type=checkbox name=known_members_own id=known_members_own"; 
    32 if ($config->getConfig('known_members_own')) 
     30if (config::get('known_members_own')) 
    3331{ 
    3432    $html .= " checked=\"checked\""; 
     
    3937$html .= "<div class=block-header2>Show Columns</div>"; 
    4038$html .= "<table class=kb-subtable>"; 
    41 $clmn = $config->getConfig('known_members_clmn'); 
     39$clmn = config::get('known_members_clmn'); 
    4240 
    4341$html .= "<tr><td><b>Add Char. Portrait:</b></td><td><input type=checkbox name=img id=img";