本文整理汇总了PHP中delete_message函数的典型用法代码示例。如果您正苦于以下问题:PHP delete_message函数的具体用法?PHP delete_message怎么用?PHP delete_message使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了delete_message函数的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: board_main
function board_main()
{
global $x7c, $x7s, $db, $prefix, $x7p, $print;
if ($x7c->settings['panic']) {
$print->board_window("", "", "");
return;
}
udpate_unread();
if (isset($_GET['newboard'])) {
create_board();
} else {
if (isset($_GET['board'])) {
show_board($_GET['board']);
} else {
if (isset($_GET['send'])) {
new_communication($_GET['send']);
} else {
if (isset($_GET['delete'])) {
delete_message($_GET['delete']);
} else {
if (isset($_GET['delboard'])) {
delete_board($_GET['delboard']);
} else {
if (isset($_GET['readall'])) {
read_all();
} else {
if (isset($_GET['move'])) {
move_msg();
} else {
board_list();
}
}
}
}
}
}
}
}
示例2: get_post
if ($_REQUEST['from'] == 'sendbox') {
$message = get_post($_REQUEST['id']);
$box = 'sendbox';
if (isset($_REQUEST['delete'])) {
echo $_REQUEST['delete'];
wp_delete_post($_REQUEST['id']);
wp_safe_redirect(admin_url() . "admin.php?page=gmgt_message&tab=sentbox");
exit;
}
}
if ($_REQUEST['from'] == 'inbox') {
$message = gmgt_get_message_by_id($_REQUEST['id']);
$box = 'inbox';
if (isset($_REQUEST['delete'])) {
echo $_REQUEST['delete'];
delete_message('smgt_message', $_REQUEST['id']);
wp_safe_redirect(admin_url() . "admin.php?page=gmgt_message&tab=inbox");
exit;
}
}
?>
<div class="mailbox-content">
<div class="message-header">
<h3><span><?php
_e('Subject', 'gym_mgt');
?>
:</span> <?php
if ($box == 'sendbox') {
echo $message->post_title;
} else {
echo $message->subject;
示例3: SuperAdminQuery
exit;
}
if (isset($_GET["SuperAdminQuery"])) {
SuperAdminQuery();
exit;
}
if (isset($_GET["quarantine-settings"])) {
quarantine_ou_settings();
exit;
}
if (isset($_GET["OuSendQuarantineReports"])) {
quarantine_ou_settings_save();
exit;
}
if (isset($_GET["delete-message-id"])) {
delete_message();
exit;
}
function GetRights()
{
$users = new usersMenus();
if ($users->AsMessagingOrg) {
return true;
}
if ($users->AsQuarantineAdministrator) {
return true;
}
return false;
}
function delete_js()
{
示例4: register_validation
//then decide where we should go, register, login, or exit.
//inside we will pass the entire post through to the function
if (isset($_POST['register']) && $_POST['register'] == "register") {
register_validation($_POST);
} else {
if (isset($_POST['login']) && $_POST['login'] == "login") {
login_validation($_POST);
} else {
if (isset($_POST['post_message']) && $_POST['post_message'] == "post_message") {
message_validation($_POST);
} else {
if (isset($_POST['post_comment']) && $_POST['post_comment'] == "post_comment") {
comment_validation($_POST);
} else {
if (isset($_POST['delete']) && $_POST['delete'] == "delete") {
delete_message($_POST);
} else {
session_destroy();
header('location:index.php');
}
}
}
}
}
//register validaiton
function register_validation($post)
{
//set error flags to 0
$error_flags = 0;
//first_name errors
if (!empty($_POST['first_name'])) {
示例5: searchByName
<?php
require_once "config/connexion.php";
require_once 'fonctions.php';
require_once 'classes/touite.class.php';
if (isset($_GET['search']) && !isset($_GET['moreSearch'])) {
searchByName($_GET['search'], $bd);
} else {
if (isset($_GET['moreSearch'])) {
moreSearchResult($_GET['search'], $bd, $_GET['offset']);
} else {
if (!empty($_SESSION['id']) and !empty($_GET['remove'])) {
delete_message($_GET['id'], $_SESSION['id'], $bd);
} else {
if (!empty($_GET['id']) and !empty($_GET['voirMessage'])) {
voir_message($_GET['id'], $bd);
} else {
if (!empty($_SESSION['id']) && !empty($_POST['discution'])) {
$touite = array("texte" => $_POST['message'], "idAuteur" => $_SESSION['id']);
envoyer_reponse($_POST['id'], new Touite($touite), $bd);
} else {
if (!empty($_POST['message']) && !isset($_POST['sendDiscussion'])) {
$touite = array("texte" => $_POST['message'], "idAuteur" => $_SESSION['id']);
if (!empty($_POST['id_message'])) {
$touite['id_message'] = $_POST['id_message'];
$message = new Touite($touite);
//réponse
} else {
$message = new Touite($touite);
$message->setLadate(date("Y-m-d H:i:s"));
addTouite($message, $bd);
$th = new touitosHandler($bd);
示例6: check_auth
}
} else {
// display a warning for the user
$warning = true;
}
} else {
// generic wall
$feed_hash = 'local';
$owner_webid = 'local';
$owner_hash = 'local';
}
// delete a post
if (isset($_REQUEST['del'])) {
// verify if we're logged in or not
check_auth(IDP, $page_uri);
$notification .= delete_message($_SESSION['webid'], $_REQUEST['del']);
}
// ADD a post
if (isset($_REQUEST['comment'])) {
// verify if we're logged in or not
check_auth(IDP, $page_uri);
if (isset($_REQUEST['user']) && strlen($_REQUEST['user']) > 0) {
$to_hash = $_REQUEST['user'];
} else {
$to_hash = 'local';
}
// only post if we have a message
if (strlen($_REQUEST['comment']) > 1) {
// Limit the message to 10k characters
$msg = trim(substr($_REQUEST['comment'], 0, 10000));
// Get the list of mentioned WebIDs from the message
示例7: display_account_setup
case 'store-settings':
case 'account-setup':
case 'delete-account':
display_account_setup($_SESSION['auth_user']);
break;
case 'send-message':
if (send_message($to, $cc, $subject, $message)) {
echo '<p>Message sent.</p><br /><br /><br /><br /><br /><br />';
} else {
echo '<p>Could not send message.</p><br /><br /><br /><br />
<br /><br />';
}
break;
case 'delete':
if ($_SESSION) {
delete_message($_SESSION['auth_user'], $_SESSION['selected_account'], $messageid);
}
//note deliberately no 'break' - we will continue to the next case
case 'select-account':
case 'view-mailbox':
// if mailbox just chosen, or view mailbox chosen, show mailbox
if (isset($selected_account)) {
display_list($_SESSION['auth_user'], $_SESSION['selected_account']);
} else {
display_list($_SESSION['auth_user']);
}
break;
case 'show-headers':
case 'hide-headers':
case 'view-message':
// if we have just picked a message from the list, or were looking at
示例8: array
<?php
require_once "../lib/header.php";
$action = array();
$error = array();
if (isset($_GET["action"])) {
if ($_GET["action"] == "del-message") {
if (delete_message($_GET["id"])) {
$action[] = "Die Information wurde gelöscht.";
} else {
$error[] = "Die Information konnte nicht gelöscht werden." . mysql_error();
}
}
}
if (isset($_POST["allySubmit"])) {
if (is_array($_POST["runden"])) {
$p_runden = array_map("intval", array_unique($_POST["runden"]));
} else {
$error[] = "Du musst Runden für die Allianz markieren!";
}
if (is_array($_POST["banner"])) {
$p_banner = array_map("intval", array_unique($_POST["banner"]));
} else {
$error[] = "Du musst Banner für die Allianz markieren!";
}
if (count($error) > 0) {
$del = 1;
} elseif ($_POST["action"] == "new") {
$p_tag = trim($_POST["tag"]);
if (strlen($p_tag) <= 2 || !preg_match("#\\[.{1,3}\\]#", $p_tag)) {
$error[] = "Der Allianztag <b>" . $p_tag . "</b> ist falsch. Richtig ist beispielsweise: [tag] (vorne und hinten [ ])";
示例9: GetRights
echo $tpl->_ENGINE_parse_body("alert('$error')");
die();
}
if(isset($_GET["js"])){echo quarantine_script();exit;}
if(isset($_GET["popup"])){echo quarantine_index();exit;}
if(isset($_GET["query"])){echo quarantine_query();exit;}
if(isset($_GET["SuperAdmin"])){SuperAdmin();exit;}
if(isset($_GET["SuperAdminQuery"])){SuperAdminQuery();exit;}
if(isset($_GET["quarantine-settings"])){quarantine_ou_settings();exit;}
if(isset($_GET["OuSendQuarantineReports"])){quarantine_ou_settings_save();exit;}
if(isset($_GET["delete-message-id"])){delete_message();exit;}
function GetRights(){
$users=new usersMenus();
if($users->AsMessagingOrg){return true;}
if($users->AsQuarantineAdministrator){return true;}
return false;
}
function delete_js(){
$tpl=new templates();
$page=CurrentPageName();
$are_you_sure_to_delete=$tpl->javascript_parse_text("{are_you_sure_to_delete}");
$html="
示例10: get_messages
<?php
require_once $_SERVER['DOCUMENT_ROOT'] . '/include/functions.php';
if (isset($_GET)) {
$messages = get_messages();
echo json_encode($messages);
}
if (isset($_POST['delete'])) {
$delete = $_POST['delete'];
delete_message($delete);
}
示例11: run
//.........这里部分代码省略.........
}
if ($command == 'give') {
give($member_id, $dest_member_id, $item);
}
if ($command == 'pickpocket') {
pickpocket($member_id, $dest_member_id);
}
if ($command == 'use') {
useitem($member_id, $item);
}
if ($command == 'take') {
take($member_id, $item, $dest_member_id);
}
if ($command == 'buy') {
buy($member_id, $item, $dest_member_id);
}
if ($command == 'inventory') {
$tpl = output_inventory_screen($dest_member_id);
return $tpl;
}
if ($command == 'findperson') {
findperson($param == '' ? strval($dest_member_id) : $param);
}
if ($command == 'message') {
message($member_id, post_param('post'), post_param_integer('tuser'));
}
if ($command == 'emergency') {
basic_enter_room($member_id, 0, 0, 0);
}
if ($command == 'delete-message-by-person') {
if (!has_specific_permission($member_id, 'administer_ocworld') && $member_id != $dest_member_id) {
ocw_refresh_with_message(do_lang_tempcode('ACCESS_DENIED__I_ERROR', $GLOBALS['FORUM_DRIVER']->get_username(get_member())), 'warn');
}
delete_message($member_id, $dest_member_id, addslashes($param));
}
// Management
if ($command == 'additem') {
require_code('ocworld_action');
$name = post_param('name', '');
if ($name == '') {
$tpl = do_template('W_ITEM_SCREEN', array('_GUID' => '0246f7037a360996bdfb4f1dcf96bcfc', 'PRICE' => integer_format(get_price('mud_item')), 'TEXT' => paragraph(do_lang_tempcode('W_ADD_ITEM_TEXT')), 'TITLE' => get_page_title('W_ADD_ITEM_TITLE'), 'PAGE_TYPE' => 'additem', 'ITEM' => '', 'DESCRIPTION' => '', 'BRIBABLE' => '0', 'HEALTHY' => '0', 'PICTURE_URL' => '', 'MAX_PER_PLAYER' => '10', 'REPLICATEABLE' => '1'));
return $tpl;
}
$urls = get_url('url', 'pic', 'uploads/ocworld', 0, OCP_UPLOAD_IMAGE);
add_item_wrap($member_id, $name, post_param_integer('cost', 0), post_param_integer('not_infinite', 0), post_param_integer('bribable', 0), post_param_integer('healthy', 0), $urls[0], post_param_integer('max_per_player', -1), post_param_integer('replicateable', 0), post_param('description'));
}
if ($command == 'additemcopy') {
require_code('ocworld_action');
$name = post_param('name', '');
if ($name == '') {
$rows = $GLOBALS['SITE_DB']->query('SELECT * FROM ' . $GLOBALS['SITE_DB']->get_table_prefix() . 'w_itemdef WHERE replicateable=1 OR owner=' . strval((int) get_member()) . ' ORDER BY name');
$items = '';
foreach ($rows as $myrow) {
$items .= "<option value=\"" . escape_html($myrow['name']) . "\">" . escape_html($myrow['name']) . "</option>";
}
if ($items == '') {
ocw_refresh_with_message(do_lang_tempcode('W_NO_ITEMS_YET'), 'warn');
}
if ($GLOBALS['XSS_DETECT']) {
ocp_mark_as_escaped($items);
}
$tpl = do_template('W_ITEMCOPY_SCREEN', array('_GUID' => '15799930bca51eafdee3c0a8e197866a', 'PRICE' => integer_format(get_price('mud_item_copy')), 'TEXT' => paragraph(do_lang_tempcode('W_ADD_ITEM_COPY_TEXT')), 'TITLE' => get_page_title('W_ADD_ITEM_COPY_TITLE'), 'PAGE_TYPE' => 'additemcopy', 'NOT_INFINITE' => '1', 'ITEMS' => $items, 'COST' => ''));
return $tpl;
}
add_item_wrap_copy($member_id, $name, post_param_integer('cost'), post_param_integer('not_infinite', 0));
}
示例12: display_account_setup
// deleted an account, show account setup page
case 'store-settings':
case 'account-setup':
case 'delete-account':
display_account_setup($HTTP_SESSION_VARS['auth_user']);
break;
case 'send-message':
if (send_message($to, $cc, $subject, $message)) {
echo '<p>Message sent.</p><br /><br /><br /><br /><br /><br />';
} else {
echo '<p>Could not send message.</p><br /><br /><br /><br />
<br /><br />';
}
break;
case 'delete':
delete_message($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account'], $messageid);
//note deliberately no 'break' - we will continue to the next case
case 'select-account':
case 'view-mailbox':
// if mailbox just chosen, or view mailbox chosen, show mailbox
display_list($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account']);
break;
case 'show-headers':
case 'hide-headers':
case 'view-message':
// if we have just picked a message from the list, or were looking at
// a message and chose to hide or view headers, load a message
$fullheaders = $action == 'show-headers';
display_message($HTTP_SESSION_VARS['auth_user'], $HTTP_SESSION_VARS['selected_account'], $messageid, $fullheaders);
break;
case 'reply-all':
示例13: header
require 'inc/func.inc.php';
if (!loggedin()) {
header('Location: login.php');
}
if (!empty($_POST)) {
if (!empty($_POST['res'])) {
$test = json_decode($_POST['res'], true);
$message_id = (int) $test[0];
$item = $test[1];
$defination = $test[2];
$query = "INSERT INTO `requests` (`item`,`defination`) VALUES ('{$item}','{$defination}')";
mysqli_query($connection, $query);
delete_message($connection, $message_id);
} else {
$message_id = (int) $_POST['rej'];
delete_message($connection, $message_id);
}
}
// requests
?>
<!DOCTYPE html>
<html>
<head>
<?php
include 'layout/meta.inc.php';
?>
</head>
<body class="skin-black">
<?php
include 'layout/header.inc.php';
示例14: delete_message
include "config/config.php";
include "admin/include/function.php";
include "include/common-scripts.php";
include "include/logincheck.php";
if (isset($_POST["delete_from_inbox"])) {
delete_message("inbox", $_POST['message']);
}
if (isset($_POST["delete_from_sent"])) {
delete_message("send_items", $_POST['message']);
}
if (isset($_POST["delete_from_view_inbox"])) {
delete_message("inbox", $_POST['message']);
header("location:messages.php");
}
if (isset($_POST["delete_from_view_sent"])) {
delete_message("send_items", $_POST['message']);
header("location:messages.php?view=sent");
}
if (isset($_POST["delete_forever"])) {
delete_message_forever("send_items", $_POST['message'], $_SESSION["userid"]);
}
if (isset($_POST["reply"])) {
$from = $_SESSION["userid"];
$to = $_POST["sendto"];
$replyof = $_POST["replyof"];
$title = mysql_real_escape_string(stripslashes($_POST["title"]));
$message = mysql_real_escape_string(stripslashes($_POST["message"]));
send_message($from, $to, $title, $message, $replyof);
header("location:messages.php?message={$_GET['message']}&replysucess");
}
?>