Ignore:
Timestamp:
03/04/16 22:34:26 (4 years ago)
Author:
ddtddt
Message:

[extensions] - BanIP - update disign / language

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/BanIP/admin.php

    r31375 r31394  
    4141 
    4242    $tabsheet = new tabsheet(); 
    43     $tabsheet->add('banip', l10n('IP ban'), BANIP_ADMIN . '-banip'); 
     43    $tabsheet->add('banip', l10n('Ban IP'), BANIP_ADMIN . '-banip'); 
    4444    $tabsheet->select($page['tab']); 
    4545    $tabsheet->assign(); 
     
    4747switch ($page['tab']) { 
    4848    case 'banip': 
    49           $template->assign( 
     49    $admin_base_url = BANIP_ADMIN . '-banip';    
     50        $template->assign( 
    5051       'ipbangest', array( 
    51        'A' => 'a' 
     52          'U_DELETEALL' => $admin_base_url . '&deleteall', 
    5253    )); 
    5354        $ipban = pwg_query("SELECT * FROM " . BANIP_TABLE . ";"); 
     
    5556        $template->func_combine_css(array('id'=>'dst','path'=>BANIP_PATH.'banip.css')); 
    5657         
    57     $admin_base_url = BANIP_ADMIN . '-banip'; 
     58    
    5859        if (pwg_db_num_rows($ipban)) { 
    5960            while ($ipban2 = pwg_db_fetch_assoc($ipban)) { 
     
    9293 
    9394 
    94 if (isset($_POST['submitdeleteall'])) { 
     95  if (isset($_GET['deleteall'])) { 
    9596        $query = 'DELETE FROM ' . BANIP_TABLE . ';'; 
    9697    pwg_query($query); 
    9798        redirect($admin_base_url); 
    98 } 
     99  } 
     100 
    99101 
    100102//add ban 
Note: See TracChangeset for help on using the changeset viewer.