Changeset 33 for dev/common/admin.php

Show
Ignore:
Timestamp:
10/24/06 15:30:08 (14 years ago)
Author:
exi
Message:

Added Comment Count to killlisttables + Option to en-/disable them

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dev/common/admin.php

    r30 r33  
    4949    { 
    5050        $config->setConfig('comments_pw', '0'); 
     51    } 
     52    if ($_POST['comments_count'] == "on") 
     53    { 
     54        $config->setConfig('comments_count', '1'); 
     55    } 
     56    else 
     57    { 
     58        $config->setConfig('comments_count', '0'); 
    5159    } 
    5260    $config->setPostPassword($_POST['post_password']); 
     
    148156} 
    149157$html .= "></td></tr>"; 
     158$html .= "<tr><td width=120><b>Display Comment Count on Killlists:</b></td><td><input type=checkbox name=comments_count id=comments_count"; 
     159if ($config->getConfig('comments_count')) 
     160{ 
     161    $html .= " checked=\"checked\""; 
     162} 
     163$html .= "></td></tr>"; 
    150164 
    151165// $html .= "<tr><td width=120><b>Display least active:</b></td><td><input type=checkbox name=least_active id=least_active";