Go to the documentation of this file.
8 define(
'CH_MEMBER_PAGE', 1);
10 define(
'CH_LOGIN_BY_ID',
true);
11 define(
'CH_LOGIN_BY_NICK',
true);
12 define(
'CH_LOGIN_BY_EMAIL',
true);
14 require_once(
'inc/header.inc.php');
15 require_once(CH_DIRECTORY_PATH_INC .
'design.inc.php');
16 require_once(CH_DIRECTORY_PATH_INC .
'profiles.inc.php');
17 require_once(CH_DIRECTORY_PATH_INC .
'utils.inc.php');
36 $bAjxMode = (isset($_SERVER[
'HTTP_X_REQUESTED_WITH'])
and $_SERVER[
'HTTP_X_REQUESTED_WITH'] ==
'XMLHttpRequest') ?
true :
false;
38 if (!(isset($_POST[
'ID']) && $_POST[
'ID'] && isset($_POST[
'Password']) && $_POST[
'Password'])
39 && ((!
empty($_COOKIE[
'memberID']) && $_COOKIE[
'memberID']) && $_COOKIE[
'memberPassword'])) {
44 if (!isset($_POST[
'ID']) && !isset($_POST[
'Password'])) {
51 require_once(CH_DIRECTORY_PATH_CLASSES .
'ChWsbAlerts.php');
57 if(ctype_digit(
$member[
'ID'])) {
65 $sNickName =
$GLOBALS[
'MySQL']->getOne(
"SELECT `NickName` FROM `Profiles` WHERE `NickName`= ? LIMIT 1", [
$member[
'ID']]);
66 if($sNickName ==
$member[
'ID']) {
74 if(filter_var(
$member[
'ID'], FILTER_VALIDATE_EMAIL)) {
97 $sRelocate =
ch_get(
'relocate');
98 if (!$sUrlRelocate = $sRelocate
or $sRelocate ==
$site[
'url']
or basename($sRelocate) ==
'join.php' or 0 !== mb_stripos($sRelocate, CH_WSB_URL_ROOT)) {
99 $sUrlRelocate = CH_WSB_URL_ROOT .
'member.php';
102 $_page[
'name_index'] = 150;
109 if (
isAdmin(
$p_arr[
'ID']) && !in_array($iCode, array(0, -1))) {
110 Redirect(
$site[
'url_admin'], array(
'ID' =>
$member[
'ID'],
'Password' =>
$member[
'Password'],
'rememberMe' => $_POST[
'rememberMe'],
'relocate' => $sUrlRelocate),
'post');
136 'BaseUri' => CH_WSB_URL_ROOT,
137 'cpt_am_account_profile_page' =>
_t(
'_sys_am_account_profile_page')
140 $GLOBALS[
'oTopMenu']->setCustomSubActions(
$aVars,
'AccountTitle',
false);
getVisitorIP($isProxyCheck=true)
ch_login($iId, $bRememberMe=false, $bAlert=true)
MsgBox($sText, $iTimer=0)
ch_js_string($mixedInput, $iQuoteType=CH_ESCAPE_STR_AUTO)
ch_import($sClassName, $aModule=array())
$_page_cont[$_ni]['page_main_code']
check_password($sUsername, $sPassword, $iRole=CH_WSB_ROLE_MEMBER, $error_handle=true)
login_form($text="", $member=0, $bAjaxMode=false, $sLoginFormParams='')
send_headers_page_changed()
ch_member_ip_store($iMemberId, $sIP=false)
Redirect($ActionURL, $Params=null, $Method="get", $Title='Redirect')
_t($key, $arg0="", $arg1="", $arg2="")
PageCode($oTemplate=null)
member_auth($member=0, $error_handle=true, $bAjx=false)
process_pass_data($text, $strip_tags=0)
getID( $str, $with_email=1)
Attr AllowedRel this is empty
Voluntary License Schemes The Licensor waives the right to collect whether individually or