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_INC .
'profiles.inc.php' );
11 require_once( CH_DIRECTORY_PATH_INC .
'tags.inc.php' );
16 if (isset(
$_GET[
'action']) &&
$_GET[
'action']==
'get_prof_status_mess') {
20 header(
'Content-Type: text/html; charset=utf-8');
27 $iProfileID = (int)
ch_get(
'id');
29 $sCloseC =
_t(
'_Close');
32 if (!$oCmtsView->isEnabled())
exit;
35 $sCaptionItem = <<<BLAH
36 <div
class=
"dbTopMenu">
37 <i
class=
"login_ajx_close sys-icon times"></i>
40 $sCommentsBlock =
$GLOBALS[
'oFunctions']->transBox(
41 DesignBoxContent(
_t(
'_Comments'), $oCmtsView->_getPostReplyBox(), 1, $sCaptionItem),
false
71 $GLOBALS[
'oTopMenu']->setCustomSubHeader(
_t(
"_CHANGE_STATUS_H" ));
84 if ( $_POST[
'CHANGE_STATUS'] ) {
86 switch( $_POST[
'CHANGE_STATUS'] ) {
88 if (
$p_arr[
'Status'] ==
'Active' )
93 if (
$p_arr[
'Status'] ==
'Suspended' )
105 'profile_status_caption' =>
_t(
"_Profile status"),
106 'status' =>
$p_arr[
'Status'],
107 'status_lang_key' =>
_t(
'__' .
$p_arr[
'Status']),
110 'form_attrs' => array (
111 'action' => CH_WSB_URL_ROOT .
'change_status.php',
113 'name' =>
'form_change_status'
119 'name' =>
'CHANGE_STATUS',
122 'subscribe' => array (
124 'name' =>
'subscribe',
129 switch (
$p_arr[
'Status']) {
131 $aForm[
'inputs'][
'status'][
'value'] =
'SUSPEND';
132 $aForm[
'inputs'][
'subscribe'][
'value'] =
_t(
'_Suspend account');
134 $aData[
'form'] =
$oForm->getCode();
135 $aData[
'message'] =
_t(
"_PROFILE_CAN_SUSPEND");
138 $aForm[
'inputs'][
'status'][
'value'] =
'ACTIVATE';
139 $aForm[
'inputs'][
'subscribe'][
'value'] =
_t(
'_Activate account');
141 $aData[
'form'] =
$oForm->getCode();
142 $aData[
'message'] =
_t(
"_PROFILE_CAN_ACTIVATE");
145 $aData[
'message'] =
_t(
"_PROFILE_CANT_ACTIVATE/SUSPEND");
149 return $GLOBALS[
'oSysTemplate']->parseHtmlByName(
'change_status.html', $aData);
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
if($sAction!==false && $sAction=='get_prof_comment_block') $_page['name_index']
post($sTable, $sId, $sAuthor, $sParent, $sMood, $sFileId)
ch_import($sClassName, $aModule=array())
$_page_cont[$_ni]['page_main_code']
ch_admin_profile_change_status($mixedIds, $sStatus, $bSendActMail=FALSE)
if(isset($_GET['action']) && $_GET['action']=='get_prof_status_mess') $sAction
_t($key, $arg0="", $arg1="", $arg2="")
PageCode($oTemplate=null)
member_auth($member=0, $error_handle=true, $bAjx=false)
getTemplateImage($sFileName)
static getStatusPageLight($iMemberId)
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
PageCompPageMainCode($iLoggedID)
DesignBoxContent($title, $content, $db_num=0, $caption_item='', $bottom_item='')
Attr AllowedRel this is empty