2.1.0
This commit is contained in:
@@ -472,14 +472,13 @@ function dzzdecode($string, $key = '', $ckey_length = 0)
|
||||
);
|
||||
返回加密字符串
|
||||
*/
|
||||
function Pencode($params = array(), $expiry = 0, $key = '')
|
||||
{
|
||||
$arr = array();
|
||||
foreach ($params as $k => $v) {
|
||||
$arr[] = $k . ':' . $v;
|
||||
function Pencode($params=array(),$expiry=0,$key=''){
|
||||
$arr=array();
|
||||
foreach($params as $k => $v){
|
||||
$arr[]=$k.':'.base64_encode($v);
|
||||
}
|
||||
if ($arr) {
|
||||
return dzzencode(implode('|', $arr), $key, $expiry);
|
||||
if($arr){
|
||||
return dzzencode(implode('|',$arr),$key,$expiry);
|
||||
}
|
||||
return '';
|
||||
}
|
||||
@@ -493,18 +492,18 @@ function Pencode($params = array(), $expiry = 0, $key = '')
|
||||
);
|
||||
|
||||
*/
|
||||
function Pdecode($string, $key = '')
|
||||
{
|
||||
if (!$str = dzzdecode($string, $key)) return array();
|
||||
$ret = array();
|
||||
if (strpos($str, '|') !== false) {
|
||||
$arr = explode('|', $str);
|
||||
foreach ($arr as $key => $value) {
|
||||
$arr1 = explode(':', $value);
|
||||
$ret[$arr1[0]] = $arr1[1];
|
||||
|
||||
function Pdecode($string, $key = ''){
|
||||
if(!$str=dzzdecode($string,$key)) return array();
|
||||
$ret=array();
|
||||
if(strpos($str,'|')!==false){
|
||||
$arr=explode('|',$str);
|
||||
foreach($arr as $key => $value){
|
||||
$arr1=explode(':',$value);
|
||||
$ret[$arr1[0]]=base64_decode($arr1[1]);
|
||||
}
|
||||
} else {
|
||||
$ret['path'] = $str;
|
||||
}else{
|
||||
$ret['path']=$str;
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
@@ -771,7 +770,7 @@ function random($length, $numeric = 0)
|
||||
}
|
||||
$max = strlen($seed) - 1;
|
||||
for ($i = 0; $i < $length; $i++) {
|
||||
$hash .= $seed{random_int(0, $max)};
|
||||
$hash .= $seed[random_int(0, $max)];
|
||||
}
|
||||
return $hash;
|
||||
}
|
||||
|
||||
@@ -43,12 +43,14 @@ EOT;
|
||||
$_G['setting']['mail']['mailsend'] = $_G['setting']['mail']['mailsend'] ? $_G['setting']['mail']['mailsend'] : 1;
|
||||
|
||||
if($_G['setting']['mail']['mailsend'] == 3) {
|
||||
$email_from = empty($from) ? $_G['setting']['adminemail'] : $from;
|
||||
$email_from = empty($from) ? ($_G['setting']['adminemail']?$_G['setting']['adminemail']:$_G['setting']['mail']['from']) : $from;
|
||||
} else {
|
||||
$email_from = $from == '' ? '=?'.CHARSET.'?B?'.base64_encode($_G['setting']['sitename'])."?= <".$_G['setting']['adminemail'].">" : (preg_match('/^(.+?) \<(.+?)\>$/',$from, $mats) ? '=?'.CHARSET.'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $from);
|
||||
|
||||
$email_from = $_G['setting']['mail']['from'];
|
||||
//$email_from = (empty($from) ? '=?'.CHARSET.'?B?'.base64_encode($_G['setting']['sitename'])."?= <".$_G['setting']['adminemail'].">" : (preg_match('/^(.+?)\s+\<(.+?)\>$/',$from, $mats) ? '=?'.CHARSET.'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $from));
|
||||
}
|
||||
|
||||
$email_to = preg_match('/^(.+?) \<(.+?)\>$/',$toemail, $mats) ? ($mailusername ? '=?'.CHARSET.'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $mats[2]) : $toemail;
|
||||
$email_to = preg_match('/^(.+?)\s*\<(.+?)\>$/',$toemail, $mats) ? ($mailusername ? '=?'.CHARSET.'?B?'.base64_encode($mats[1])."?= <$mats[2]>" : $mats[2]) : $toemail;
|
||||
|
||||
$email_subject = '=?'.CHARSET.'?B?'.base64_encode(preg_replace("/[\r|\n]/", '', '['.$_G['setting']['sitename'].'] '.$subject)).'?=';
|
||||
|
||||
@@ -65,7 +67,7 @@ EOT;
|
||||
} elseif($_G['setting']['mail']['mailsend'] == 2) {
|
||||
|
||||
if(!$fp = fsocketopen($_G['setting']['mail']['server'], $_G['setting']['mail']['port'], $errno, $errstr, 30)) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) CONNECT - Unable to connect to the SMTP server", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) CONNECT - Unable to connect to the SMTP server", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -73,14 +75,14 @@ EOT;
|
||||
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != '220') {
|
||||
runlog('SMTP', "{$_G[setting][mail][server]}:{$_G[setting][mail][port]} CONNECT - $lastmessage", 0);
|
||||
runlog('SMTP', "{$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']} CONNECT - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
fputs($fp, ($_G['setting']['mail']['auth'] ? 'EHLO' : 'HELO')." uchome\r\n");
|
||||
fputs($fp, ($_G['setting']['mail']['auth'] ? 'EHLO' : 'HELO')." pichome\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 220 && substr($lastmessage, 0, 3) != 250) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) HELO/EHLO - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) HELO/EHLO - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -90,26 +92,25 @@ EOT;
|
||||
}
|
||||
$lastmessage = fgets($fp, 512);
|
||||
}
|
||||
|
||||
if($_G['setting']['mail']['auth']) {
|
||||
fputs($fp, "AUTH LOGIN\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 334) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) AUTH LOGIN - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) AUTH LOGIN - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
fputs($fp, base64_encode($_G['setting']['mail']['auth_username'])."\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 334) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) USERNAME - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) USERNAME - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
fputs($fp, base64_encode($_G['setting']['mail']['auth_password'])."\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 235) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) PASSWORD - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['server']}) PASSWORD - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -122,7 +123,7 @@ EOT;
|
||||
fputs($fp, "MAIL FROM: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $email_from).">\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 250) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) MAIL FROM - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) MAIL FROM - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@@ -132,14 +133,14 @@ EOT;
|
||||
if(substr($lastmessage, 0, 3) != 250) {
|
||||
fputs($fp, "RCPT TO: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $toemail).">\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) RCPT TO - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) RCPT TO - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
fputs($fp, "DATA\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 354) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) DATA - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) DATA - $lastmessage", 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -157,7 +158,7 @@ EOT;
|
||||
fputs($fp, "$email_message\r\n.\r\n");
|
||||
$lastmessage = fgets($fp, 512);
|
||||
if(substr($lastmessage, 0, 3) != 250) {
|
||||
runlog('SMTP', "({$_G[setting][mail][server]}:{$_G[setting][mail][port]}) END - $lastmessage", 0);
|
||||
runlog('SMTP', "({$_G['setting']['mail']['server']}:{$_G['setting']['mail']['port']}) END - $lastmessage", 0);
|
||||
}
|
||||
fputs($fp, "QUIT\r\n");
|
||||
|
||||
|
||||
@@ -1,220 +1,94 @@
|
||||
<?php
|
||||
|
||||
if(!defined('IN_OAOOA')) {
|
||||
exit('Access Denied');
|
||||
if (!defined('IN_OAOOA')) {
|
||||
exit('Access Denied');
|
||||
}
|
||||
|
||||
function dshowmessage($message, $url_forward = '', $values = array(), $extraparam = array(), $custom = 0) {
|
||||
global $_G, $show_message;
|
||||
$_G['messageparam'] = func_get_args();
|
||||
|
||||
if($extraparam['break']) {
|
||||
return;
|
||||
}
|
||||
$_G['inshowmessage'] = true;
|
||||
function dshowmessage($message, $url_forward = '', $values = array(), $extraparam = array(), $custom = 0)
|
||||
{
|
||||
global $_G, $show_message;
|
||||
$_G['messageparam'] = func_get_args();
|
||||
|
||||
$param = array(
|
||||
'header' => false,
|
||||
'timeout' => null,
|
||||
'refreshtime' => null,
|
||||
'closetime' => null,
|
||||
'locationtime' => null,
|
||||
'alert' => null,
|
||||
'return' => false,
|
||||
'redirectmsg' => 0,
|
||||
'msgtype' => 1,
|
||||
'showmsg' => true,
|
||||
'showdialog' => false,
|
||||
'login' => false,
|
||||
'handle' => false,
|
||||
'extrajs' => '',
|
||||
'striptags' => false,
|
||||
);
|
||||
if ($extraparam['break']) {
|
||||
return;
|
||||
}
|
||||
$_G['inshowmessage'] = true;
|
||||
|
||||
$navtitle = lang('board_message');
|
||||
$param = array(
|
||||
'header' => false,
|
||||
'timeout' => null,
|
||||
'refreshtime' => null,
|
||||
'alert' => null,
|
||||
'login' => false,
|
||||
'location'=>false,
|
||||
'extrajs' => '',
|
||||
);
|
||||
|
||||
if($custom) {
|
||||
$alerttype = 'alert_info';
|
||||
$show_message = $message;
|
||||
include template('common/showmessage');
|
||||
dexit();
|
||||
}
|
||||
$navtitle = lang('board_message');
|
||||
|
||||
define('CACHE_FORBIDDEN', TRUE);
|
||||
$_G['setting']['msgforward'] = @dunserialize($_G['setting']['msgforward']);
|
||||
$handlekey = $leftmsg = '';
|
||||
if ($custom) {
|
||||
$alerttype = 'alert_info';
|
||||
$show_message = $message;
|
||||
include template('common/showmessage');
|
||||
dexit();
|
||||
}
|
||||
define('CACHE_FORBIDDEN', TRUE);
|
||||
if ($url_forward) {
|
||||
$param['timeout'] = true;
|
||||
}
|
||||
foreach ($extraparam as $k => $v) {
|
||||
$param[$k] = $v;
|
||||
}
|
||||
$timedefault = intval($param['refreshtime'] === null ? $_G['setting']['refreshtime'] : $param['refreshtime']);
|
||||
if ($param['timeout'] !== null) {
|
||||
$refreshsecond = !empty($timedefault) ? $timedefault : 3;
|
||||
$refreshtime = $refreshsecond * 1000;
|
||||
} else {
|
||||
$refreshtime = $refreshsecond = 0;
|
||||
}
|
||||
if ($param['login'] && $_G['uid'] || $url_forward) {
|
||||
$param['login'] = false;
|
||||
}
|
||||
//参数 header PHP跳转
|
||||
$param['header'] = $url_forward && $param['header'] ? true : false;
|
||||
if ($param['header']) {
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
dheader("location: " . str_replace('&', '&', $url_forward));
|
||||
dexit();
|
||||
}
|
||||
//location js跳转
|
||||
$url_forward_js = addslashes(str_replace('\\', '%27', $url_forward));
|
||||
if ($param['location'] && !empty($_G['inajax'])) {
|
||||
include template('common/header_ajax');
|
||||
echo '<script type="text/javascript" reload="1">window.location.href=\'' . $url_forward_js . '\';</script>';
|
||||
include template('common/footer_ajax');
|
||||
dexit();
|
||||
}
|
||||
//转登录
|
||||
if ($param['login']) {
|
||||
dheader('location: user.php?mod=login' . ($url_forward ? '&referer=' . urlencode($url_forward) : ''));
|
||||
dexit();
|
||||
}
|
||||
|
||||
/*if(defined('IN_MOBILE')) {
|
||||
unset($extraparam['showdialog']);
|
||||
unset($extraparam['closetime']);
|
||||
unset($extraparam['extrajs']);
|
||||
$vars = explode(':', $message);
|
||||
if (count($vars) == 2) {
|
||||
$show_message = lang($vars[1], $values, null, $vars[0]);
|
||||
} else {
|
||||
$show_message = lang($message, $values);
|
||||
}
|
||||
|
||||
if(!$url_forward && dreferer() && IN_MOBILE == 1) {
|
||||
$url_forward = $referer = dreferer();
|
||||
}
|
||||
if(!empty($url_forward) && strpos($url_forward, 'mobile') === false) {
|
||||
$url_forward_arr = explode("#", $url_forward);
|
||||
if(strpos($url_forward_arr[0], '?') !== false) {
|
||||
$url_forward_arr[0] = $url_forward_arr[0].'&mobile='.IN_MOBILE;
|
||||
} else {
|
||||
$url_forward_arr[0] = $url_forward_arr[0].'?mobile='.IN_MOBILE;
|
||||
}
|
||||
$url_forward = implode("#", $url_forward_arr);
|
||||
}
|
||||
}*/
|
||||
if ($param['alert'] === null) {
|
||||
$alerttype = $url_forward ? (preg_match('/\_(succeed|success|成功)$/', $message) ? 'alert_right' : 'alert_info') : 'alert_info';
|
||||
} else {
|
||||
$alerttype = 'alert_' . $param['alert'];
|
||||
}
|
||||
|
||||
|
||||
if(empty($_G['inajax']) && (!empty($_GET['quickforward']) || $_G['setting']['msgforward']['quick'] && empty($extraparam['clean_msgforward']) && $_G['setting']['msgforward']['messages'] && @in_array($message, $_G['setting']['msgforward']['messages']))) {
|
||||
$param['header'] = true;
|
||||
}
|
||||
$_GET['handlekey'] = !empty($_GET['handlekey']) && preg_match('/^\w+$/', $_GET['handlekey']) ? $_GET['handlekey'] : '';
|
||||
if(!empty($_G['inajax'])) {
|
||||
$handlekey = $_GET['handlekey'] = !empty($_GET['handlekey']) ? dhtmlspecialchars($_GET['handlekey']) : '';
|
||||
$param['handle'] = true;
|
||||
}
|
||||
if(!empty($_G['inajax'])) {
|
||||
$param['msgtype'] = empty($_GET['ajaxmenu']) && (empty($_POST) || !empty($_GET['nopost'])) ? 2 : 3;
|
||||
}
|
||||
if($url_forward) {
|
||||
$param['timeout'] = true;
|
||||
if($param['handle'] && !empty($_G['inajax'])) {
|
||||
$param['showmsg'] = false;
|
||||
}
|
||||
}
|
||||
|
||||
foreach($extraparam as $k => $v) {
|
||||
$param[$k] = $v;
|
||||
}
|
||||
if(array_key_exists('set', $extraparam)) {
|
||||
$setdata = array('1' => array('msgtype' => 3));
|
||||
if($setdata[$extraparam['set']]) {
|
||||
foreach($setdata[$extraparam['set']] as $k => $v) {
|
||||
$param[$k] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$timedefault = intval($param['refreshtime'] === null ? $_G['setting']['refreshtime'] : $param['refreshtime']);
|
||||
if($param['timeout'] !== null) {
|
||||
$refreshsecond = !empty($timedefault) ? $timedefault : 3;
|
||||
$refreshtime = $refreshsecond * 1000;
|
||||
} else {
|
||||
$refreshtime = $refreshsecond = 0;
|
||||
}
|
||||
|
||||
if($param['login'] && $_G['uid'] || $url_forward) {
|
||||
$param['login'] = false;
|
||||
}
|
||||
|
||||
$param['header'] = $url_forward && $param['header'] ? true : false;
|
||||
|
||||
if($_GET['ajaxdata'] === 'json') {
|
||||
$param['header'] = '';
|
||||
}
|
||||
|
||||
if($param['header']) {
|
||||
header("HTTP/1.1 301 Moved Permanently");
|
||||
dheader("location: ".str_replace('&', '&', $url_forward));
|
||||
}
|
||||
$url_forward_js = addslashes(str_replace('\\', '%27', $url_forward));
|
||||
if($param['location'] && !empty($_G['inajax'])) {
|
||||
include template('common/header_ajax');
|
||||
echo '<script type="text/javascript" reload="1">window.location.href=\''.$url_forward_js.'\';</script>';
|
||||
include template('common/footer_ajax');
|
||||
dexit();
|
||||
}
|
||||
|
||||
$vars = explode(':', $message);
|
||||
if(count($vars) == 2) {
|
||||
$show_message = lang($vars[1], $values,null,$vars[0]);
|
||||
} else {
|
||||
$show_message = lang($message, $values);
|
||||
}
|
||||
|
||||
if(isset($_GET['ajaxdata'])) {
|
||||
if($_GET['ajaxdata'] === 'json') {
|
||||
helper_output::json(array('message' => $show_message, 'data' => $values));
|
||||
} else if($_GET['ajaxdata'] === 'html') {
|
||||
helper_output::html($show_message);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($param['msgtype'] == 2 && $param['login']) {
|
||||
dheader('location: user.php?mod=login');
|
||||
}
|
||||
|
||||
$show_jsmessage = str_replace("'", "\\'", $param['striptags'] ? strip_tags($show_message) : $show_message);
|
||||
|
||||
if((!$param['showmsg'] || $param['showid']) && !defined('IN_MOBILE') ) {
|
||||
$show_message = '';
|
||||
}
|
||||
|
||||
$allowreturn = !$param['timeout'] && !$url_forward && !$param['login'] || $param['return'] ? true : false;
|
||||
if($param['alert'] === null) {
|
||||
$alerttype = $url_forward ? (preg_match('/\_(succeed|success|成功)$/', $message) ? 'alert_right' : 'alert_info') : ($allowreturn ? 'alert_error' : 'alert_info');
|
||||
} else {
|
||||
$alerttype = 'alert_'.$param['alert'];
|
||||
}
|
||||
|
||||
$extra = '';
|
||||
if($param['showid']) {
|
||||
$extra .= 'if($(\''.$param['showid'].'\')) {$(\''.$param['showid'].'\').innerHTML = \''.$show_jsmessage.'\';}';
|
||||
}
|
||||
if($param['handle']) {
|
||||
$valuesjs = $comma = $subjs = '';
|
||||
foreach($values as $k => $v) {
|
||||
$v = daddslashes($v);
|
||||
if(is_array($v)) {
|
||||
$subcomma = '';
|
||||
foreach ($v as $subk => $subv) {
|
||||
$subjs .= $subcomma.'\''.$subk.'\':\''.$subv.'\'';
|
||||
$subcomma = ',';
|
||||
}
|
||||
$valuesjs .= $comma.'\''.$k.'\':{'.$subjs.'}';
|
||||
} else {
|
||||
$valuesjs .= $comma.'\''.$k.'\':\''.$v.'\'';
|
||||
}
|
||||
$comma = ',';
|
||||
}
|
||||
$valuesjs = '{'.$valuesjs.'}';
|
||||
if($url_forward) {
|
||||
$extra .= 'if(typeof succeedhandle_'.$handlekey.'==\'function\') {succeedhandle_'.$handlekey.'(\''.$url_forward_js.'\', \''.$show_jsmessage.'\', '.$valuesjs.');}';
|
||||
} else {
|
||||
$extra .= 'if(typeof errorhandle_'.$handlekey.'==\'function\') {errorhandle_'.$handlekey.'(\''.$show_jsmessage.'\', '.$valuesjs.');}';
|
||||
}
|
||||
}
|
||||
if($param['closetime'] !== null) {
|
||||
$param['closetime'] = $param['closetime'] === true ? $timedefault : $param['closetime'];
|
||||
}
|
||||
if($param['locationtime'] !== null) {
|
||||
$param['locationtime'] = $param['locationtime'] === true ? $timedefault : $param['locationtime'];
|
||||
}
|
||||
if($handlekey) {
|
||||
if($param['showdialog']) {
|
||||
$modes = array('alert_error' => 'alert', 'alert_right' => 'right', 'alert_info' => 'notice');
|
||||
$extra .= 'hideWindow(\''.$handlekey.'\');showDialog(\''.$show_jsmessage.'\', \''.$modes[$alerttype].'\', null, '.($param['locationtime'] !== null ? 'function () { window.location.href =\''.$url_forward_js.'\'; }' : 'null').', 0, null, null, null, null, '.($param['closetime'] ? $param['closetime'] : 'null').', '.($param['locationtime'] ? $param['locationtime'] : 'null').');';
|
||||
$param['closetime'] = null;
|
||||
$st = '';
|
||||
if($param['showmsg']) {
|
||||
$show_message = '';
|
||||
}
|
||||
}
|
||||
if($param['closetime'] !== null) {
|
||||
$extra .= 'setTimeout("hideWindow(\''.$handlekey.'\')", '.($param['closetime'] * 1000).');';
|
||||
}
|
||||
} else {
|
||||
$st = $param['locationtime'] !== null ?'setTimeout("window.location.href =\''.$url_forward_js.'\';", '.($param['locationtime'] * 1000).');' : '';
|
||||
}
|
||||
if(!$extra && $param['timeout']) {
|
||||
$extra .= 'setTimeout("window.location.href =\''.$url_forward_js.'\';", '.$refreshtime.');';
|
||||
}
|
||||
$show_message .= $extra ? '<script type="text/javascript" reload="1">'.$extra.$st.'</script>' : '';
|
||||
$show_message .= $param['extrajs'] ? $param['extrajs'] : '';
|
||||
//print_r($param);exit($show_message);
|
||||
include template('common/showmessage');
|
||||
|
||||
exit();
|
||||
$extra = '';
|
||||
if ($param['timeout']) {
|
||||
$extra .= 'setTimeout("window.location.href =\'' . $url_forward_js . '\';", ' . $refreshtime . ');';
|
||||
}
|
||||
$show_message .= $extra ? '<script type="text/javascript" reload="1">' . $extra . '</script>' : '';
|
||||
$show_message .= $param['extrajs'] ? $param['extrajs'] : '';
|
||||
include template('common/showmessage');
|
||||
exit();
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user