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 .
'admin_design.inc.php' );
11 require_once( CH_DIRECTORY_PATH_INC .
'admin.inc.php' );
23 'css_name' => array(),
25 'header' =>
_t(
'_adm_txt_emaillog'),
26 'header_text' =>
_t(
'_adm_txt_emaillog'),
29 if (!isset(
$_GET[
'mode']))
36 'href' =>
'emaillog.php',
37 'title' =>
_t(
'_adm_txt_emaillog_log'),
38 'active' =>
'' ==
$sMode ? 1 : 0
41 'href' =>
'emaillog.php?mode=settings',
42 'title' =>
_t(
'_adm_txt_emaillog_settings'),
43 'active' =>
'settings' ==
$sMode ? 1 : 0
69 if(
'on' ==
getParam(
'email_log_emabled')) {
70 $sQuery =
"SELECT * FROM `sys_email_log` ORDER BY `timestamp` DESC";
71 $aEmailLog =
$GLOBALS[
'MySQL']->getAll($sQuery);
74 foreach($aEmailLog
as $id => $value) {
75 $time = strtotime($value[
'timestamp']);
77 $aEmailLog[$id][
'phptime'] = $myFormatForView;
78 if($value[
'html'] ==
'text') {
79 $aEmailLog[$id][
'body'] =
'<div style="padding: 20px;">' . nl2br($value[
'body']) .
'</div>';
81 $aEmailLog[$id][
'params'] =
'<div style="padding: 20px;"><pre>' . print_r(unserialize($value[
'params']),
true) .
'</pre></div>';
82 $aEmailLog[$id][
'recipientinfo'] =
'<div style="padding: 20px;"><pre>' . print_r(unserialize($value[
'recipientinfo']),
true) .
'</pre></div>';
83 $aEmailLog[$id][
'debug'] =
'<div style="padding: 20px;"><pre>' . print_r(unserialize($value[
'debug']),
true) .
'</pre></div>';
86 'ch_repeat:emaillog' => $aEmailLog,
93 $r =
MsgBox(
_t(
'_adm_txt_emaillog_not_enabled'));
104 if (isset($_POST[
'save']) && isset($_POST[
'cat']))
$_page_cont[$iNameIndex]['page_main_code']
MsgBox($sText, $iTimer=0)
ch_import($sClassName, $aModule=array())
DesignBoxAdmin($sTitle, $sContent, $mixedTopItems='', $sBottomItems='', $iIndex=1)
getParam($sParamName, $bUseCache=true)
PageCodeAdmin($oTemplate=null)
_t($key, $arg0="", $arg1="", $arg2="")
member_auth($member=0, $error_handle=true, $bAjx=false)
getLocaleDate($sTimestamp='', $iCode=CH_WSB_LOCALE_DATE_SHORT)