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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 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";