fix new gm domain

master
LMR 8 months ago
parent 229dc18b46
commit 7fe372f556

@ -397,7 +397,7 @@ $config['site'] = [
'jh' => ['site_code' => 'jh', 'site_id' => 186, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.japanhighlights.com', 'site_url' => 'https://www.japanhighlights.com', 'site_sitemap' => '', 'site_authors' => ['X', 'sfx'], 'site_user' => [',ycc,sfx,X,']],
'htravel' => ['site_code' => 'htravel', 'site_id' => 187, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.highlightstravel.com', 'site_url' => 'https://www.highlightstravel.com', 'site_sitemap' => '', 'site_authors' => ['X', 'sfx'], 'site_user' => [',ycc,sfx,X,']],
'gh' => ['site_code' => 'gh', 'site_id' => 163, 'site_lgc' => '1', 'sitemap_name' => '', 'site_image_url' => 'https://images.globalhighlights.com', 'site_url' => 'https://www.globalhighlights.com', 'site_sitemap' => '', 'site_authors' => ['X', 'sfx'], 'site_user' => [',ycc,sfx,X,']],
'gm' => ['site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'https://www.chinarundreisen.com', 'site_image_url' => '//bilder.chinarundreisen.com', 'site_authors' => ['DX', 'X', 'K', 'Lan', 'lmr', 'zyh', 'ZYHL', 'TDJ'], 'site_user' => ',ycc,lmr,B,zyh,DX,X,K,htc,zm,bhn,Lan,Tony,zyh,J,v,ZYHL,TDJ,LYY,shw,'],
'gm' => ['site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'https://www.chinahighlightstravel.de', 'site_image_url' => '//images.chinahighlightstravel.de', 'site_authors' => ['DX', 'X', 'K', 'Lan', 'lmr', 'zyh', 'ZYHL', 'TDJ'], 'site_user' => ',ycc,lmr,B,zyh,DX,X,K,htc,zm,bhn,Lan,Tony,zyh,J,v,ZYHL,TDJ,LYY,shw,'],
'gh_gm' => ['site_code' => 'gh_gm', 'site_id' => 178, 'site_lgc' => '4', 'site_url' => 'https://www.globalhighlights.de', 'site_image_url' => '//www.globalhighlights.de', 'site_authors' => ['DX', 'X', 'K', 'Lan', 'lmr', 'zyh', 'ZYHL', 'TDJ'], 'site_user' => ',ycc,lmr,B,zyh,DX,X,K,htc,zm,bhn,Lan,Tony,zyh,J,v,ZYHL,TDJ,LYY,shw,'],
'vc' => ['site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'https://www.chinahighlights.fr', 'site_image_url' => '//images.chinahighlights.fr', 'site_authors' => ['JE', 'kq', 'lya', 'lyz', 'zyh'], 'site_user' => ',ycc,lmr, zyh,JE,htc,kq,lya,bhn,Tony,zyh,B,J,lyz,LYY,'],
'gh_vc' => ['site_code' => 'gh_vc', 'site_id' => 180, 'site_lgc' => '5', 'site_url' => 'https://www.globalhighlights.fr', 'site_image_url' => '//www.globalhighlights.fr', 'site_authors' => ['JE', 'kq', 'lya', 'lyz', 'zyh'], 'site_user' => ',ycc,lmr, zyh,JE,htc,kq,lya,bhn,Tony,zyh,B,J,lyz,LYY,'],
@ -450,7 +450,7 @@ $config['cache']['gh_it']['cache_path'] = 'D:\wwwcache-intl\globalhighlights.it
//静态文件站点域名
$config['cache']['jp']['site_url'] = 'https://www.arachina.com';
$config['cache']['gm']['site_url'] = 'https://www.chinarundreisen.com';
$config['cache']['gm']['site_url'] = 'https://www.chinahighlightstravel.de';
$config['cache']['vc']['site_url'] = 'https://www.chinahighlights.fr';
$config['cache']['vac']['site_url'] = 'https://www.chinahighlights.es';
$config['cache']['ru']['site_url'] = 'https://www.chinahighlights.ru';
@ -534,7 +534,7 @@ $config['access_super_manage'] = ['ycc', 'lmr', 'lyj', 'rz', 'zp'];
$config['css_source_cht'] = 'https://data.chinahighlights.com/css/min.php?f=/public/css/global.min.css,/css/festival-detail.css';
$config['css_source_ch'] = 'https://data.chinahighlights.com/css/mobile-first.css';
$config['css_source_gm'] = 'https://data.chinarundreisen.com/public/pkg/css/baselAlRkXMnl750806T065919409Z.css';
$config['css_source_gm'] = 'https://data.chinahighlightstravel.de/public/pkg/css/baselAlRkXMnl750806T065919409Z.css';
$config['css_source_vc'] = 'https://data.chinahighlights.fr/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-vc.css';
$config['css_source_vac'] = 'https://data.viaje-a-china.com/information-view/tools/min/?v=20150611&f=/bootstrap/css/bootstrap.min.css,/information/css/base.css,/information/css/r/Header.css,/information/css/r/PublicContent.css,/information/css/r/footergray.css,/information/js/i18n/jquery.ui.datepicker/smoothness/jquery.min.css,/information/css/tip-yellowsimple/tip-yellowsimple.css,/information/css/private-vac.css';

@ -1,7 +1,8 @@
<?php
if (!defined('BASEPATH'))
if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Welcome extends CI_Controller {
@ -18,7 +19,7 @@ class Welcome extends CI_Controller {
}
public function index() {
$data=array();
$data = [];
$data['countryList'] = $this->Area_model->get_country_list();
$data['provinceList'] = $this->Area_model->get_province_list();
$data['city_list'] = $this->Area_model->get_municipalities_list();
@ -35,9 +36,6 @@ class Welcome extends CI_Controller {
return;
}
if ($this->config->item('site_code') == 'pgr') {
$data['countryList'] = $this->Area_model->get_country_list_for_site("'589','645','632','517','31','28','609','630','9','708','709'");
}
@ -47,9 +45,6 @@ class Welcome extends CI_Controller {
$this->load->view('bootstrap/footer');
}
public function search($isrecommend = false) {
//先搜索url如果找到唯一就跳走多于一条的则列出来一条没有的就去搜索信息
$data['keywords'] = $this->input->post('keywords');
@ -163,19 +158,19 @@ class Welcome extends CI_Controller {
public function get_info_backup_id($info_id) {
$last_backup = $this->Logs_model->get_last_backup($info_id);
if (empty($last_backup)) {
$this->echo_json(array(
$this->echo_json([
'status' => 'error',
'logId' => 0,
'datetime' => 0,
'username' => 0
));
'username' => 0,
]);
} else {
$this->echo_json(array(
$this->echo_json([
'status' => 'success',
'logId' => $last_backup->log_id,
'datetime' => $last_backup->log_datetime,
'username' => $last_backup->log_ht_username
));
'username' => $last_backup->log_ht_username,
]);
}
}
@ -186,11 +181,11 @@ class Welcome extends CI_Controller {
libxml_use_internal_errors(true);
$htm_doc->strictErrorChecking = false;
if (empty($information->ic_content)) {
$this->echo_json(array(
$this->echo_json([
'status' => 'error',
'infoId' => $info_id,
'message' => 'info content is empty'
));
'message' => 'info content is empty',
]);
return;
}
$htm_doc->loadHTML(
@ -208,7 +203,7 @@ class Welcome extends CI_Controller {
$a_href = $anchor->getAttribute('href');
echo 'a.href: ' . $a_href . '<br>';
$match_result = array();
$match_result = [];
preg_match('/^http:\/\/www.chinahighlights.com(.*)/', $a_href, $match_result);
$result_count = count($match_result);
if ($result_count == 2) {
@ -223,7 +218,7 @@ class Welcome extends CI_Controller {
public function count_redirect_nofollow() {
$include_redirece_info = $this->Information_model->search_all_text('&t=78002', 2000);
echo 'redirect count: ' . count($include_redirece_info) . '<br/>';
$redirect_nofollow_list = array();
$redirect_nofollow_list = [];
$htm_doc = new DOMDocument();
$htm_doc->encoding = 'UTF-8';
libxml_use_internal_errors(true);
@ -237,7 +232,7 @@ class Welcome extends CI_Controller {
$a_href = $anchor->getAttribute('href');
$a_rel = $anchor->getAttribute('rel');
$match_result = array();
$match_result = [];
preg_match('/.*&t=78002$/', $a_href, $match_result);
$result_count = count($match_result);
if ($result_count > 0 && $a_rel != 'nofollow') {
@ -316,9 +311,9 @@ class Welcome extends CI_Controller {
//批量替换二级域名如图片或者data域名
function replace_hostname($topnum) {
$data = array();
$find_host = 'http://data.chinarundreisen.com/'; //http://bilder.chinarundreisen.com/
$new_host = '//data.chinarundreisen.com/';
$data = [];
$find_host = 'http://data.chinahighlightstravel.de/'; //http://images.chinahighlightstravel.de/
$new_host = '//data.chinahighlightstravel.de/';
$data['all_information'] = $this->Information_model->search_all_text($find_host, $topnum);
if ($data['all_information']) {
foreach ($data['all_information'] as $item) {
@ -335,13 +330,13 @@ class Welcome extends CI_Controller {
private function check_url($subject) {
$result = $subject;
$check_rules = array(
$check_rules = [
'/^\/image\/(.*)/' => '//data.chinahighlights.com/image/',
'/^\/pic\/(.*)/' => '//data.chinahighlights.com/pic/',
'/^\/allpicture\/(.*)/' => '//data.chinahighlights.com/allpicture/',
'/^http:\/\/images.chinahighlights.com(.*)/' => '//images.chinahighlights.com',
'/^http:\/\/data.chinahighlights.com(.*)/' => '//data.chinahighlights.com',
'/^http:\/\/www.chinahighlights.com(.*)/' => '//www.chinahighlights.com');
'/^http:\/\/www.chinahighlights.com(.*)/' => '//www.chinahighlights.com'];
foreach ($check_rules as $pattern => $replace) {
$result = $this->replace_url($pattern, $replace, $result);
@ -351,7 +346,7 @@ class Welcome extends CI_Controller {
private function replace_url($pattern, $replace, $subject) {
$result = $subject;
$match_result = array();
$match_result = [];
preg_match($pattern, $subject, $match_result);
$result_count = count($match_result);
if ($result_count == 2) {
@ -375,8 +370,10 @@ class Welcome extends CI_Controller {
public function set_path($is_id, $parent_path = '') {
$parent_path = str_replace('-', ',', $parent_path);
$parent_path = trim($parent_path, ',');
if ($parent_path != '')
if ($parent_path != '') {
$parent_path .= ',';
}
$this->load->model('Import_model');
$this->Import_model->set_path($is_id, $parent_path);
echo 'ok';

@ -1,27 +1,26 @@
<?php
if (!defined('BASEPATH'))
if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
/*
* AMP的相关方法
*/
class Amplib
{
class Amplib {
var $CI;
public function __construct()
{
public function __construct() {
$this->CI = &get_instance();
$this->CI->load->model('Information_model');
$this->CI->load->model('InfoMetas_model');
$this->CI->load->model('Logs_model');
}
public function edit($ic_id)
{
$data = array();
public function edit($ic_id) {
$data = [];
$data['information'] = $this->CI->Information_model->detail_by_ic_id($ic_id);
if ($data['information'] == FALSE) {
show_404();
@ -39,15 +38,14 @@ class Amplib
$this->CI->load->view('bootstrap3/footer');
}
public function auto_create($ic_id)
{
$data = array();
public function auto_create($ic_id) {
$data = [];
if (strtolower($this->CI->config->item('site_code')) == 'cht') {
$this->CI->Information_model->ic_type = "AND ic.ic_type != 'none'";
}
$data['information'] = $this->CI->Information_model->detail_by_ic_id($ic_id);
if ($data['information'] == FALSE) {
return json_encode(array('result' => 'no', 'data' => '找不到这个页面'));
return json_encode(['result' => 'no', 'data' => '找不到这个页面']);
}
//144.76.185.44:8029
@ -64,7 +62,7 @@ class Amplib
$html_source_url = 'http://169.54.172.35:3588' . $data['information']->ic_url;
break;
case 'gm':
$websitehost = 'https://data.chinarundreisen.com';
$websitehost = 'https://data.chinahighlightstravel.de';
$html_source_url = 'https://www.chinarundreisen.com/' . $data['information']->ic_url;
break;
case 'ct':
@ -78,11 +76,11 @@ class Amplib
//获取网页当前源码,然后发送到信息平台
$html_source = GET_HTTP($html_source_url);
if (! empty($html_source)) {
$post_data = array('websitehost' => $websitehost, 'template_name' => $site_code, 'create_amp' => 'true', 'htmlsource' => $html_source);
$post_data = ['websitehost' => $websitehost, 'template_name' => $site_code, 'create_amp' => 'true', 'htmlsource' => $html_source];
//德语站点走另外一个控制器,其他站点还是走原来的流程
if ($site_code == 'gm') {
if ($data['information']->ic_url == '/massgeschneiderte-china-reisen/') {
return json_encode(array());
return json_encode([]);
} else {
return GET_HTTP(site_url('/apps/htmlcompressor/index_gm/choose_way'), $post_data, 'POST');
}
@ -92,12 +90,11 @@ class Amplib
return GET_HTTP(site_url('/apps/htmlcompressor/index/optimize'), $post_data, 'POST');
}
}
return json_encode(array('result' => 'no', 'data' => '不知道哪里错了,看代码'));
return json_encode(['result' => 'no', 'data' => '不知道哪里错了,看代码']);
}
public function edit_save($ic_id = false, $textarea_htmlcode = false, $amp_status = false)
{
$data = array();
public function edit_save($ic_id = false, $textarea_htmlcode = false, $amp_status = false) {
$data = [];
if ($ic_id === false) {
$ic_id = $this->CI->input->post('ic_id');
}
@ -129,7 +126,7 @@ class Amplib
$validator_result = GET_HTTP($purifycss_server, 'amp_source=' . urlencode($textarea_htmlcode), 'POST');
$validator_result = json_decode($validator_result);
if ($validator_result->status == 'FAIL') {
return json_encode(array('name' => 'no', 'value' => $validator_result->errors));
return json_encode(['name' => 'no', 'value' => $validator_result->errors]);
}
}
$amp = $this->CI->InfoMetas_model->get($ic_id, 'AMP');
@ -146,7 +143,7 @@ class Amplib
$this->CI->InfoMetas_model->update($ic_id, 'AMP_STATUS', $amp_status);
}
return json_encode(array('name' => 'ok', 'value' => $this->CI->lang->line('form_info_success')));
return json_encode(['name' => 'ok', 'value' => $this->CI->lang->line('form_info_success')]);
}
}

@ -1,9 +1,10 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Index_ah extends CI_Controller
{
class Index_ah extends CI_Controller {
public function __construct() {
parent::__construct();
@ -23,7 +24,7 @@ class Index_ah extends CI_Controller
$this->debug = $this->input->post('debug');
/*$this->htmlsource = file_get_contents('aa.htm');
$this->websitehost = 'https://data.chinarundreisen.com';
$this->websitehost = 'https://data.chinahighlightstravel.de';
$this->create_amp = 'true';
$this->template_name = 'gm';*/
@ -56,7 +57,7 @@ class Index_ah extends CI_Controller
//html优化处理
function optimize() {
//提取css样式地址
$link_css_array = array();
$link_css_array = [];
$css_content = '';
foreach ($this->html_object->find('link') as $link_css) {
//将所有的样式链接存储为一个数组
@ -86,7 +87,7 @@ class Index_ah extends CI_Controller
}
//提取和下载所有JS脚本包括链接文件和页面脚本
$link_js_array = array();
$link_js_array = [];
$js_inline_content = '';
$js_jquery_content = '';
foreach ($this->html_object->find('script') as $link_script) {
@ -137,7 +138,7 @@ class Index_ah extends CI_Controller
//把精简的css添加到head前面
$this->html_object = str_replace('</head>', '<style type="text/css">' . $optimize_css . "</style></head>", $this->html_object);
//删除多余空格和换行符
$this->html_object = str_replace(array(" ", "\t", "\n", "\r"), " ", $this->html_object);
$this->html_object = str_replace([" ", "\t", "\n", "\r"], " ", $this->html_object);
//循环n次把双空格替换为一个空格
for ($i = 0; $i <= 4; $i++) {
$this->html_object = str_replace(" ", " ", $this->html_object);
@ -157,7 +158,7 @@ class Index_ah extends CI_Controller
$lastload_js .= $js_inline_content;
$this->html_object = str_replace('</body>', $lastload_js . '</body>', $this->html_object);
echo json_encode(array('result' => 'ok', 'data' => array('html_object' => $this->html_object, 'js_content' => $js_content)));
echo json_encode(['result' => 'ok', 'data' => ['html_object' => $this->html_object, 'js_content' => $js_content]]);
}
//生成AMP版本 用移动端版本生成
@ -231,7 +232,7 @@ class Index_ah extends CI_Controller
}
//拼接请求的图片url如 https://data.asiahighlights.com/imagesize.php?photo=/pic/logo-ah.png,/pic/ah-slide-logo.png
$request_size = array();
$request_size = [];
foreach ($this->html_object->find('img') as $image) {
$img_src = $image->src;
if (! empty($image->originalsrc)) {
@ -246,7 +247,7 @@ class Index_ah extends CI_Controller
}
//请求图片尺寸
$image_sizes = array();
$image_sizes = [];
foreach ($request_size as $host => $path) {
$parse_url = "https://{$host}/imagesize.php?photo=" . urlencode(implode(',', $path));
$size_data = GET_HTTP($parse_url);
@ -320,7 +321,7 @@ class Index_ah extends CI_Controller
//产品页面处理结束
$link_css_array = array();
$link_css_array = [];
$css_content = '';
foreach ($this->html_object->find('link') as $link_css) {
//将所有的样式链接存储为一个数组
@ -334,11 +335,11 @@ class Index_ah extends CI_Controller
foreach ($link_css_array as $item) {
//排除一定不会用到的css提高精简的速度
if (strpos($item, 'base.css')) {
$item = 'https://data.chinarundreisen.com/min/?f=/css/base.css';
$item = 'https://data.chinahighlightstravel.de/min/?f=/css/base.css';
}
if (strpos($item, 'reiseroute.css')) {
$item = 'https://data.chinarundreisen.com/min/?f=/css/reiseroute-amp.css';
$item = 'https://data.chinahighlightstravel.de/min/?f=/css/reiseroute-amp.css';
}
$get_http_temp = GET_HTTP($this->format_url($item, $this->websitehost));
@ -371,7 +372,7 @@ class Index_ah extends CI_Controller
//替换掉写在组件上的样式
$amp_template = preg_replace('/style=.+?[\'|"]/i', '', $amp_template);
echo json_encode(array('result' => 'ok', 'data' => array('amp' => $amp_template)));
echo json_encode(['result' => 'ok', 'data' => ['amp' => $amp_template]]);
}
//格式化url保证请求的URL有域名//更换为对应的域名路径

@ -1,9 +1,10 @@
<?php
if (!defined('BASEPATH')) exit('No direct script access allowed');
if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
class Index_gm extends CI_Controller
{
class Index_gm extends CI_Controller {
public function __construct() {
parent::__construct();
@ -23,7 +24,7 @@ class Index_gm extends CI_Controller
$this->debug = $this->input->post('debug');
/*$this->htmlsource = file_get_contents('aa.htm');
$this->websitehost = 'https://data.chinarundreisen.com';
$this->websitehost = 'https://data.chinahighlightstravel.de';
$this->create_amp = 'true';
$this->template_name = 'gm';*/
@ -56,7 +57,7 @@ class Index_gm extends CI_Controller
//html优化处理
function optimize() {
//提取css样式地址
$link_css_array = array();
$link_css_array = [];
$css_content = '';
foreach ($this->html_object->find('link') as $link_css) {
//将所有的样式链接存储为一个数组
@ -86,7 +87,7 @@ class Index_gm extends CI_Controller
}
//提取和下载所有JS脚本包括链接文件和页面脚本
$link_js_array = array();
$link_js_array = [];
$js_inline_content = '';
$js_jquery_content = '';
foreach ($this->html_object->find('script') as $link_script) {
@ -137,7 +138,7 @@ class Index_gm extends CI_Controller
//把精简的css添加到head前面
$this->html_object = str_replace('</head>', '<style type="text/css">' . $optimize_css . "</style></head>", $this->html_object);
//删除多余空格和换行符
$this->html_object = str_replace(array(" ", "\t", "\n", "\r"), " ", $this->html_object);
$this->html_object = str_replace([" ", "\t", "\n", "\r"], " ", $this->html_object);
//循环n次把双空格替换为一个空格
for ($i = 0; $i <= 4; $i++) {
$this->html_object = str_replace(" ", " ", $this->html_object);
@ -157,7 +158,7 @@ class Index_gm extends CI_Controller
$lastload_js .= $js_inline_content;
$this->html_object = str_replace('</body>', $lastload_js . '</body>', $this->html_object);
echo json_encode(array('result' => 'ok', 'data' => array('html_object' => $this->html_object, 'js_content' => $js_content)));
echo json_encode(['result' => 'ok', 'data' => ['html_object' => $this->html_object, 'js_content' => $js_content]]);
}
//生成AMP版本 用移动端版本生成
@ -231,7 +232,7 @@ class Index_gm extends CI_Controller
}
//拼接请求的图片url如 https://data.asiahighlights.com/imagesize.php?photo=/pic/logo-ah.png,/pic/ah-slide-logo.png
$request_size = array();
$request_size = [];
foreach ($this->html_object->find('img') as $image) {
$img_src = $image->src;
if (! empty($image->originalsrc)) {
@ -246,7 +247,7 @@ class Index_gm extends CI_Controller
}
//请求图片尺寸
$image_sizes = array();
$image_sizes = [];
foreach ($request_size as $host => $path) {
$parse_url = "https://{$host}/imagesize.php?photo=" . urlencode(implode(',', $path));
$size_data = GET_HTTP($parse_url);
@ -320,7 +321,7 @@ class Index_gm extends CI_Controller
//产品页面处理结束
$link_css_array = array();
$link_css_array = [];
$css_content = '';
foreach ($this->html_object->find('link') as $link_css) {
//将所有的样式链接存储为一个数组
@ -334,11 +335,11 @@ class Index_gm extends CI_Controller
foreach ($link_css_array as $item) {
//排除一定不会用到的css提高精简的速度
if (strpos($item, 'base.css')) {
$item = 'https://data.chinarundreisen.com/min/?f=/css/base.css';
$item = 'https://data.chinahighlightstravel.de/min/?f=/css/base.css';
}
if (strpos($item, 'reiseroute.css')) {
$item = 'https://data.chinarundreisen.com/min/?f=/css/reiseroute-amp.css';
$item = 'https://data.chinahighlightstravel.de/min/?f=/css/reiseroute-amp.css';
}
$get_http_temp = GET_HTTP($this->format_url($item, $this->websitehost));
@ -371,7 +372,7 @@ class Index_gm extends CI_Controller
//替换掉写在组件上的样式
$amp_template = preg_replace('/style=.+?[\'|"]/i', '', $amp_template);
echo json_encode(array('result' => 'ok', 'data' => array('amp' => $amp_template)));
echo json_encode(['result' => 'ok', 'data' => ['amp' => $amp_template]]);
}
//格式化url保证请求的URL有域名//更换为对应的域名路径

@ -9,7 +9,7 @@
<link rel="canonical" href="<!--@CANONICAL@-->">
<script async src="https://cdn.ampproject.org/v0.js"></script>
<script async custom-element="amp-analytics" src="https://cdn.ampproject.org/v0/amp-analytics-0.1.js"></script>
<link rel="shortcut icon" href="https://www.chinarundreisen.com/favicon.ico" />
<link rel="shortcut icon" href="https://www.chinahighlightstravel.de/favicon.ico" />
<style amp-boilerplate>body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}</style><noscript><style amp-boilerplate>body{-webkit-animation:none;-moz-animation:none;-ms-animation:none;animation:none}</style></noscript>
<script custom-element="amp-sidebar" src="https://cdn.ampproject.org/v0/amp-sidebar-0.1.js" async></script>
<script async custom-element="amp-accordion" src="https://cdn.ampproject.org/v0/amp-accordion-0.1.js"></script>

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>China Reisen und China Rundreisen individuell | Chinarundreisen.com</title>
<link rel="stylesheet" href="//data.chinarundreisen.com/min/?f=/css/base.css,/css/header.css,/css/kunden-form.css"/>
<link href="https://data.chinarundreisen.com/information-view/information/css/bootstrap-datetimepicker.min.css?v=201506022" rel="stylesheet" type="text/css"/>
<script language="javascript" src="//data.chinarundreisen.com/min/?f=/js/base.js,/js/bootstrap.min.3.3.5.js,/js/lazyload.js,/js/common.js,/js/gotop.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui.min.1-11-3.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<link rel="stylesheet" href="//data.chinahighlightstravel.de/min/?f=/css/base.css,/css/header.css,/css/kunden-form.css"/>
<link href="https://data.chinahighlightstravel.de/information-view/information/css/bootstrap-datetimepicker.min.css?v=201506022" rel="stylesheet" type="text/css"/>
<script language="javascript" src="//data.chinahighlightstravel.de/min/?f=/js/base.js,/js/bootstrap.min.3.3.5.js,/js/lazyload.js,/js/common.js,/js/gotop.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery-ui.min.1-11-3.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<!--[if lt IE 9]>
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
<style type="text/css">.popover{background-color:#f2f600;}</style>
</head>
@ -30,10 +30,10 @@
<div class="clearfix"></div>
</div>
<ul class="sidenav-menu">
<li> <a href="//www.chinarundreisen.com/massgeschneiderte-china-reisen/" class="active" style="margin-left:30px !important; padding-right: 50px;">Maßschneidern Ihrer Reise</a>
<li> <a href="//www.chinahighlightstravel.de/massgeschneiderte-china-reisen/" class="active" style="margin-left:30px !important; padding-right: 50px;">Maßschneidern Ihrer Reise</a>
</li>
<li style="position:relative"><span class="close-btn"></span>
<a href="//www.chinarundreisen.com/china-rundreisen/" class="active">Chinarundreisen<span class="phone-arrow"></span></a>
<a href="//www.chinahighlightstravel.de/china-rundreisen/" class="active">Chinarundreisen<span class="phone-arrow"></span></a>
<ul class="sidenav-dropdown" style="display:none">
<li><a href="/chinareisen/">China Reisen 2018</a></li>
<li><a href="/china-individualreisen/">China Individualreisen</a></li>
@ -73,7 +73,7 @@
<div class="container">
<div class="logo">
<a href="/">
<img src="http://data.chinarundreisen.com/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="China Highlights" />
<img src="http://data.chinahighlightstravel.de/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="China Highlights" />
</a>
</div>
<div class="top-content">
@ -295,7 +295,7 @@ Andere Abfahrts-/Ankunftszeit für
<input type="hidden" name="COLI_SN" value="<?php echo $userinfo[0]->COLI_SN; ?>">
<input type="hidden" name="visitor_link" value="<?php echo $visitor_link; ?>">
<button href="javascript:;" id="form-confirm-info" class="btn btn-danger btn-lg">Überprüfen & Absenden</button>
<p><img src="https://data.chinarundreisen.com/pic/btn-text.jpg" width="311" height="30" /></p>
<p><img src="https://data.chinahighlightstravel.de/pic/btn-text.jpg" width="311" height="30" /></p>
</div>
<div class="form-footer">

@ -6,16 +6,16 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>China Reisen und China Rundreisen individuell | Chinarundreisen.com</title>
<link href="https://data.chinarundreisen.com/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinarundreisen.com/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinarundreisen.com/information-view/information/css/bootstrap-datetimepicker.min.css?v=201506022" rel="stylesheet" type="text/css"/>
<link href="https://data.chinahighlightstravel.de/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinahighlightstravel.de/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinahighlightstravel.de/information-view/information/css/bootstrap-datetimepicker.min.css?v=201506022" rel="stylesheet" type="text/css"/>
<!--[if lt IE 9]>
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery.min.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui.min.1-11-3.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery.min.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery-ui.min.1-11-3.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery-ui-timepicker-addon.js" type="text/javascript"></script>
<style type="text/css">.popover{background-color:#f2f600;}</style>
</head>
@ -28,13 +28,17 @@
<div class="row">
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
<a href="/">
<img width="135" src="http://data.chinarundreisen.com/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
<img width="135" src="http://data.chinahighlightstravel.de/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
</a>
</div>
<div class="col-lg-14 col-sm-13 col-lg-offset-3 col-sm-offset-4">
<div class="navbar-header">
<div class="col-xs-24 btn-lg"></div>
<div class="col-xs-24 text-white"><?php if(!isset($dear)) $dear='Liebe/r'; echo $dear; ?> <?php echo $username; ?></div>
<div class="col-xs-24 text-white"><?php if (! isset($dear)) {
$dear = 'Liebe/r';
}
echo $dear; ?><?php echo $username; ?></div>
<div class="col-xs-24 text-white">Buchungsnummer: <?php echo $userinfo[0]->COLI_ID; ?></div>
</div>
</div>

@ -7,13 +7,13 @@
<meta name="robots" content="noindex,nofollow" />
<title>China Reisen und China Rundreisen individuell | Chinarundreisen.com</title>
<link href="https://data.chinarundreisen.com/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinarundreisen.com/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinahighlightstravel.de/information-view/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<link href="https://data.chinahighlightstravel.de/information-view/information/css/order.css" rel="stylesheet" type="text/css"/>
<!--[if lt IE 9]>
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/bootstrap/js/respond.min.js" type="text/javascript"></script>
<![endif]-->
<script src="https://data.chinarundreisen.com/information-view/information/js/jquery.min.js" type="text/javascript"></script>
<script src="https://data.chinarundreisen.com/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/information/js/jquery.min.js" type="text/javascript"></script>
<script src="https://data.chinahighlightstravel.de/information-view/bootstrap/js/bootstrap.js" type="text/javascript"></script>
</head>
@ -26,7 +26,7 @@
<div class="row">
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
<a href="/">
<img width="135" src="http://data.chinarundreisen.com/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
<img width="135" src="http://data.chinahighlightstravel.de/public/pic/common/widget/header/pic/logo1_3d64397.jpg" alt="logo">
</a>
</div>
<div class="col-lg-16 col-sm-13 col-lg-offset-3 col-sm-offset-4">
@ -61,7 +61,7 @@
</div>
<div class="modal-body" style="height:150px;">
<h4 style="padding-top:10px;">Für jeglichen Grund kontaktieren Sie bitte Ihren Reiseführer.</h4>
<p>----<a href="http://www.chinarundreisen.com" class="">www.chinarundreisen.com</a></p>
<p>----<a href="http://www.chinahighlightstravel.de" class="">www.chinahighlightstravel.de</a></p>
</div>
</div><!-- /.modal-content -->

@ -40,7 +40,7 @@
</div>
<div class="modal-body">
<label>需要更新的URL</label>
<input type="text" class="form-control" name="cdn_url" id="cdn_url" placeholder="如https://data.chinarundreisen.com/min/?f=/css/tailorbox.css" style="width:98%"/>
<input type="text" class="form-control" name="cdn_url" id="cdn_url" placeholder="如https://data.chinahighlightstravel.de/min/?f=/css/tailorbox.css" style="width:98%"/>
<input type="hidden" name="updatecdn_byhand" id="updatecdn_byhand" value="">
<p class="text-danger" id="cdncache_refresh_modal_msg" name="cdncache_refresh_modal_msg"></p>

@ -44,7 +44,7 @@
</div>
<div class="modal-body">
<label>需要更新的URL</label>
<input type="text" class="form-control" name="cdn_url" id="cdn_url" placeholder="如https://data.chinarundreisen.com/min/?f=/css/tailorbox.css" />
<input type="text" class="form-control" name="cdn_url" id="cdn_url" placeholder="如https://data.chinahighlightstravel.de/min/?f=/css/tailorbox.css" />
<input type="hidden" name="updatecdn_byhand" id="updatecdn_byhand" value="">
<p class="text-danger" id="cdncache_refresh_modal_msg" name="cdncache_refresh_modal_msg"></p>

@ -43,7 +43,7 @@
// echo "alert(url.replace('/kcfinder/upload/ah/','https://data.asiahighlights.com/'));";
// break;
// case 'gm':
// echo "alert(url.replace('/kcfinder/upload/gm/','https://data.chinarundreisen.com/'));";
// echo "alert(url.replace('/kcfinder/upload/gm/','https://data.chinahighlightstravel.de/'));";
// break;
// default:
// echo 'alert(url);';
@ -202,7 +202,7 @@
<span class="input-group-btn">
<button class="btn btn-default btn-sm" type="submit">搜索</button>
<?php if (in_array($this->config->item('site_code'), array('jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'))) { ?>
<?php if (in_array($this->config->item('site_code'), ['jp', 'gm', 'vc', 'vac', 'ru', 'it', 'gh_jp', 'gh_gm', 'gh_vc', 'gh_vac', 'gh_ru', 'gh_it'])) {?>
<a href="<?php
$admin_info = $this->session->userdata('session_admin');
echo 'https://multimedia.mycht.cn/authorise/' . $admin_info['OPI_SN'] . '/' . $this->config->item('site_code')?>"
@ -228,10 +228,14 @@
<?php
$all_unread_sms = get_all_unread_sms();
$info_unread_sms = get_all_unread_sms('info');
if (isset($information->ic_id))
if (isset($information->ic_id)) {
$current_msg = $information->ic_id;
if (isset($task->t_id))
}
if (isset($task->t_id)) {
$current_msg = $task->t_id;
}
$total_count = $all_unread_sms['sms_count'] + $info_unread_sms['sms_count']; //计算未读消息总数
$unread_sms_ic_id = 0; //用于设置所有收录消息为已读
if ($total_count != 0) {

@ -342,7 +342,7 @@
//德语站点跳转测试页面
function goto_gmtest_page() {
var site_url = 'https://www.chinarundreisen.com/gm.php/information/detail/?cache=false&static_html_url=';
var site_url = 'https://www.chinahighlightstravel.de/gm.php/information/detail/?cache=false&static_html_url=';
$('#goto_test_page_button').attr("href", site_url + $('#ic_url').val());
return true;
}

@ -366,7 +366,7 @@
<span class="followtitle">Language</span>
<div class="listtour" style="display: flex;">
<div>
<ul style="width:185px;">
<ul style="width:185px;www.chinahighlightstravel.de
<li><a href="https://www.chinarundreisen.com/" target="_blank" rel="nofollow">Deutsch</a></li>
<li><a href="https://www.voyageschine.com/" target="_blank" rel="nofollow">Français</a></li>
<li><a href="https://www.chinahighlights.es/" target="_blank" rel="nofollow">Español</a></li>

@ -1,4 +1,6 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<?php if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
/*
|--------------------------------------------------------------------------
@ -93,7 +95,6 @@ $config['charset'] = 'UTF-8';
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
@ -108,7 +109,6 @@ $config['enable_hooks'] = FALSE;
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
@ -128,7 +128,6 @@ $config['subclass_prefix'] = 'MY_';
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
@ -330,7 +329,6 @@ $config['compress_output'] = FALSE;
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
@ -343,7 +341,6 @@ $config['time_reference'] = 'local';
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
@ -357,7 +354,6 @@ $config['rewrite_short_tags'] = FALSE;
*/
$config['proxy_ips'] = '';
//多媒体中心的本地图片路径
//上传图片是异步上网的所以用此url进行本地预览
$config['media_image_url'] = 'http://photo.chtcdn.com:3581/upload';
@ -365,32 +361,31 @@ $config['media_image_url'] = 'http://photo.chtcdn.com:3581/upload';
/* End of file config.php */
/* Location: ./application/config/config.php */
$config['site'] = array(
'cht' => array('site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'http://www.chinahighlights.com'),
'gm' => array('site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'http://www.chinarundreisen.com'),
'vc' => array('site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'http://www.voyageschine.com'),
'jp' => array('site_code' => 'jp', 'site_id' => 88, 'site_lgc' => '3', 'site_url' => 'http://www.arachina.com'),
'vac' => array('site_code' => 'vac', 'site_id' => 95, 'site_lgc' => '6', 'site_url' => 'http://www.viaje-a-china.com'),
'it' => array('site_code' => 'it', 'site_id' => 168, 'site_lgc' => '8', 'site_url' => 'http://www.viaggio-in-cina.it'),
'ru' => array('site_code' => 'ru', 'site_id' => 102, 'site_lgc' => '7', 'site_url' => 'http://www.chinahighlights.ru'),
'wt' => array('site_code' => 'wt', 'site_id' => 172, 'site_lgc' => '2', 'site_url' => 'http://www.iiiyooo.com'),
'tbt' => array('site_code' => 'tbt', 'site_id' => 169, 'site_lgc' => '1', 'site_url' => 'http://www.tibettravel.info'),
'sht' => array('site_code' => 'sht', 'site_id' => 96, 'site_lgc' => '1', 'site_url' => 'http://www.shanghaihighlights.com'),
'yz' => array('site_code' => 'yz', 'site_id' => 89, 'site_lgc' => '1', 'site_url' => 'http://www.yangtzeriver.org'),
'gl' => array('site_code' => 'gl', 'site_id' => 90, 'site_lgc' => '1', 'site_url' => 'http://www.guilinchina.net'),
'mbj' => array('site_code' => 'mbj', 'site_id' => 98, 'site_lgc' => '1', 'site_url' => 'http://www.mybeijingchina.com'),
'ct' => array('site_code' => 'ct', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'http://www.chinatravel.com'),
'ah' => array('site_code' => 'ah', 'site_id' => 141, 'site_lgc' => '1', 'site_url' => 'https://www.asiahighlights.com/'),
'dct' => array('site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'http://www.diychinatours.com')
);
$config['auhtor_task_type'] = array(
$config['site'] = [
'cht' => ['site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'http://www.chinahighlights.com'],
'gm' => ['site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'http://www.chinahighlightstravel.de'],
'vc' => ['site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'http://www.voyageschine.com'],
'jp' => ['site_code' => 'jp', 'site_id' => 88, 'site_lgc' => '3', 'site_url' => 'http://www.arachina.com'],
'vac' => ['site_code' => 'vac', 'site_id' => 95, 'site_lgc' => '6', 'site_url' => 'http://www.viaje-a-china.com'],
'it' => ['site_code' => 'it', 'site_id' => 168, 'site_lgc' => '8', 'site_url' => 'http://www.viaggio-in-cina.it'],
'ru' => ['site_code' => 'ru', 'site_id' => 102, 'site_lgc' => '7', 'site_url' => 'http://www.chinahighlights.ru'],
'wt' => ['site_code' => 'wt', 'site_id' => 172, 'site_lgc' => '2', 'site_url' => 'http://www.iiiyooo.com'],
'tbt' => ['site_code' => 'tbt', 'site_id' => 169, 'site_lgc' => '1', 'site_url' => 'http://www.tibettravel.info'],
'sht' => ['site_code' => 'sht', 'site_id' => 96, 'site_lgc' => '1', 'site_url' => 'http://www.shanghaihighlights.com'],
'yz' => ['site_code' => 'yz', 'site_id' => 89, 'site_lgc' => '1', 'site_url' => 'http://www.yangtzeriver.org'],
'gl' => ['site_code' => 'gl', 'site_id' => 90, 'site_lgc' => '1', 'site_url' => 'http://www.guilinchina.net'],
'mbj' => ['site_code' => 'mbj', 'site_id' => 98, 'site_lgc' => '1', 'site_url' => 'http://www.mybeijingchina.com'],
'ct' => ['site_code' => 'ct', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'http://www.chinatravel.com'],
'ah' => ['site_code' => 'ah', 'site_id' => 141, 'site_lgc' => '1', 'site_url' => 'https://www.asiahighlights.com/'],
'dct' => ['site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'http://www.diychinatours.com'],
];
$config['auhtor_task_type'] = [
'翻译' => 'translate',
'修改' => 'modify',
'审核' => 'review',
'投稿' => 'contribute'
);
'投稿' => 'contribute',
];
//当前站点代号默认是cht用户登录之后修改
$config['site_code'] = 'cht';

@ -20,7 +20,7 @@ $order_id = isset($_POST['order_id']) ? $_POST['order_id'] : $order_id;
$ip = '255.255.255.255';
$web_code = FALSE;
$date = date('Y-m-d h:i:s');
$host = array(
$host = [
'xx' => 'xx',
'jp' => 'JP',
'vc' => 'FR',
@ -34,8 +34,8 @@ $host = array(
'ct' => 'yincheng',
'gm' => 'gm-vps',
'ah' => 'AH',
);
$host_name = array(
];
$host_name = [
'jp' => 'http://www.arachina.com',
'vc' => 'http://www.voyageschine.com',
'vac' => 'http://www.viaje-a-china.com',
@ -46,17 +46,16 @@ $host_name = array(
'train_it' => 'http://www.viaggio-in-cina.it',
'cht' => 'http://www.chinahighlights.com',
'ct' => 'http://www.chinatravel.com',
'gm' => 'http://www.chinarundreisen.com',
'gm' => 'http://www.chinahighlightstravel.de',
'ah' => 'http://www.asiahighlights.com',
);
];
$bf_date = date('m/d/Y:00:00:00', time() - 3600 * 24 * 90);
$af_date = date('m/d/Y:00:00:00', time() + 3600 * 24 * 90);
$order_txt = '';
$web_code = 'xx';
$order_date = '';
if ($order_id)
{
if ($order_id) {
//if ($site == 'ch')
//{
// $order = @file_get_contents('http://www.chinahighlights.com/api/api.php?method=order.json_by_lmr&order_id='.$order_id);
@ -66,12 +65,10 @@ if ($order_id)
$order = @file_get_contents('http://www.viaje-a-china.com/index.php/ajax/ajax_order_datas/' . $order_id);
//}
if ($order && $order !== 'no data')
{
if ($order && $order !== 'no data') {
$order = json_decode($order);
$ip = $order->COLI_SenderIP;
if (!$ip || $ip=='159.8.126.74' || $ip=='180.140.114.208')
{
if (! $ip || $ip == '159.8.126.74' || $ip == '180.140.114.208') {
$ip = null;
}
$web_code = $order->COLI_WebCode;
@ -85,32 +82,29 @@ if ($order_id)
//连接Splunk SDK
require_once '../Splunk.php';
$connect_arguments = array(
$connect_arguments = [
'scheme' => 'https',
'host' => '192.155.250.125',
'port' => 8089,
'username' => 'haina',
'password' => '383d43GZ82[Ai',
);
];
$service = new Splunk_Service($connect_arguments);
$service->login();
//查询IP
//[EXA] host=ES "68.180.229.232" earliest="11/1/2016:00:00:00" latest="11/2/2016:00:00:00"
$results = array();
if ($ip)
{
$results = [];
if ($ip) {
$search = 'search host=' . $host[strtolower($web_code)] . ' "' . $ip . '" earliest="' . $bf_date . '" latest="' . $af_date . '" NOT("/ngx_pagespeed_beacon" OR "/tourprice" OR "/include" OR "/api" OR "/ajax" OR "/image" OR "/common" OR "/ckplayer" OR ".css" OR ".js" OR ".ico" OR ".gif" OR ".jpg" OR ".png" OR ".json" OR ".xml" OR ".ttf" OR ".woff" OR ".eot" OR "webhtmllog" OR "asphttp_accept_language" OR "down.asp" OR "verifyemail" OR "test")';
//调用Spluck Search
$job = $service->getJobs()->create($search);
while (!$job->isDone())
{
while (! $job->isDone()) {
$job->refresh();
}
$results = $job->getResults();
}
?><!DOCTYPE html>
<html lang="en">
<head>
@ -155,16 +149,28 @@ pre {margin-top: 5px;font-size: 0.8em;}
<form class="form-inline" action="" method="post" id="sform">
<div class="form-group has-success">
<label class="sr-only" for="order_id">订单号</label>
<input type="text" name="order_id" class="form-control" id="order_id" placeholder="输入订单号" value="<?php if ($order_id) echo($order_id); ?>">
<input type="text" name="order_id" class="form-control" id="order_id" placeholder="输入订单号" value="<?php if ($order_id) {
echo($order_id);
}
?>">
</div>
<button type="submit" class="btn btn-primary" data-loading-text="Loading..." id="btn6">查询</button>
</form>
</div>
<div class="alert alert-info" role="alert" id="fix_alert">
<?php
if ($web_code) echo(' [站点:'.$web_code.']');
if ($order_date) echo(' [提交日期:'.$order_date.']');
if ($order_txt) echo('<pre>'.$order_txt.'</pre>');
if ($web_code) {
echo(' [站点:' . $web_code . ']');
}
if ($order_date) {
echo(' [提交日期:' . $order_date . ']');
}
if ($order_txt) {
echo('<pre>' . $order_txt . '</pre>');
}
//echo(' 【SPL'.$search.'】');
?>
</div>
@ -174,9 +180,15 @@ pre {margin-top: 5px;font-size: 0.8em;}
$page = 1;
$page_count = 10;
$prev_cls = '';
if ($page == 1) $prev_cls = 'disabled';
if ($page == 1) {
$prev_cls = 'disabled';
}
$next_cls = '';
if ($page == $page_count) $next_cls = 'disabled';
if ($page == $page_count) {
$next_cls = 'disabled';
}
?>
<li class="<?php echo($prev_cls); ?>">
<a href="#" aria-label="Previous" id="prev">
@ -185,7 +197,10 @@ pre {margin-top: 5px;font-size: 0.8em;}
</li>
<?php for ($i = 1; $i <= $page_count; $i++) {
$cls = '';
if ($i == $page) $cls = 'active';
if ($i == $page) {
$cls = 'active';
}
?>
<li class="<?php echo($cls); ?>"><a href="javascript:;" class="page_a" data-action="/train/china-trains/search/logs/<?php echo($i); ?>"><?php echo($i); ?></a></li>
<?php }?>
@ -198,92 +213,78 @@ pre {margin-top: 5px;font-size: 0.8em;}
</nav-->
<table class="table table-bordered table-hover">
<?php
$messages = array();
$messages = [];
$anyRows = FALSE;
$columnNames = NULL;
foreach($results as $result)
{
if ($result instanceof Splunk_ResultsFieldOrder)
{
foreach ($results as $result) {
if ($result instanceof Splunk_ResultsFieldOrder) {
//所有字段
$columnNames = $result->getFieldNames();
//所需字段
$need_th = array('_serial', '_raw', '_time');
$need_th = ['_serial', '_raw', '_time'];
//字段差集
$columnNames = array_intersect($need_th, $columnNames);
echo '<thead><tr><td colspan="3" class="tt">提示: “GET”表示正常访问“POST”表示从表单提交访问“标黄”表示订单相关的访问。</td></tr><tr>';
foreach($columnNames as $columnName)
foreach ($columnNames as $columnName) {
echo '<th>' . htmlspecialchars($columnName) .
'</th>';
}
echo '</tr></thead>';
echo "\n";
}
else if ($result instanceof Splunk_ResultsMessage)
{
} else if ($result instanceof Splunk_ResultsMessage) {
$messages[] = $result;
}
else if (is_array($result))
{
} else if (is_array($result)) {
$anyRows = TRUE;
assert($columnNames !== NULL);
echo '<tr>';
foreach($columnNames as $columnName)
{
foreach ($columnNames as $columnName) {
$cellValue = array_key_exists($columnName, $result) ? $result[$columnName] : NULL;
//nginx日志
if ($columnName == '_raw')
{
if ($columnName == '_raw') {
echo '<td><div class="_raw">';
if (is_array($cellValue))
{
if (is_array($cellValue)) {
$log = implode('', $cellValue);
//116.226.169.236 - - [27/Oct/2016:07:35:39 -0500] "GET / HTTP/1.1" 200 8857 "-" "Mozilla/5.0 (iPhone; CPU iPhone OS 10_0_2 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) Version/10.0 Mobile/14A456 Safari/602.1"
//ip(1), visit(3), from(6), ua(7)
$p = '/^(\d{1,3}.\d{1,3}.\d{1,3}.\d{1,3})\s-\s-\s\[(.*)\]\s\"(.*)\"\s(\d{3})\s(\d+)\s\"(.*)\"\s\"(.*)\"$/';
preg_match($p, $log, $matches);
//print_r($matches);
if (isset($matches[3]))
{
if (isset($matches[3])) {
$tmp_a = explode(' ', $matches[3]);
echo '<a href="' . $host_name[strtolower($web_code)] . @$tmp_a[1] . '" class="btn btn-sm btn-primary" type="button" target="_blank"><span class="badge">visit</span> ' . urldecode($matches[3]) . '</a> &nbsp;';
}
if (isset($matches[6]))
{
if ($matches[6]=='-') $matches[6] = '从收藏夹、历史记录或地址栏直接访问';
if (isset($matches[6])) {
if ($matches[6] == '-') {
$matches[6] = '从收藏夹、历史记录或地址栏直接访问';
}
echo '<a href="' . $matches[6] . '" class="btn btn-sm btn-default" type="button" target="_blank"><span class="badge">from</span> ' . urldecode($matches[6]) . '</a> &nbsp;';
}
if (!isset($matches[1]))
{
if (! isset($matches[1])) {
echo $log;
}
}
echo '</div></td>';
}
//日期
else if ($columnName == '_time')
{
else if ($columnName == '_time') {
echo '<td>';
$time = strtotime($cellValue);
echo date('Y-m-d h:i:s', $time);
echo '</td>';
}
//splunk记录
else
{
else {
echo '<td>';
if ($cellValue !== NULL)
{
if (is_array($cellValue))
{
if ($cellValue !== NULL) {
if (is_array($cellValue)) {
echo '<ul>';
foreach($cellValue as $value)
{
foreach ($cellValue as $value) {
echo '<li>' . htmlspecialchars($value) . '</li>';
}
echo '</ul>';
}
else
{
} else {
echo htmlspecialchars($cellValue);
}
}
@ -299,8 +300,7 @@ pre {margin-top: 5px;font-size: 0.8em;}
<?php if (count($messages) > 0): ?>
<ul>
<?php
foreach ($messages as $message)
{
foreach ($messages as $message) {
echo '<li>[' . htmlspecialchars($message->getType()) . '] ';
echo htmlspecialchars($message->getText()) . '</li>';
}

@ -1,4 +1,6 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<?php if (! defined('BASEPATH')) {
exit('No direct script access allowed');
}
/*
|--------------------------------------------------------------------------
@ -93,7 +95,6 @@ $config['charset'] = 'UTF-8';
*/
$config['enable_hooks'] = FALSE;
/*
|--------------------------------------------------------------------------
| Class Extension Prefix
@ -108,7 +109,6 @@ $config['enable_hooks'] = FALSE;
*/
$config['subclass_prefix'] = 'MY_';
/*
|--------------------------------------------------------------------------
| Allowed URL Characters
@ -128,7 +128,6 @@ $config['subclass_prefix'] = 'MY_';
*/
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-u4e00-u9fa5';
/*
|--------------------------------------------------------------------------
| Enable Query Strings
@ -330,7 +329,6 @@ $config['compress_output'] = FALSE;
*/
$config['time_reference'] = 'local';
/*
|--------------------------------------------------------------------------
| Rewrite PHP Short Tags
@ -343,7 +341,6 @@ $config['time_reference'] = 'local';
*/
$config['rewrite_short_tags'] = FALSE;
/*
|--------------------------------------------------------------------------
| Reverse Proxy IPs
@ -360,22 +357,21 @@ $config['proxy_ips'] = '';
/* End of file config.php */
/* Location: ./application/config/config.php */
$config['site'] = array(
'cht' => array('site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com'),
'gm' => array('site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'https://www.chinarundreisen.com'),
'vc' => array('site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'https://www.voyageschine.com'),
'jp' => array('site_code' => 'jp', 'site_id' => 88, 'site_lgc' => '3', 'site_url' => 'https://www.arachina.com'),
'vac' => array('site_code' => 'vac', 'site_id' => 95, 'site_lgc' => '6', 'site_url' => 'https://www.viaje-a-china.com'),
'it' => array('site_code' => 'it', 'site_id' => 168, 'site_lgc' => '8', 'site_url' => 'https://www.viaggio-in-cina.it'),
'ru' => array('site_code' => 'ru', 'site_id' => 102, 'site_lgc' => '7', 'site_url' => 'https://www.chinahighlights.ru'),
'wt' => array('site_code' => 'wt', 'site_id' => 172, 'site_lgc' => '2', 'site_url' => 'https://www.iiiyooo.com'),
'tbt' => array('site_code' => 'tbt', 'site_id' => 169, 'site_lgc' => '1', 'site_url' => 'https://www.tibettravel.info'),
'sht' => array('site_code' => 'sht', 'site_id' => 96, 'site_lgc' => '1', 'site_url' => 'https://www.shanghaihighlights.com'),
'yz' => array('site_code' => 'yz', 'site_id' => 89, 'site_lgc' => '1', 'site_url' => 'https://www.yangtzeriver.org'),
'gl' => array('site_code' => 'gl', 'site_id' => 90, 'site_lgc' => '1', 'site_url' => 'https://www.guilinchina.net'),
'mbj' => array('site_code' => 'mbj', 'site_id' => 98, 'site_lgc' => '1', 'site_url' => 'https://www.mybeijingchina.com'),
'ct' => array('site_code' => 'ct', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'https://www.chinatravel.com'),
'dct' => array('site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'https://www.diychinatours.com'),
'trippest' => array('site_code' => 'trippest', 'site_id' => 0, 'site_lgc' => '1', 'site_url' => 'https://www.trippest.com')
);
$config['site'] = [
'cht' => ['site_code' => 'cht', 'site_id' => 14, 'site_lgc' => '1', 'site_url' => 'https://www.chinahighlights.com'],
'gm' => ['site_code' => 'gm', 'site_id' => 22, 'site_lgc' => '4', 'site_url' => 'https://www.chinahighlightstravel.de'],
'vc' => ['site_code' => 'vc', 'site_id' => 30, 'site_lgc' => '5', 'site_url' => 'https://www.voyageschine.com'],
'jp' => ['site_code' => 'jp', 'site_id' => 88, 'site_lgc' => '3', 'site_url' => 'https://www.arachina.com'],
'vac' => ['site_code' => 'vac', 'site_id' => 95, 'site_lgc' => '6', 'site_url' => 'https://www.viaje-a-china.com'],
'it' => ['site_code' => 'it', 'site_id' => 168, 'site_lgc' => '8', 'site_url' => 'https://www.viaggio-in-cina.it'],
'ru' => ['site_code' => 'ru', 'site_id' => 102, 'site_lgc' => '7', 'site_url' => 'https://www.chinahighlights.ru'],
'wt' => ['site_code' => 'wt', 'site_id' => 172, 'site_lgc' => '2', 'site_url' => 'https://www.iiiyooo.com'],
'tbt' => ['site_code' => 'tbt', 'site_id' => 169, 'site_lgc' => '1', 'site_url' => 'https://www.tibettravel.info'],
'sht' => ['site_code' => 'sht', 'site_id' => 96, 'site_lgc' => '1', 'site_url' => 'https://www.shanghaihighlights.com'],
'yz' => ['site_code' => 'yz', 'site_id' => 89, 'site_lgc' => '1', 'site_url' => 'https://www.yangtzeriver.org'],
'gl' => ['site_code' => 'gl', 'site_id' => 90, 'site_lgc' => '1', 'site_url' => 'https://www.guilinchina.net'],
'mbj' => ['site_code' => 'mbj', 'site_id' => 98, 'site_lgc' => '1', 'site_url' => 'https://www.mybeijingchina.com'],
'ct' => ['site_code' => 'ct', 'site_id' => 1000, 'site_lgc' => '104', 'site_url' => 'https://www.chinatravel.com'],
'dct' => ['site_code' => 'dct', 'site_id' => 99, 'site_lgc' => '1', 'site_url' => 'https://www.diychinatours.com'],
'trippest' => ['site_code' => 'trippest', 'site_id' => 0, 'site_lgc' => '1', 'site_url' => 'https://www.trippest.com'],
];

@ -1,7 +1,7 @@
<?php
$lang['logo'] = "https://www.chinarundreisen.com/pic/homepage/logo.png";
$lang['logo_url'] = "https://www.chinarundreisen.com/";
$lang['logo'] = "https://www.chinahighlightstravel.de/pic/homepage/logo.png";
$lang['logo_url'] = "https://www.chinahighlightstravel.de/";
$lang['right'] = '<div class="pay_footer text-right">
<p>© 1998 China Highlights.
<a href="https://www.chinahighlights.com/privacy.htm" rel="nofollow">Privacy Statement</a>

@ -19,7 +19,7 @@ ini_set('display_errors', 0);
/*============================ General Settings =======================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
$config = array();
$config = [];
/*============================ Enable PHP Connector HERE ==============================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_authentication
@ -37,27 +37,27 @@ $config['licenseKey'] = '*J?L-*1**-C**X-*D**-*B**-Z*6*-3**J';
/*============================ CKFinder Internal Directory ============================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_privateDir
$config['privateDir'] = array(
$config['privateDir'] = [
'backend' => 'default',
'tags' => '.ckfinder/tags',
'logs' => '.ckfinder/logs',
'cache' => '.ckfinder/cache',
'thumbs' => '.ckfinder/cache/thumbs',
);
];
/*============================ Images and Thumbnails ==================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_images
$config['images'] = array(
$config['images'] = [
'maxWidth' => 2560,
'maxHeight' => 1440,
'quality' => 0,
'sizes' => array(
'small' => array('width' => 480, 'height' => 320, 'quality' => 0),
'medium' => array('width' => 600, 'height' => 480, 'quality' => 0),
'large' => array('width' => 800, 'height' => 600, 'quality' => 0)
)
);
'sizes' => [
'small' => ['width' => 480, 'height' => 320, 'quality' => 0],
'medium' => ['width' => 600, 'height' => 480, 'quality' => 0],
'large' => ['width' => 800, 'height' => 600, 'quality' => 0],
],
];
/*=================================== Backends ========================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_backends
@ -75,7 +75,7 @@ switch ($sitecode) {
$site_url = 'https://data.chinahighlights.com';
break;
case 'gm':
$site_url = 'https://data.chinarundreisen.com';
$site_url = 'https://data.chinahighlightstravel.de';
break;
case 'gh':
$site_url = 'https://data.globalhighlights.com';
@ -124,7 +124,7 @@ if ('gh-int.mycht.cn' == $_SERVER["SERVER_NAME"] || 'origin-gm.mycht.cn' == $_SE
$site_upload_dir = dirname(dirname(dirname(dirname(__FILE__)))) . '/uploader-file/' . $sitecode;
}
$config['backends'][] = array(
$config['backends'][] = [
'name' => 'default',
'adapter' => 'local',
'baseUrl' => $site_url,
@ -133,7 +133,7 @@ $config['backends'][] = array(
'chmodFolders' => 0755,
'filesystemEncoding' => 'UTF-8',
'followSymlinks' => true,
);
];
/*================================ Resource Types =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_resourceTypes
@ -142,22 +142,22 @@ $config['defaultResourceTypes'] = '';
//按日期生成不同文件夹,每周一个文件夹
//$week_folder= date("Y-m_W", time());
$config['resourceTypes'][] = array(
$config['resourceTypes'][] = [
'name' => 'image', // Single quotes not allowed.
'directory' => 'image',
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'deniedExtensions' => '',
'backend' => 'default'
);
$config['resourceTypes'][] = array(
'backend' => 'default',
];
$config['resourceTypes'][] = [
'name' => 'pic', // Single quotes not allowed.
'directory' => 'pic',
'maxSize' => 0,
'allowedExtensions' => '7z,aiff,asf,avi,bmp,csv,doc,docx,fla,flv,gif,gz,gzip,jpeg,jpg,mid,mov,mp3,mp4,mpc,mpeg,mpg,ods,odt,pdf,png,ppt,pptx,pxd,qt,ram,rar,rm,rmi,rmvb,rtf,sdc,sitd,swf,sxc,sxw,tar,tgz,tif,tiff,txt,vsd,wav,wma,wmv,xls,xlsx,zip,svg',
'deniedExtensions' => '',
'backend' => 'default'
);
'backend' => 'default',
];
/*
$config['resourceTypes'][] = array(
@ -192,7 +192,7 @@ $config['resourceTypes'][] = array(
$config['roleSessionVar'] = 'CKFinder_UserRole';
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_accessControl
$config['accessControl'][] = array(
$config['accessControl'][] = [
'role' => '*',
'resourceType' => '*',
'folder' => '/',
@ -208,9 +208,8 @@ $config['accessControl'][] = array(
'FILE_DELETE' => true,
'IMAGE_RESIZE' => true,
'IMAGE_RESIZE_CUSTOM' => true
);
'IMAGE_RESIZE_CUSTOM' => true,
];
/*================================ Other Settings =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html
@ -220,9 +219,9 @@ $config['checkDoubleExtension'] = true;
$config['disallowUnsafeCharacters'] = true;
$config['secureImageUploads'] = true;
$config['checkSizeAfterScaling'] = true;
$config['htmlExtensions'] = array('html', 'htm', 'xml', 'js');
$config['hideFolders'] = array('.*', 'CVS', '__thumbs');
$config['hideFiles'] = array('.*');
$config['htmlExtensions'] = ['html', 'htm', 'xml', 'js'];
$config['hideFolders'] = ['.*', 'CVS', '__thumbs'];
$config['hideFiles'] = ['.*'];
$config['forceAscii'] = false;
$config['xSendfile'] = false;
@ -233,16 +232,16 @@ $config['debug'] = false;
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_plugins
$config['pluginsDirectory'] = __DIR__ . '/plugins';
$config['plugins'] = array();
$config['plugins'] = [];
/*================================ Cache settings =====================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_cache
$config['cache'] = array(
$config['cache'] = [
'imagePreview' => 24 * 3600,
'thumbnails' => 24 * 3600 * 365,
'proxyCommand' => 0
);
'proxyCommand' => 0,
];
/*============================ Temp Directory settings ================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_tempDirectory
@ -262,7 +261,7 @@ $config['csrfProtection'] = true;
/*===================================== Headers =======================================*/
// https://ckeditor.com/docs/ckfinder/ckfinder3-php/configuration.html#configuration_options_headers
$config['headers'] = array();
$config['headers'] = [];
/*============================== End of Configuration =================================*/

Loading…
Cancel
Save