Esempio n. 1
0
             }
         }
     }
     $admin->show_panel('smilies');
     break;
 case 'update':
     $id = $_POST['id'];
     $admin->update_record($id, $tbl);
     $admin->show_entry($tbl, $rid);
     break;
 case 'template':
     $tpl_name = isset($_GET['tpl_name']) ? $_GET['tpl_name'] : '';
     $postVars = array('gb_template', 'tpl_name', 'save');
     create_variable($postVars);
     $save = isset($save) ? $save : '';
     $template_list = $admin->scan_templates_dir();
     $admin->edit_template($tpl_name, $save);
     break;
 case 'bandel':
     $admin->ban_ip($ip);
     $admin->del_entry($id, $tbl);
     $admin->show_entry($tbl, $rid, $LANG['AdminTopIPBanned']);
     break;
 case 'banunaccept':
     $admin->ban_ip($ip);
     $admin->unaccept_entry($id, $tbl);
     $admin->show_entry($tbl, $rid, $LANG['AdminTopIPBanned'] . ' ' . $LANG['AdminTopMessUnacc']);
     break;
 case 'banip':
     $admin->ban_ip($ip);
     $admin->show_entry($tbl, $rid, $LANG['AdminTopIPBanned']);