// These language strings are set dynamically, so the language // tool won't recognize them automatically. Therefore they are // mentioned here. // $PHORUM["DATA"]["LANG"]["PMFolderCreateSuccess"] // $PHORUM["DATA"]["LANG"]["PMFolderRenameSuccess"] // $PHORUM["DATA"]["LANG"]["PMFolderDeleteSuccess"] // $PHORUM["DATA"]["LANG"]["PMSent"] // PMTODO If reading from a mail notify, lookup the folder_id, // so the close button will work. Now the folder_id is empty. // PMTODO implement pm_reply_flag functionality define('phorum_page', 'pm'); require_once './common.php'; require_once PHORUM_PATH . '/include/api/format/messages.php'; require_once PHORUM_PATH . '/include/api/ban.php'; require_once PHORUM_PATH . '/include/api/mail/pm_notify.php'; phorum_api_request_require_login(TRUE); // CSRF protection: we do not accept posting to this script, // when the browser does not include a Phorum signed token // in the request. phorum_api_request_check_token(); // set all our common URL's phorum_build_common_urls(); // If private messages are disabled, just show a simple error message. if (!$PHORUM["enable_pm"]) { $PHORUM["DATA"]["BLOCK_CONTENT"] = $PHORUM["DATA"]["LANG"]["PMDisabled"]; phorum_api_output("stdblock"); return; } // ------------------------------------------------------------------------ // Parameter handling // ------------------------------------------------------------------------
// This program is free software. You can redistribute it and/or modify // // it under the terms of either the current Phorum License (viewable at // // phorum.org) or the Phorum License that was distributed with this file // // // // This program is distributed in the hope that it will be useful, // // but WITHOUT ANY WARRANTY, without even the implied warranty of // // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. // // // // You should have received a copy of the Phorum License // // along with this program. // // // //////////////////////////////////////////////////////////////////////////////// define('phorum_page', 'subscribe'); require_once './common.php'; require_once PHORUM_PATH . '/include/api/format/messages.php'; phorum_api_request_require_login(); // checking read-permissions if (!phorum_check_read_common()) { return; } // somehow we got to a folder if ($PHORUM["folder_flag"] || empty($PHORUM["forum_id"])) { phorum_api_redirect(PHORUM_INDEX_URL, $PHORUM["forum_id"]); } if (isset($PHORUM["args"][1])) { $thread = (int) $PHORUM["args"][1]; } elseif (isset($_POST["thread"])) { $thread = (int) $_POST["thread"]; } if (empty($thread)) { phorum_api_redirect(PHORUM_LIST_URL);