示例#1
0
 case 'unaccept':
     $admin->unaccept_entry($id, $tbl);
     $admin->show_entry($tbl, $rid, $LANG['AdminTopMessUnacc']);
     break;
 case 'show':
     $postVars = array('record', 'table');
     create_variable($postVars);
     $admin->show_entry($tbl, $rid);
     break;
 case 'del':
     $admin->del_entry($id, $tbl);
     $topmessage = $tbl == 'pubpics' ? $LANG['AdminTopImageDel'] : $LANG['AdminTopMessDel'];
     $admin->show_entry($tbl, $rid, $topmessage);
     break;
 case 'edit':
     $admin->show_form($id, $tbl, $rid);
     break;
 case 'info':
     $admin->show_panel("info");
     break;
 case 'multi':
     $postVars = array('tbl', 'rid', 'multidelete', 'multiaccept', 'multiunaccept', 'entryarray', 'comarray');
     create_variable($postVars);
     $multimess = '';
     if (isset($comarray)) {
         foreach ($comarray as $key => $value) {
             if (isset($multidelete)) {
                 $admin->del_entry($key, 'com');
                 $multimess = $LANG['AdminTopMesssDel'];
             } elseif (isset($multiaccept)) {
                 $admin->accept_entry($key, 'com');
示例#2
0
} else {
    $action = !isset($action) ? "" : $action;
    $admin = new gb_admin($AUTH["session"], $AUTH["uid"]);
    $admin->VARS =& $VARS;
    $admin->db =& $gb_auth;
    $admin->table =& $GB_TBL;
    switch ($action) {
        case "show":
            $admin->show_entry($tbl);
            break;
        case "del":
            $admin->del_entry($id, $tbl);
            $admin->show_entry($tbl);
            break;
        case "edit":
            $admin->show_form($id, $tbl);
            break;
        case "info":
            $admin->show_panel("info");
            break;
        case "smilies":
            if (isset($scan_dir)) {
                $smilie_list = $admin->scan_smilie_dir();
            }
            if (isset($del_smilie)) {
                $gb_auth->query("DELETE FROM " . $GB_TBL['smile'] . " WHERE id='{$del_smilie}'");
            }
            if (isset($edit_smilie)) {
                if (isset($s_code) && isset($s_emotion)) {
                    if (!get_magic_quotes_gpc()) {
                        $s_code = addslashes($s_code);