From f8e181f5dccebeb700d9bec7aa58869e1410bed8 Mon Sep 17 00:00:00 2001 From: xushubieli Date: Wed, 30 Mar 2022 15:06:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/system/helpers/util.helper.php | 16 ++++----- src/system/libraries/agent.class.php | 2 +- src/system/libraries/mobiledetect.class.php | 4 +-- src/theme/plus/download_links_templet.htm | 10 +++--- src/theme/plus/flink-add.htm | 10 +++--- src/theme/plus/flink-list.htm | 10 +++--- src/theme/plus/heightsearch.htm | 6 ++-- src/theme/plus/list_diyform.htm | 10 +++--- src/theme/plus/plus_footer.htm | 4 +-- src/theme/plus/plus_header.htm | 5 ++- src/theme/plus/post_diyform.htm | 10 +++--- src/theme/plus/recommend.htm | 6 ++-- src/theme/plus/view_diyform.htm | 10 +++--- src/theme/plus/view_msg.htm | 10 +++--- src/theme/plus/vote.htm | 10 +++--- src/theme/templets/header.htm | 3 +- src/user/ajax_loginsta.php | 7 ---- src/user/album_add.php | 16 +-------- src/user/archives_add.php | 24 +++---------- src/user/archives_do.php | 18 ++-------- src/user/archives_edit.php | 36 +++++++------------ src/user/archives_sg_add.php | 32 +++-------------- src/user/archives_sg_edit.php | 21 ++---------- src/user/article_add.php | 24 ++----------- src/user/article_edit.php | 13 ++----- src/user/buy.php | 2 +- src/user/buy_action.php | 24 ++----------- src/user/check_card.php | 9 +---- src/user/config.php | 23 +++---------- src/user/content_list.php | 19 ++++------- src/user/edit_baseinfo.php | 12 +------ src/user/inc/archives_check.php | 15 ++------ src/user/inc/archives_check_edit.php | 14 ++------ src/user/inc/inc_archives_functions.php | 22 ++---------- src/user/inc/inc_batchup.php | 36 ++++++------------- src/user/inc/inc_catalog_options.php | 5 +-- src/user/inc/inc_list_functions.php | 10 ++---- src/user/inc/inc_pwd_functions.php | 8 ++--- src/user/index.php | 19 +++-------- src/user/index_do.php | 38 +++++++-------------- src/user/login.php | 2 +- src/user/mypay.php | 3 +- src/user/mystow.php | 4 +-- src/user/operation.php | 5 ++- src/user/pm.php | 5 +-- src/user/resetpassword.php | 11 +----- src/user/shops_orders.php | 5 ++- src/user/shops_point.php | 8 ++--- src/user/shops_products.php | 9 ++--- src/user/soft_add.php | 35 ++++--------------- src/user/soft_edit.php | 20 +++-------- src/user/templets/album_add.htm | 12 +++---- src/user/templets/album_edit.htm | 14 ++++---- src/user/templets/archives_add.htm | 10 +++--- src/user/templets/archives_edit.htm | 10 +++--- src/user/templets/archives_sg_add.htm | 10 +++--- src/user/templets/archives_sg_edit.htm | 10 +++--- src/user/templets/article_add.htm | 10 +++--- src/user/templets/article_edit.htm | 12 +++---- src/user/templets/buy.htm | 10 +++--- src/user/templets/buy_action_payment.htm | 12 +++---- src/user/templets/content_list.htm | 10 +++--- src/user/templets/content_sg_list.htm | 10 +++--- src/user/templets/edit_baseinfo.htm | 14 ++++---- src/user/templets/edit_email.htm | 10 +++--- src/user/templets/edit_face.htm | 10 +++--- src/user/templets/footer.htm | 15 ++++---- src/user/templets/header.htm | 5 ++- src/user/templets/index-notlogin.htm | 14 ++++---- src/user/templets/index.htm | 12 +++---- src/user/templets/info.htm | 1 - src/user/templets/login.htm | 14 ++++---- src/user/templets/mypay.htm | 10 +++--- src/user/templets/mystow.htm | 10 +++--- src/user/templets/operation.htm | 10 +++--- src/user/templets/pm-main.htm | 14 ++++---- src/user/templets/reg-new.htm | 14 ++++---- src/user/templets/resetpassword.htm | 16 ++++----- src/user/templets/resetpassword2.htm | 12 +++---- src/user/templets/resetpassword3.htm | 16 ++++----- src/user/templets/shops_action_payment.htm | 12 +++---- src/user/templets/shops_orders.htm | 11 +++--- src/user/templets/shops_products.htm | 10 +++--- src/user/templets/soft_add.htm | 10 +++--- src/user/templets/soft_edit.htm | 12 +++---- src/user/templets/top.htm | 1 - src/user/templets/top_login.htm | 5 ++- 87 files changed, 364 insertions(+), 704 deletions(-) diff --git a/src/system/helpers/util.helper.php b/src/system/helpers/util.helper.php index de740de2..476ed4fd 100755 --- a/src/system/helpers/util.helper.php +++ b/src/system/helpers/util.helper.php @@ -68,7 +68,7 @@ if (!function_exists('GetCurUrl')) { if (empty($_SERVER["QUERY_STRING"])) { $nowurl = $scriptName; } else { - $nowurl = $scriptName . "?" . $_SERVER["QUERY_STRING"]; + $nowurl = $scriptName."?".$_SERVER["QUERY_STRING"]; } } return $nowurl; @@ -125,7 +125,7 @@ if (!function_exists('GetEditor')) { function GetEditor($fname, $fvalue, $nheight = "350", $etype = "Basic", $gtype = "print", $isfullpage = "FALSE", $bbcode = false) { if (!function_exists('SpGetEditor')) { - require_once(DEDEINC . "/inc/inc_fun_funAdmin.php"); + require_once(DEDEINC."/inc/inc_fun_funAdmin.php"); } return SpGetEditor($fname, $fvalue, $nheight, $etype, $gtype, $isfullpage, $bbcode); } @@ -158,7 +158,7 @@ if (!function_exists('GetTemplets')) { if (!function_exists('GetSysTemplets')) { function GetSysTemplets($filename) { - return GetTemplets($GLOBALS['cfg_basedir'] . $GLOBALS['cfg_templets_dir'] . '/system/' . $filename); + return GetTemplets($GLOBALS['cfg_basedir'].$GLOBALS['cfg_templets_dir'].'/system/'.$filename); } } /** @@ -170,7 +170,7 @@ if (!function_exists('GetNewInfo')) { function GetNewInfo() { if (!function_exists('SpGetNewInfo')) { - require_once(DEDEINC . "/inc/inc_fun_funAdmin.php"); + require_once(DEDEINC."/inc/inc_fun_funAdmin.php"); } return SpGetNewInfo(); } @@ -191,7 +191,7 @@ if (!function_exists('dd2char')) { $nn = ''; for ($i = 0; $i < $slen; $i++) { if (isset($ddnum[$i + 1])) { - $n = $ddnum[$i] . $ddnum[$i + 1]; + $n = $ddnum[$i].$ddnum[$i + 1]; if (($n > 96 && $n < 123) || ($n > 64 && $n < 91)) { $okdd .= chr($n); $i++; @@ -224,7 +224,7 @@ if (!function_exists('json_encode')) { } else if (defined($value) && $value === NULL) { $value = strval(constant((string)$value)); } else if (is_string($value)) { - $value = '"' . addslashes($value) . '"'; + $value = '"'.addslashes($value).'"'; } return $value; } @@ -248,9 +248,9 @@ if (!function_exists('json_encode')) { foreach ($data as $key => $val) { if (!is_NULL($val)) { if ($assoc) { - $json .= "\"$key\":" . json_encode($val) . ","; + $json .= "\"$key\":".json_encode($val).","; } else { - $json .= json_encode($val) . ","; + $json .= json_encode($val).","; } } } diff --git a/src/system/libraries/agent.class.php b/src/system/libraries/agent.class.php index 8ae1711d..1e7b1ee4 100644 --- a/src/system/libraries/agent.class.php +++ b/src/system/libraries/agent.class.php @@ -390,7 +390,7 @@ class Agent extends Mobile_Detect } elseif (is_array($merged[$key])) { $merged[$key][] = $value; } else { - $merged[$key] .= '|' . $value; + $merged[$key] .= '|'.$value; } } } diff --git a/src/system/libraries/mobiledetect.class.php b/src/system/libraries/mobiledetect.class.php index b5ae615c..188fe654 100644 --- a/src/system/libraries/mobiledetect.class.php +++ b/src/system/libraries/mobiledetect.class.php @@ -964,7 +964,7 @@ class Mobile_Detect } // test the alternate, too - $altHeader = 'HTTP_' . $header; + $altHeader = 'HTTP_'.$header; //Test both the regular and the HTTP_ prefix if (isset($this->httpHeaders[$header])) { @@ -1061,7 +1061,7 @@ class Mobile_Detect $this->userAgent = null; foreach ($this->getUaHttpHeaders() as $altHeader) { if (false === empty($this->httpHeaders[$altHeader])) { // @todo: should use getHttpHeader(), but it would be slow. (Serban) - $this->userAgent .= $this->httpHeaders[$altHeader] . " "; + $this->userAgent .= $this->httpHeaders[$altHeader]." "; } } diff --git a/src/theme/plus/download_links_templet.htm b/src/theme/plus/download_links_templet.htm index b8135ed8..d9fdd717 100644 --- a/src/theme/plus/download_links_templet.htm +++ b/src/theme/plus/download_links_templet.htm @@ -4,11 +4,11 @@ <?php echo $title; ?>_下载地址列表_<?php echo $cfg_webname;?> - - - - - + + + + +