Go to the documentation of this file.
8 require_once(
'inc/header.inc.php' );
9 require_once( CH_DIRECTORY_PATH_INC .
'design.inc.php' );
10 require_once( CH_DIRECTORY_PATH_ROOT .
'templates/tmpl_' .
$tmpl .
'/scripts/ChTemplMailBox.php');
23 ? (
int)
$_GET[
'messageID']
33 ?
$_GET[
'recipient_id']
61 $aMessagesList = array();
79 'mailbox_mode' => (isset(
$_GET[
'mode']))
84 'sort_mode' => (isset(
$_GET[
'sorting']))
89 'page' => (isset(
$_GET[
'page']))
94 'per_page' => (isset(
$_GET[
'per_page']))
95 ? (
int)
$_GET[
'per_page']
99 'contacts_mode' => (isset(
$_GET[
'contacts_mode']))
100 ?
$_GET[
'contacts_mode']
104 'contacts_page' => (isset(
$_GET[
'contacts_page']))
105 ? (
int)
$_GET[
'contacts_page']
109 'messageID' => (isset(
$_GET[
'messageID']))
110 ? (
int)
$_GET[
'messageID']
118 'send_copy' => ( isset(
$_GET[
'copy_message']) )
123 'send_copy_to_me' => ( isset(
$_GET[
'copy_message_to_me']) )
128 'notification' => ( isset(
$_GET[
'notify']) )
134 if ( isset(
$_GET[
'messages_types']) ) {
147 case 'view_message' :
149 ?
'mail_page_compose'
153 $GLOBALS[
'oSysTemplate']->addJsTranslation(
'_Mailbox title empty');
154 $GLOBALS[
'oSysTemplate']->addJsTranslation(
'_Mailbox recipient empty');
155 $GLOBALS[
'oSysTemplate']->addJsTranslation(
'_Mailbox description empty');
167 $aCallbackFunctions = array(
'genMessagesRows',
'genArchiveMessages',
'getInboxMessagesCount' );
169 switch(
ch_get(
'action') ) {
179 if( isset($_POST[
'action']) && $_POST[
'action'] ==
'mark') {
181 if ( is_array($aMessagesList)
and !
empty($aMessagesList) ) {
182 foreach( $aMessagesList AS $iKey ) {
194 case 'hide_deleted' :
195 if ( is_array($aMessagesList )
and !
empty($aMessagesList) ) {
196 foreach( $aMessagesList AS $iKey ) {
207 if( isset($_POST[
'action']) && $_POST[
'action'] ==
'delete') {
208 if ( is_array($aMessagesList )
and !
empty($aMessagesList) ) {
209 foreach( $aMessagesList AS $iKey ) {
220 if( isset($_POST[
'action']) && $_POST[
'action'] ==
'restore') {
221 if ( is_array($aMessagesList)
and !
empty($aMessagesList) ) {
222 foreach( $aMessagesList AS $iKey ) {
232 case 'get_messages_count' :
233 $iMessageCount =
$oMailBox -> getInboxMessagesCount();
234 $sResponceText = ( $iMessageCount ) ?
' (' . $iMessageCount .
') ' :
null;
239 case 'archives_paginate' :
244 case 'reply_message' :
251 case 'compose_mail' :
256 $sErrorMessage =
'_Mailbox title empty';
260 $sErrorMessage =
'_Mailbox description empty';
264 $sErrorMessage =
'_Mailbox recipient empty';
272 case 'auto_complete' :
277 case 'get_thumbnail' :
285 if ( isset(
$_GET[
'callback_function'])
and in_array(
$_GET[
'callback_function'], $aCallbackFunctions) ) {
290 header(
'Content-Type: text/html; charset=utf-8');
304 $aVars = array (
'BaseUri' => CH_WSB_URL_ROOT);
305 $GLOBALS[
'oTopMenu']->setCustomSubActions(
$aVars,
'Mailbox',
false);
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
if( $sMessagesList) $aMailBoxSettings
login_form($text="", $member=0, $bAjaxMode=false, $sLoginFormParams='')
if(isset($_GET['ajax_mode']) and false !==ch_get('action')) $sPageTitle
get_member_thumbnail($ID, $float, $bGenProfLink=false, $sForceSex='visitor', $aOnline=array())
_t_err( $str, $arg0="", $arg1="", $arg2="")
_t($key, $arg0="", $arg1="", $arg2="")
PageCode($oTemplate=null)
$_page_cont[$_ni]['page_main_code']
Attr AllowedFrameTargets _parent and _top Values should be as validation will be done in a case sensitive manner despite W3C s recommendation XHTML Strict does not permit the target attribute so this directive will have no effect in that doctype XHTML does not enable the Target module by default
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
if(isset($_GET['messages_types'])) switch($aMailBoxSettings['mailbox_mode']) $oMailBox
Attr AllowedRel this is empty