예제 #1
0
     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');
                 $multimess = $LANG['AdminTopMesssAcc'];
             } elseif (isset($multiunaccept)) {
                 $admin->unaccept_entry($key, 'com');
예제 #2
0
 $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);
                     $s_emotion = addslashes($s_emotion);
                 }
                 $gb_auth->query("UPDATE " . $GB_TBL['smile'] . " SET s_code='{$s_code}', s_emotion='{$s_emotion}' WHERE id='{$edit_smilie}'");