当前位置: 首页>>代码示例>>PHP>>正文


PHP delete_message函数代码示例

本文整理汇总了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();
                            }
                        }
                    }
                }
            }
        }
    }
}
开发者ID:EZDM,项目名称:omeyocan,代码行数:38,代码来源:boards.php

示例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;
开发者ID:pinedax7,项目名称:wordpress,代码行数:31,代码来源:view_message.php

示例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()
{
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:31,代码来源:domains.backup.php

示例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'])) {
开发者ID:jaypatrickm,项目名称:CODINGDOJO-PHP-THEWALL,代码行数:31,代码来源:validation.php

示例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);
开发者ID:Yamihoshi,项目名称:Projet-Web,代码行数:31,代码来源:ajax.php

示例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
开发者ID:ASDAFF,项目名称:myprofile,代码行数:31,代码来源:iframe.php

示例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
开发者ID:jamaBHacker,项目名称:webemail,代码行数:31,代码来源:index.php

示例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&ouml;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&uuml;r die Allianz markieren!";
    }
    if (is_array($_POST["banner"])) {
        $p_banner = array_map("intval", array_unique($_POST["banner"]));
    } else {
        $error[] = "Du musst Banner f&uuml;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 [ ])";
开发者ID:robkub,项目名称:tc-tools,代码行数:31,代码来源:edit.php

示例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="
	
开发者ID:rsd,项目名称:artica-1.5,代码行数:30,代码来源:domains.quarantine.php

示例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);
}
开发者ID:GinaRavuth,项目名称:capstone-proj,代码行数:11,代码来源:message_functions.php

示例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));
     }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:67,代码来源:ocworld.php

示例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':
开发者ID:andersonbporto,项目名称:programacao_internet_2015_1,代码行数:31,代码来源:index.php

示例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';
开发者ID:amarlearning,项目名称:village-connect,代码行数:31,代码来源:resolve-requests.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");
}
?>
开发者ID:supriyadas,项目名称:machprinciplenew,代码行数:31,代码来源:messages.php


注:本文中的delete_message函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。