Cheetah
Main Page
Related Pages
Namespaces
Namespace List
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
a
b
c
d
e
f
h
i
l
m
o
p
r
s
t
u
v
x
Files
File List
File Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Functions
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
profile_info.php
Go to the documentation of this file.
1
<?
php
2
8
require_once(
'inc/header.inc.php'
);
9
require_once( CH_DIRECTORY_PATH_INC .
'design.inc.php'
);
10
require_once( CH_DIRECTORY_PATH_CLASSES .
'ChWsbPageView.php'
);
11
12
ch_import
(
'ChTemplProfileView'
);
13
14
$sPageCaption
=
_t
(
'_Profile info'
);
15
16
$_page
[
'name_index'
] = 7;
17
$_page
[
'header'
] =
$sPageCaption
;
18
$_page
[
'header_text'
] =
$sPageCaption
;
19
$_page
[
'css_name'
] =
'profile_view.css'
;
20
21
//-- init some needed variables --//;
22
23
$iViewedID
=
false
!=
ch_get
(
'ID'
) ? (int)
ch_get
(
'ID'
) : 0;
24
if
(!
$iViewedID
) {
25
$iViewedID
=
getLoggedId
();
26
}
27
28
// check profile membership, status, privacy and if it is exists
29
ch_check_profile_visibility
(
$iViewedID
,
getLoggedId
());
30
31
$GLOBALS
[
'oTopMenu'
] -> setCurrentProfileID(
$iViewedID
);
32
33
// fill array with all profile informaion
34
$aMemberInfo
=
getProfileInfo
(
$iViewedID
);
35
36
// build page;
37
$_ni
=
$_page
[
'name_index'
];
38
39
// prepare all needed keys ;
40
$aMemberInfo
[
'anonym_mode'
] =
$oTemplConfig
-> bAnonymousMode;
41
$aMemberInfo
[
'member_pass'
] =
$aMemberInfo
[
'Password'
];
42
$aMemberInfo
[
'member_id'
] =
$aMemberInfo
[
'ID'
];
43
44
$aMemberInfo
[
'url'
] = CH_WSB_URL_ROOT;
45
46
ch_import
(
'ChWsbProfileInfoPageView'
);
47
$oProfileInfo
=
new
ChWsbProfileInfoPageView
(
'profile_info'
,
$aMemberInfo
);
48
$sOutputHtml
=
$oProfileInfo
->getCode();
49
50
$_page_cont
[
$_ni
][
'page_main_code'
] =
$sOutputHtml
;
51
52
PageCode
();
ChWsbProfileInfoPageView
Definition:
ChWsbProfileInfoPageView.php:12
$sPageCaption
$sPageCaption
Definition:
profile_info.php:14
ch_import
ch_import($sClassName, $aModule=array())
Definition:
utils.inc.php:1218
ch_get
ch_get($sName)
Definition:
utils.inc.php:1664
php
$_page_cont
$_page_cont[$_ni]['page_main_code']
Definition:
profile_info.php:50
$_page
$_page['name_index']
Definition:
profile_info.php:16
$aMemberInfo
$aMemberInfo
Definition:
profile_info.php:34
ch_check_profile_visibility
ch_check_profile_visibility($iViewedId, $iViewerId=0, $bReturn=false)
Definition:
profiles.inc.php:605
$oProfileInfo
$oProfileInfo
Definition:
profile_info.php:47
getLoggedId
getLoggedId()
Definition:
profiles.inc.php:32
$_ni
$_ni
Definition:
profile_info.php:37
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition:
languages.inc.php:509
PageCode
PageCode($oTemplate=null)
Definition:
design.inc.php:91
getProfileInfo
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
Definition:
profiles.inc.php:249
$iViewedID
$iViewedID
Definition:
profile_info.php:23
$oTemplConfig
$oTemplConfig
Definition:
params.inc.php:90
$sOutputHtml
$sOutputHtml
Definition:
profile_info.php:48
$GLOBALS
$GLOBALS['iAdminPage']
Definition:
advanced_settings.php:10
Generated by
1.8.20