| @@ -33,7 +33,7 @@ if ($dopost == "save") { | |||||
| $query = "INSERT INTO `#@__myadtype` (typename) VALUES ('{$pname_new}');"; | $query = "INSERT INTO `#@__myadtype` (typename) VALUES ('{$pname_new}');"; | ||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| ShowMsg("成功更新广告分类列表", 'adtype_main.php'); | ShowMsg("成功更新广告分类列表", 'adtype_main.php'); | ||||
| exit; | exit; | ||||
| } | } | ||||
| @@ -32,7 +32,7 @@ else if ($dopost == 'delsel') { | |||||
| require_once(dirname(__FILE__)."/inc/inc_batchup.php"); | require_once(dirname(__FILE__)."/inc/inc_batchup.php"); | ||||
| if (empty($titles)) { | if (empty($titles)) { | ||||
| header("Content-Type: text/html; charset={$cfg_ver_lang}"); | header("Content-Type: text/html; charset={$cfg_ver_lang}"); | ||||
| echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset={$cfg_ver_lang}\">\r\n"; | |||||
| echo "<meta charset={$cfg_ver_lang}\">\r\n"; | |||||
| echo "没有指定删除的文档"; | echo "没有指定删除的文档"; | ||||
| exit(); | exit(); | ||||
| } | } | ||||
| @@ -24,7 +24,7 @@ elseif ($dopost == 'make') { | |||||
| $ctid = $cardtype; | $ctid = $cardtype; | ||||
| $startid++; | $startid++; | ||||
| $endid = $startid + $mnum; | $endid = $startid + $mnum; | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| for (; $startid < $endid; $startid++) { | for (; $startid < $endid; $startid++) { | ||||
| $cardid = $snprefix.$startid.'-'; | $cardid = $snprefix.$startid.'-'; | ||||
| for ($p = 0; $p < $pwdgr; $p++) { | for ($p = 0; $p < $pwdgr; $p++) { | ||||
| @@ -42,7 +42,7 @@ if ($dopost == "save") { | |||||
| $query = "INSERT INTO `#@__moneycard_type` (num,pname,money) VALUES ('{$num_new}','{$pname_new}','{$money_new}');"; | $query = "INSERT INTO `#@__moneycard_type` (num,pname,money) VALUES ('{$num_new}','{$pname_new}','{$money_new}');"; | ||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| echo "<script>alert('成功更新点卡产品分类表');</script>"; | echo "<script>alert('成功更新点卡产品分类表');</script>"; | ||||
| } | } | ||||
| require_once(DEDEADMIN."/templets/cards_type.htm"); | require_once(DEDEADMIN."/templets/cards_type.htm"); | ||||
| @@ -34,7 +34,7 @@ if ($dopost == "save") { | |||||
| $query = "INSERT INTO `#@__flinktype` (typename) VALUES ('{$pname_new}');"; | $query = "INSERT INTO `#@__flinktype` (typename) VALUES ('{$pname_new}');"; | ||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| echo "<script> alert('成功更新友情链接网站分类表'); </script>"; | echo "<script> alert('成功更新友情链接网站分类表'); </script>"; | ||||
| } | } | ||||
| include DedeInclude('templets/friendlink_type.htm'); | include DedeInclude('templets/friendlink_type.htm'); | ||||
| @@ -16,7 +16,7 @@ $ci = " aid >= $startid "; | |||||
| if (!empty($endid) && $endid >= $startid) { | if (!empty($endid) && $endid >= $startid) { | ||||
| $ci .= " And aid <= $endid "; | $ci .= " And aid <= $endid "; | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| $dsql->SetQuery("SELECT aid FROM `#@__freelist` WHERE $ci"); | $dsql->SetQuery("SELECT aid FROM `#@__freelist` WHERE $ci"); | ||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| while ($row = $dsql->GetArray()) { | while ($row = $dsql->GetArray()) { | ||||
| @@ -38,7 +38,7 @@ if ($dopost == "save") { | |||||
| $query = "INSERT INTO `#@__member_type` (`rank`,pname,money,exptime) VALUES ('{$rank_new}','{$pname_new}','{$money_new}','{$exptime_new}');"; | $query = "INSERT INTO `#@__member_type` (`rank`,pname,money,exptime) VALUES ('{$rank_new}','{$pname_new}','{$money_new}','{$exptime_new}');"; | ||||
| $dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
| } | } | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| echo "<script> alert('成功更新会员产品分类表'); </script>"; | echo "<script> alert('成功更新会员产品分类表'); </script>"; | ||||
| } | } | ||||
| $arcranks = array(); | $arcranks = array(); | ||||
| @@ -30,7 +30,7 @@ if ($action == 'get_qrcode') { | |||||
| $qrcode = new DedeQrcode; | $qrcode = new DedeQrcode; | ||||
| $qrcode->generate($params); | $qrcode->generate($params); | ||||
| } else { | } else { | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| $dtp = new DedeTemplate(); | $dtp = new DedeTemplate(); | ||||
| $tplfile = DEDETEMPLATE.'/plus/qrcode.htm'; | $tplfile = DEDETEMPLATE.'/plus/qrcode.htm'; | ||||
| $dtp->LoadTemplate($tplfile); | $dtp->LoadTemplate($tplfile); | ||||
| @@ -488,7 +488,7 @@ class Archives | |||||
| $this->Fields['flag'] = empty($this->Fields['flag']) ? "" : $this->Fields['flag']; | $this->Fields['flag'] = empty($this->Fields['flag']) ? "" : $this->Fields['flag']; | ||||
| if (preg_match("#j#", $this->Fields['flag']) && $this->Fields['redirecturl'] != '') { | if (preg_match("#j#", $this->Fields['flag']) && $this->Fields['redirecturl'] != '') { | ||||
| if ($GLOBALS['cfg_jump_once'] == 'N') { | if ($GLOBALS['cfg_jump_once'] == 'N') { | ||||
| $pageHtml = "<html>\r\n<head>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=".$GLOBALS['cfg_soft_lang']."\">\r\n<title>".$this->Fields['title']."</title>\r\n"; | |||||
| $pageHtml = "<html>\r\n<head>\r\n<meta charset=".$GLOBALS['cfg_soft_lang']."\">\r\n<title>".$this->Fields['title']."</title>\r\n"; | |||||
| $pageHtml .= "<meta http-equiv=\"refresh\" content=\"3;URL=".$this->Fields['redirecturl']."\">\r\n</head>\r\n<body>\r\n"; | $pageHtml .= "<meta http-equiv=\"refresh\" content=\"3;URL=".$this->Fields['redirecturl']."\">\r\n</head>\r\n<body>\r\n"; | ||||
| $pageHtml .= "现在正在转向:".$this->Fields['title'].",请稍候<br><br>\r\n转向文档简介:".$this->Fields['description']."\r\n</body>\r\n</html>\r\n"; | $pageHtml .= "现在正在转向:".$this->Fields['title'].",请稍候<br><br>\r\n转向文档简介:".$this->Fields['description']."\r\n</body>\r\n</html>\r\n"; | ||||
| echo $pageHtml; | echo $pageHtml; | ||||
| @@ -225,7 +225,7 @@ if (isset($GLOBALS['TotalResult'])) { | |||||
| } | } | ||||
| if (!isset($cfg_NotPrintHead)) { | if (!isset($cfg_NotPrintHead)) { | ||||
| if (PHP_SAPI != 'cli') { | if (PHP_SAPI != 'cli') { | ||||
| header("Content-Type: text/html; charset={$cfg_soft_lang}"); | |||||
| header("charset={$cfg_soft_lang}"); | |||||
| } | } | ||||
| } | } | ||||
| //自动加载类库处理 | //自动加载类库处理 | ||||