Go to the documentation of this file.
8 require_once(
'../inc/header.inc.php' );
12 require_once( CH_DIRECTORY_PATH_INC .
'design.inc.php' );
13 require_once( CH_DIRECTORY_PATH_INC .
'profiles.inc.php' );
14 require_once( CH_DIRECTORY_PATH_INC .
'admin_design.inc.php' );
15 require_once( CH_DIRECTORY_PATH_INC .
'utils.inc.php' );
31 define(
'CH_WSB_ADM_MP_JS_NAME',
'oMP');
33 define(
'CH_WSB_ADM_MP_PER_PAGE_STEP', 16);
37 $sCtlType = isset($_POST[
'adm-mp-members-ctl-type']) && in_array($_POST[
'adm-mp-members-ctl-type'], array(
'qlinks',
'browse',
'calendar',
'tags',
'search',
'settings')) ? $_POST[
'adm-mp-members-ctl-type'] :
CH_WSB_ADM_MP_CTL;
40 $sViewType = isset($_POST[
'adm-mp-members-view-type']) && in_array($_POST[
'adm-mp-members-view-type'], array(
'geeky',
'simple',
'extended')) ? $_POST[
'adm-mp-members-view-type'] :
CH_WSB_ADM_MP_VIEW;
43 if (isset($_POST[
'save']) && isset($_POST[
'cat'])) {
48 if(isset($_POST[
'adm-mp-activate']) && (
bool)$_POST[
'members']) {
52 }
else if(isset($_POST[
'adm-mp-deactivate']) && (
bool)$_POST[
'members']) {
57 }
else if(isset($_POST[
'adm-mp-ban']) && (
bool)$_POST[
'members']) {
58 $iBanDuration = isset($_POST[
'adm-mp-members-ban-duration']) ? (int)$_POST[
'adm-mp-members-ban-duration'] : 0;
60 foreach($_POST[
'members']
as $iId)
65 }
else if(isset($_POST[
'adm-mp-unban']) && (
bool)$_POST[
'members']) {
68 $GLOBALS[
'MySQL']->query(
"DELETE FROM `sys_admin_ban_list` WHERE `ProfID` IN ('" . implode(
"','", $oChecker->passInt($_POST[
'members'])) .
"')");
73 }
else if(isset($_POST[
'adm-mp-set-admin']) && (
bool)$_POST[
'members']) {
75 foreach($_POST[
'members']
as $iId) {
78 $GLOBALS[
'MySQL']->query(
"UPDATE `Profiles` SET `Role` = 3 WHERE `ID` = '$iId'");
84 }
else if(isset($_POST[
'adm-mp-unset-admin']) && (bool)$_POST[
'members']) {
87 foreach($_POST[
'members']
as $iId) {
90 $GLOBALS[
'MySQL']->query(
"UPDATE `Profiles` SET `Role` = 1 WHERE `ID` = '$iId'");
96 }
else if((isset($_POST[
'adm-mp-delete']) || isset($_POST[
'adm-mp-delete-spammer'])) && (bool)$_POST[
'members']) {
98 foreach($_POST[
'members']
as $iId) {
100 if ($iIdCurr !=
$iId)
106 }
else if(isset($_POST[
'adm-mp-confirm']) && (
bool)$_POST[
'members']) {
107 foreach($_POST[
'members']
as $iId)
110 echo
"<script>alert('" .
_t(
'_adm_txt_mp_activation_sent') .
"')</script>";
112 }
else if(isset($_POST[
'action']) && $_POST[
'action'] ==
'get_members') {
114 if(is_array($_POST[
'ctl_value']))
115 foreach($_POST[
'ctl_value']
as $sValue) {
116 $aValue = explode(
'=', $sValue);
117 $aParams[$aValue[0]] = $aValue[1];
120 echo json_encode(array(
'code' => 0,
'content' =>
getMembers(array(
121 'view_type' => $_POST[
'view_type'],
122 'view_start' => (
int)$_POST[
'view_start'],
123 'view_per_page' => (
int)$_POST[
'view_per_page'],
124 'view_order' => $_POST[
'view_order'],
125 'ctl_type' => $_POST[
'ctl_type'],
126 'ctl_params' => $aParams
129 }
else if(isset($_POST[
'action']) && $_POST[
'action'] ==
'get_controls') {
132 $sMethodName =
'getBlock' . ucfirst(
$sCtlType);
133 if(!function_exists($sMethodName)) {
138 echo json_encode(array(
146 if(isset(
$_GET[
'action']) &&
$_GET[
'action'] ==
'browse') {
148 'ctl_type' =>
'qlinks',
149 'ctl_params' => array(
159 'css_name' => array(
'forms_adv.css',
'profiles.css'),
160 'js_name' => array(
'profiles.js'),
161 'header' =>
_t(
'_adm_page_cpt_manage_members')
167 'actions_url' =>
$GLOBALS[
'site'][
'url_admin'] .
'profiles.php',
181 'ctl-type-qlinks' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeControl(this);',
'title' =>
_t(
'_adm_btn_mp_qlinks'),
'active' => $sDefault ==
'qlinks' ? 1 : 0),
184 'ctl-type-tags' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeControl(this);',
'title' =>
_t(
'_adm_btn_mp_tags'),
'active' => $sDefault ==
'tags' ? 1 : 0),
185 'ctl-type-search' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeControl(this);',
'title' =>
_t(
'_adm_btn_mp_search'),
'active' => $sDefault ==
'search' ? 1 : 0),
186 'ctl-type-settings' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeControl(this);',
'title' =>
_t(
'_adm_btn_mp_settings'),
'active' => $sDefault ==
'settings' ? 1 : 0)
189 $aParams = array_merge(
197 'loading' =>
LoadingBox(
'adm-mp-controls-loading')
207 $sBaseUrl =
$GLOBALS[
'site'][
'url_admin'] .
'profiles.php?type=qlinks&value=';
210 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'all' AS `by`, 'all' AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE 1 AND (`Couple`='0' OR `Couple`>`ID`)"));
211 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'status' AS `by`, `Status` AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE 1 AND (`Couple`='0' OR `Couple`>`ID`) GROUP BY `Status`"));
212 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'featured' AS `by`, 'featured' AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE `Featured`='1'"));
213 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'banned' AS `by`, 'banned' AS `value`, COUNT(`ProfID`) AS `count` FROM `sys_admin_ban_list` WHERE `Time`='0' OR (`Time`<>'0' AND DATE_ADD(`DateTime`, INTERVAL `Time` HOUR)>NOW())"));
214 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'membership' AS `by`, `tl`.`Name` AS `value`, COUNT(`tlm`.`IDMember`) AS `count` FROM `sys_acl_levels` AS `tl` LEFT JOIN `sys_acl_levels_members` AS `tlm` ON `tl`.`ID`=`tlm`.`IDLevel` WHERE `tl`.`Active`='yes' AND (`tl`.`Purchasable`='yes' OR `tl`.`Name`='Promotion') AND `tlm`.`DateStarts` < NOW() AND (`tlm`.`DateExpires`>NOW() || ISNULL(`tlm`.`DateExpires`)) GROUP BY `tl`.`ID`"));
215 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'sex' AS `by`, `Sex` AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE NOT ISNULL(`Sex`) AND `Sex` <> '' AND `Couple` = 0 GROUP BY `Sex`"));
216 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'type' AS `by`, 'single' AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE `Couple`='0'"));
217 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'type' AS `by`, 'couple' AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE `Couple`<>'0' AND `Couple`>`ID`"));
218 $aItems = array_merge($aItems, $MySQL->getAll(
"SELECT 'role' AS `by`, 'admins' AS `value`, COUNT(`ID`) AS `count` FROM `Profiles` WHERE `Role` & " .
CH_WSB_ROLE_ADMIN .
""));
220 foreach($aItems
as $aItem)
221 $aResult[] = array(
'link' =>
'javascript:void(0)',
'on_click' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeFilterQlinks(\'' . strtolower($aItem[
'by']) .
'\', \
'' . strtolower($aItem[
'value']) .
'\')
', 'title
' => _t('_adm_txt_mp_
' . strtolower($aItem['value'])), 'count
' => $aItem['count
']);
224 'styles_qlinks
' => $sDefault != 'qlinks
' ? "display: none;" : "",
225 'ch_repeat:content_qlinks
' => $aResult
228 function getBlockBrowse($sDefault)
231 'styles_browse
' => $sDefault != 'browse
' ? "display: none;" : "",
232 'content_browse
' => ''
235 function getBlockCalendar($sDefault)
238 'styles_calendar
' => $sDefault != 'calendar
' ? "display: none;" : "",
239 'content_calendar
' => ''
242 function getBlockTags($sDefault)
244 $oTags = new ChTemplTags();
245 $oTags->setTemplateContent('<span
class=
"one_tag" style=
"font-size:__tagSize__px;"><
a href=
"javascript:void(0)" onclick=
"javascript:__tagHref__" title=
"__countCapt__: __countNum__">__tag__</
a></span>
');
247 $aTags = $oTags->getTagList(array('type' => 'profile
'));
249 'styles_tags
' => $sDefault != 'tags' ? "display: none;" : "",
250 'content_tags
' => $oTags->getTagsView($aTags, CH_WSB_ADM_MP_JS_NAME . '.changeFilterTags(\
'{tag}\')')
256 'form_attrs' => array(
257 'id' =>
'adm-mp-search',
258 'action' =>
$GLOBALS[
'site'][
'url_admin'] .
'profiles.php',
260 'enctype' =>
'multipart/form-data',
264 'adm-mp-filter' => array(
266 'name' =>
'adm-mp-filter',
267 'caption' =>
_t(
'_adm_txt_mp_filter'),
273 'value' =>
_t(
'_adm_btn_mp_search'),
283 'styles_search' => $sDefault !=
'search' ?
"display: none;" :
"",
284 'content_search' =>
$oForm->getCode()
293 if (isset($_POST[
'save']) && isset($_POST[
'cat'])) {
302 'styles_settings' => $sDefault !=
'settings' ?
"display: none;" :
"",
303 'content_settings' =>
$s
311 'view-type-simple' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeView(this);',
'title' =>
_t(
'_adm_btn_mp_simple'),
'active' => $sDefaultView ==
'simple' ? 1 : 0),
312 'view-type-extended' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeView(this);',
'title' =>
_t(
'_adm_btn_mp_extended'),
'active' => $sDefaultView ==
'extended' ? 1 : 0),
313 'view-type-geeky' => array(
'href' =>
'javascript:void(0)',
'onclick' =>
'javascript:' .
CH_WSB_ADM_MP_JS_NAME .
'.changeTypeView(this);',
'title' =>
_t(
'_adm_btn_mp_geeky'),
'active' => $sDefaultView ==
'geeky' ? 1 : 0)
327 $sSelected =
getParam(
'default_order_by');
328 if($sSelected ==
'None') $sSelected1 =
'selected="selected"';
329 if($sSelected ==
'User Name') $sSelected2 =
'selected="selected"';
330 if($sSelected ==
'Last Join') $sSelected3 =
'selected="selected"';
331 if($sSelected ==
'Last Activity') $sSelected4 =
'selected="selected"';
333 $sTopControls =
$GLOBALS[
'oAdmTemplate']->parseHtmlByName(
'mp_members_top_controls.html', array(
336 'selected1' => $sSelected1,
337 'selected2' => $sSelected2,
338 'selected3' => $sSelected3,
339 'selected4' => $sSelected4,
340 'per_page' => $oPaginate->getPages(),
344 'action_url' =>
$GLOBALS[
'site'][
'url_admin'] .
'profiles.php',
345 'ctl_type' => is_array($sDefaultCtl) && !
empty($sDefaultCtl) ? $sDefaultCtl[
'ctl_type'] : $sDefaultCtl,
346 'view_type' => $sDefaultView,
347 'top_controls' => $sTopControls,
348 'loading' =>
LoadingBox(
'adm-mp-members-loading')
351 foreach(array(
'simple',
'extended',
'geeky')
as $sType)
352 if(
$sType == $sDefaultView) {
353 $aParams = array(
'view_type' =>
$sType);
354 if(is_array($sDefaultCtl) && !
empty($sDefaultCtl))
355 $aParams = array_merge($aParams, $sDefaultCtl);
366 if(!isset($aParams[
'view_order']) ||
empty($aParams[
'view_order'])) {
367 $sSelected =
getParam(
'default_order_by');
368 $aParams[
'view_order'] =
'ID';
369 if($sSelected ==
'None') $aParams[
'view_order'] =
'ID';
370 if($sSelected ==
'User Name') $aParams[
'view_order'] =
'NickName';
371 if($sSelected ==
'Last Join') $aParams[
'view_order'] =
'DateReg DESC';
372 if($sSelected ==
'Last Activity') $aParams[
'view_order'] =
'DateLastNav DESC';
375 if(!isset($aParams[
'view_start']) ||
empty($aParams[
'view_start']))
376 $aParams[
'view_start'] = 0;
378 if(!isset($aParams[
'view_per_page']) ||
empty($aParams[
'view_per_page']))
381 $aParams[
'view_order_way'] =
'ASC';
382 if(!isset($aParams[
'view_order']) ||
empty($aParams[
'view_order']))
383 $aParams[
'view_order'] =
'ID';
385 $aOrder = explode(
' ', $aParams[
'view_order']);
386 if(count($aOrder) > 1) {
387 $aParams[
'view_order'] = $aOrder[0];
388 $aParams[
'view_order_way'] = $aOrder[1];
394 $sSelectClause = $sJoinClause = $sWhereClause = $sGroupClause =
'';
395 if(isset($aParams[
'ctl_type'])) {
396 switch ($aParams[
'ctl_type']) {
398 switch ($aParams[
'ctl_params'][
'by']) {
400 $sWhereClause .=
" AND `tp`.`Status`='" . ucfirst($aParams[
'ctl_params'][
'value']) .
"'";
403 $sWhereClause .=
" AND `tp`.`Featured`='1'";
406 $sWhereClause .=
" AND (`tbl`.`Time`='0' OR (`tbl`.`Time`<>'0' AND DATE_ADD(`tbl`.`DateTime`, INTERVAL `tbl`.`Time` HOUR)>NOW()))";
409 $sWhereClause .= $aParams[
'ctl_params'][
'value'] ==
'single' ?
" AND `tp`.`Couple`='0'" :
" AND `tp`.`Couple`<>'0' AND `tp`.`Couple`>`tp`.`ID`";
413 if ($aParams[
'ctl_params'][
'value'] ==
'admins') {
417 $sWhereClause .=
" AND `tp`.`Role` & " . $iRole .
"";
420 $sWhereClause .=
" AND LOWER(`tp`.`Sex`)='" . strtolower($aParams[
'ctl_params'][
'value']) .
"' AND `tp`.`Couple` = 0 ";
423 $sWhereClause .=
" AND LOWER(`tl`.`Name`)='" . strtolower($aParams[
'ctl_params'][
'value']) .
"'";
429 $sWhereClause .=
" AND `tp`.`Tags` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%'";
433 $sWhereClause .=
" AND (
434 `tp`.`ID` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%' OR
435 `tp`.`NickName` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%' OR
436 `tp`.`Email` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%' OR
437 `tp`.`DescriptionMe` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%' OR
438 `tp`.`Tags` LIKE '%" . $aParams[
'ctl_params'][
'value'] .
"%'
450 'start' => $aParams[
'view_start'],
451 'count' => (
int)
db_value(
"SELECT COUNT(`tp`.`ID`) FROM `Profiles` AS `tp` LEFT JOIN `sys_admin_ban_list` AS `tbl` ON `tp`.`ID`=`tbl`.`ProfID` LEFT JOIN `sys_acl_levels_members` AS `tlm` ON `tp`.`ID`=`tlm`.`IDMember` AND `tlm`.`DateStarts` < NOW() AND (`tlm`.`DateExpires`>NOW() || ISNULL(`tlm`.`DateExpires`)) LEFT JOIN `sys_acl_levels` AS `tl` ON `tlm`.`IDLevel`=`tl`.`ID` " . $sJoinClause .
" WHERE 1 AND (`tp`.`Couple`=0 OR `tp`.`Couple`>`tp`.`ID`)" . $sWhereClause),
452 'per_page' => $aParams[
'view_per_page'],
453 'page_url' =>
$GLOBALS[
'site'][
'url_admin'] .
'profiles.php?start={start}',
456 $sPaginate = $oPaginate->getPaginate();
459 $GLOBALS[
'oAdmTemplate']->addJsTranslation(array(
'_adm_btn_mp_ban_duration'));
462 'adm-mp-activate' =>
_t(
'_adm_btn_mp_activate'),
463 'adm-mp-deactivate' =>
_t(
'_adm_btn_mp_deactivate'),
464 'adm-mp-ban' => array(
466 'name' =>
'adm-mp-ban',
467 'value' =>
_t(
'_adm_btn_mp_ban'),
470 'adm-mp-unban' =>
_t(
'_adm_btn_mp_unban'),
471 'adm-mp-confirm' =>
_t(
'_adm_btn_mp_confirm'),
472 'adm-mp-delete' =>
_t(
'_adm_btn_mp_delete'),
473 'adm-mp-delete-spammer' =>
_t(
'_adm_btn_mp_delete_spammer'),
474 'adm-mp-set-admin' =>
_t(
'_adm_btn_mp_set_admin'),
475 'adm-mp-unset-admin' =>
_t(
'_adm_btn_mp_unset_admin'),
483 `tp`.`NickName` AS `username`,
485 `tp`.`DateOfBirth` AS `date_of_birth`,
486 `tp`.`Country` AS `country`,
487 `tp`.`City` AS `city`,
488 `tp`.`DescriptionMe` AS `description`,
489 `tp`.`Email` AS `email`,
490 `tp`.`CurrentPageTitle` AS `pagetitle`,
491 DATE_FORMAT(`tp`.`DateReg`, '" . $sDateFormat .
"' ) AS `registration`,
492 DATE_FORMAT(`tp`.`DateLastLogin`, '" . $sDateFormat .
"' ) AS `last_login`,
493 DATE_FORMAT(`tp`.`DateLastNav`, '" . $sDateFormat .
"' ) AS `last_activity`,
494 `tp`.`Status` AS `status`,
495 IF(`tbl`.`Time`='0' OR DATE_ADD(`tbl`.`DateTime`, INTERVAL `tbl`.`Time` HOUR)>NOW(), 1, 0) AS `banned`,
496 `tl`.`ID` AS `ml_id`,
497 IF(ISNULL(`tl`.`Name`),'', `tl`.`Name`) AS `ml_name`
498 " . $sSelectClause .
"
499 FROM `Profiles` AS `tp`
500 LEFT JOIN `sys_admin_ban_list` AS `tbl` ON `tp`.`ID`=`tbl`.`ProfID`
501 LEFT JOIN `sys_acl_levels_members` AS `tlm` ON `tp`.`ID`=`tlm`.`IDMember` AND `tlm`.`DateStarts` < NOW() AND (`tlm`.`DateExpires`>NOW() || ISNULL(`tlm`.`DateExpires`))
502 LEFT JOIN `sys_acl_levels` AS `tl` ON `tlm`.`IDLevel`=`tl`.`ID`
505 1 AND (`tp`.`Couple`=0 OR `tp`.`Couple`>`tp`.`ID`)" . $sWhereClause .
"
506 " . $sGroupClause .
"
507 ORDER BY `tp`.`" . $aParams[
'view_order'] .
"` " . $aParams[
'view_order_way'] .
"
508 LIMIT " . $aParams[
'view_start'] .
", " . $aParams[
'view_per_page'];
509 $aProfiles =
$GLOBALS[
'MySQL']->getAll($sQuery);
512 $sFunction =
'getMembers' . ucfirst($aParams[
'view_type']);
513 return $sFunction($aProfiles, $sPaginate, $sControls);
521 $sEmail = ( mb_strlen(
$aProfile[
'email']) > $iEmailLength ) ? mb_substr(
$aProfile[
'email'], 0, $iEmailLength) .
'...' :
$aProfile[
'email'];
530 'edit_class' => (
int)
$aProfile[
'banned'] == 1 ?
'adm-mp-banned' : (
$aProfile[
'status'] !=
'Active' ?
'adm-mp-inactive' :
'adm-mp-active'),
531 'registration' =>
$aProfile[
'registration'],
532 'last_activity' =>
$aProfile[
'last_activity'],
539 return $GLOBALS[
'oAdmTemplate']->parseHtmlByName(
'mp_members_geeky.html', array(
540 'ch_repeat:items' => array_values($aItems),
541 'paginate' => $sPaginate,
542 'control' => $sControls
553 'edit_class' => (
int)
$aProfile[
'banned'] == 1 ?
'adm-mp-banned' : (
$aProfile[
'status'] !=
'Active' ?
'adm-mp-inactive' :
'adm-mp-active'),
554 'edit_width' => defined(
'CH_AVA_W') ? CH_AVA_W : 70,
559 return $GLOBALS[
'oAdmTemplate']->parseHtmlByName(
'mp_members_simple.html', array(
560 'ch_repeat:items' => array_values($aItems),
561 'paginate' => $sPaginate,
562 'control' => $sControls
573 'edit_class' => (
int)
$aProfile[
'banned'] == 1 ?
'adm-mp-banned' : (
$aProfile[
'status'] !=
'Active' ?
'adm-mp-inactive' :
'adm-mp-active'),
578 return $GLOBALS[
'oAdmTemplate']->parseHtmlByName(
'mp_members_extended.html', array(
579 'ch_repeat:items' => array_values($aItems),
580 'paginate' => $sPaginate,
581 'control' => $sControls
process_db_input($sText, $iStripTags=0)
PageCodeMembers($sDefaultCtl=CH_WSB_ADM_MP_CTL, $sDefaultView=CH_WSB_ADM_MP_VIEW)
activation_mail( $ID, $text=1)
URI MungeSecretKey $secret_key</pre >< p > If the output is TRUE
ch_admin_profile_ban_control($iProfileId, $bBan=true, $iDuration=0)
getBlockBrowse($sDefault)
ch_import($sClassName, $aModule=array())
const CH_WSB_ADM_MP_PER_PAGE_STEP
ch_admin_profile_change_status($mixedIds, $sStatus, $bSendActMail=FALSE)
const CH_WSB_ADM_MP_PER_PAGE
PageCodeControls($sDefault=CH_WSB_ADM_MP_CTL)
getBlockCalendar($sDefault)
profile_delete($ID, $isDeleteSpammer=false)
const CH_WSB_ADM_MP_JS_NAME
getBlockSearch($sDefault)
DesignBoxAdmin($sTitle, $sContent, $mixedTopItems='', $sBottomItems='', $iIndex=1)
getParam($sParamName, $bUseCache=true)
get_member_thumbnail($ID, $float, $bGenProfLink=false, $sForceSex='visitor', $aOnline=array())
strmaxtextlen($sInput, $iMaxLen=60)
getMembersExtended($aProfiles, $sPaginate, $sControls)
getMembersSimple($aProfiles, $sPaginate, $sControls)
if(!defined("USER_STATUS_TYPE")) define("USER_STATUS_TYPE" type
PageCodeAdmin($oTemplate=null)
_t($key, $arg0="", $arg1="", $arg2="")
URI Base such as when URI MakeAbsolute is on You may use a non absolute URI for this value
member_auth($member=0, $error_handle=true, $bAjx=false)
getBlockQlinks($sDefault)
db_value($query, $bindings=[], $error_checking=true, $index=0)
if(isset($_POST['save']) &&isset($_POST['cat'])) if(isset($_POST['adm-mp-activate']) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-deactivate']) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-ban']) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-unban']) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-set-admin']) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-unset-admin']) &&(bool) $_POST['members']) else if((isset($_POST['adm-mp-delete'])||isset($_POST['adm-mp-delete-spammer'])) &&(bool) $_POST['members']) else if(isset($_POST['adm-mp-confirm']) &&(bool) $_POST['members']) else if(isset($_POST['action']) && $_POST['action']=='get_members') else if(isset($_POST['action']) && $_POST['action']=='get_controls') if(isset($_GET['action']) && $_GET['action']=='browse') $iNameIndex
getLocaleFormat($iCode=CH_WSB_LOCALE_DATE_SHORT, $iType=CH_WSB_LOCALE_PHP)
static showAdminActionsPanel($sWrapperId, $aButtons, $sCheckboxName='entry', $bSelectAll=true, $bSelectAllChecked=false, $sCustomHtml='')
getMembersGeeky($aProfiles, $sPaginate, $sControls)
getBlockSettings($sDefault)
Attr AllowedRel this is empty