Example #1
0
         } else {
             message($do->errmsg);
         }
     } else {
         $message = $do->get_one();
         if (!$message || $message['status'] != 1 || $message['fromuser'] != $_username) {
             message($L['message_msg_deny']);
         }
         $touser = $message['touser'];
         $title = $message['title'];
         $content = $message['content'];
     }
     break;
 case 'clear':
     $status or message();
     $message = $do->clear($status);
     dmsg($L['message_msg_clear'], $forward);
     break;
 case 'delete':
     $itemid or message($L['message_msg_choose']);
     $recycle = isset($recycle) ? 0 : 1;
     $do->itemid = $itemid;
     $do->delete($recycle);
     dmsg($L['op_del_success'], $forward);
     break;
 case 'mark':
     $itemid or message($L['message_msg_choose']);
     $do->itemid = $itemid;
     $do->mark();
     dmsg($L['message_msg_mark'], $forward);
     break;