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 .
'utils.inc.php' );
17 if (
'popup' ===
ch_get(
'action')) {
18 echo
PopupBox(
'ch_profile_export',
_t(
'_adm_txt_langs_export'),
$GLOBALS[
'oSysTemplate']->parseHtmlByName(
'export.html', array(
19 'content' =>
$GLOBALS[
'oFunctions']->loadingBoxInline(),
20 'profile_id' => (
int)
ch_get(
'profile_id'),
25 if (0 === strcasecmp($_SERVER[
'REQUEST_METHOD'],
'POST')) {
30 header(
'Content-Type: text/html; charset=utf-8');
31 if (
true === $mixedRes) {
33 echo json_encode(array(
'err' => 0,
'msg' =>
_t(
'_sys_export_success',
$aProfile[
'Email'])));
36 echo json_encode(array(
'err' => 1,
'msg' => $mixedRes ? $mixedRes :
_t(
'_Error occured')));
</code > Be careful enabling this directive if you have a redirector script that does not use the< code > Location</code > HTTP header
ch_import($sClassName, $aModule=array())
static generateAllExports($iProfileId)
_t($key, $arg0="", $arg1="", $arg2="")
PopupBox($sName, $sTitle, $sContent, $aActions=array())
getProfileInfo($iProfileID=0, $checkActiveStatus=false, $forceCache=false)
if( $sMembersList) $iProfileId