Beispiel #1
0
require_once BH_INCLUDE_PATH . 'pm.inc.php';
require_once BH_INCLUDE_PATH . 'post.inc.php';
require_once BH_INCLUDE_PATH . 'session.inc.php';
require_once BH_INCLUDE_PATH . 'user.inc.php';
require_once BH_INCLUDE_PATH . 'word_filter.inc.php';
// End Required includes
// Check we're logged in correctly
if (!session::logged_in()) {
    light_html_guest_error();
}
// Check that PM system is enabled
pm_enabled();
// Get the user's post page preferences.
$page_prefs = session::get_post_page_prefs();
// Prune old messages for the current user
pm_user_prune_folders($_SESSION['UID']);
$t_subject = null;
$t_content = null;
// Get the Message ID (MID)
if (isset($_GET['mid']) && is_numeric($_GET['mid'])) {
    $mid = $_GET['mid'];
} else {
    if (isset($_POST['mid']) && is_numeric($_POST['mid'])) {
        $mid = $_POST['mid'];
    } else {
        light_html_draw_error(gettext("No message specified for editing"));
    }
}
// Get the message.
if (!($message_data = pm_message_get($mid))) {
    pm_edit_refuse();
Beispiel #2
0
// Bootstrap
require_once 'lboot.php';
// Includes required by this page.
require_once BH_INCLUDE_PATH . 'constants.inc.php';
require_once BH_INCLUDE_PATH . 'fixhtml.inc.php';
require_once BH_INCLUDE_PATH . 'form.inc.php';
require_once BH_INCLUDE_PATH . 'format.inc.php';
require_once BH_INCLUDE_PATH . 'header.inc.php';
require_once BH_INCLUDE_PATH . 'html.inc.php';
require_once BH_INCLUDE_PATH . 'lang.inc.php';
require_once BH_INCLUDE_PATH . 'light.inc.php';
require_once BH_INCLUDE_PATH . 'logon.inc.php';
require_once BH_INCLUDE_PATH . 'pm.inc.php';
require_once BH_INCLUDE_PATH . 'post.inc.php';
require_once BH_INCLUDE_PATH . 'session.inc.php';
require_once BH_INCLUDE_PATH . 'user.inc.php';
require_once BH_INCLUDE_PATH . 'word_filter.inc.php';
require_once BH_INCLUDE_PATH . 'zip_lib.inc.php';
// Check we're logged in correctly
if (!session::logged_in()) {
    light_html_guest_error();
}
// Check that PM system is enabled
light_pm_enabled();
// Get the user's UID
$uid = session::get_value('UID');
// Prune old messages for the current user
pm_user_prune_folders();
light_html_draw_top();
light_draw_pm_inbox();
light_html_draw_bottom();