hotfix/远程访问多媒体中心
lmr@hainatravel.com 8 years ago
parent 6c83d3426c
commit d9586b2e9a

File diff suppressed because it is too large Load Diff

@ -1,137 +1,193 @@
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Cache extends CI_Controller
{
//缓存文件绝对路径
private $dir = '';
//存放缓存文件的数组
private $file = array();
//存放缓存文件夹的数组
private $path = array();
//缓存更新接口
private $cache_api = '';
//缓存更新参数
private $post_para = '';
//当前站点域名
private $current_domain = '';
//文件更新日期
private $file_time = array();
function __construct()
{
parent::__construct();
$this->permission->is_admin();
$this->load->model('Area_model');
$this->load->model('InfoStructures_model');
$this->load->model('Information_model');
$this->site_code = $this->config->item('site_code');
}
/**
*
* 公有函数:扫描已有缓存文件并更新。
*
* 必要参数:
* @param String $site_code
*
*/
public function update()
{
//设置缓存文件文件夹
$cache_config = $this->config->item('cache');
$current_cache_config = $cache_config[$this->site_code];
$this->dir = $current_cache_config['cache_path'];
//设置当前站点
$this->current_domain = $this->config->item('site_url');
//设置缓存更新接口及POST参数
$this->cache_api = $current_cache_config['cache_api'];
$this->post_para = $current_cache_config['cache_api_para'];
//遍历缓存文件夹
$this->tree($this->dir, $this->file, $this->path, $this->file_time);
//按目录筛选结果
$this->filter($this->file, $this->path);
//整理需要传递到视图的数据
$data['file'] = $this->file;
$data['path'] = $this->path;
$data['file_time'] = $this->file_time;
$data['cache_api'] = $this->cache_api;
$data['post_para'] = $this->post_para;
//视图
$this->load->view('cache/update', $data);
}
/**
*
* 私有函数:递归遍历缓存文件夹,将目录存放到$path文件存放到$file。
*
* 必要参数:
* @param String $dir - 需要遍历的目录
* @param Array $file - 存放文件结果的数组引用
* @param Array $path - 存放路径结果的数组引用
* @param Array $file_time - 存放文件更新日期的数组引用
*
*/
private function tree($dir, &$file, &$path, &$file_time)
{
$mydir = dir($dir);
while($f = $mydir->read())
{
if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false))
{
$path[] = "$dir/$f";
$this->tree("$dir/$f", $file, $path, $file_time);
}
else
{
if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')==false))
{
$file_temp = str_ireplace('index.htm###', '', $f.'###');
$file_temp = str_ireplace('###', '', $file_temp);
$path_temp = str_ireplace($this->dir, '', $dir);
$url_temp = $this->current_domain.$path_temp.'/'.$file_temp;
$file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f"));
$file[] = $url_temp;
}
}
}
$mydir->close();
}
/**
*
* 私有函数:筛选目录和文件。
*
* 必要参数:
* @param Array $file - 存放文件结果的数组引用
* @param Array $path - 存放路径结果的数组引用
*
* 可选参数POST参数 - $_POST['p']
*
*/
private function filter(&$file, &$path)
{
if (isset($_POST['p']) && !empty($_POST['p']))
{
//删选文件
foreach ($file as &$f)
{
(stripos($f, $_POST['p'])!==false) or $f = false;
}
$file = array_filter($file);
//删选目录
foreach ($path as &$p)
{
(stripos($p, $_POST['p'])!==false) or $p = false;
}
$path = array_filter($path);
}
}
}
//end of Cache
<?php
if (!defined('BASEPATH'))
exit('No direct script access allowed');
class Cache extends CI_Controller
{
//缓存文件绝对路径
private $dir = '';
//存放缓存文件的数组
private $file = array();
//存放缓存文件夹的数组
private $path = array();
//缓存更新接口
private $cache_api = '';
//缓存更新参数
private $post_para = '';
//当前站点域名
private $current_domain = '';
//文件更新日期
private $file_time = array();
function __construct()
{
parent::__construct();
$this->permission->is_admin();
$this->load->model('Area_model');
$this->load->model('InfoStructures_model');
$this->load->model('Information_model');
$this->site_code = $this->config->item('site_code');
}
/**
*
* 公有函数:扫描已有缓存文件并更新。
*
* 必要参数:
* @param String $site_code
*
*/
public function update()
{
//设置缓存文件文件夹
$cache_config = $this->config->item('cache');
$current_cache_config = $cache_config[$this->site_code];
$this->dir = $current_cache_config['cache_path'];
//设置当前站点
$this->current_domain = $this->config->item('site_url');
//设置缓存更新接口及POST参数
$this->cache_api = $current_cache_config['cache_api'];
$this->post_para = $current_cache_config['cache_api_para'];
//遍历缓存文件夹
$this->tree($this->dir, $this->file, $this->path, $this->file_time);
//按目录筛选结果
$this->filter($this->file, $this->path);
//整理需要传递到视图的数据
$data['file'] = $this->file;
$data['path'] = $this->path;
$data['file_time'] = $this->file_time;
$data['cache_api'] = $this->cache_api;
$data['post_para'] = $this->post_para;
//视图
$this->load->view('cache/update', $data);
}
/**
*
* 公有函数:扫描已有缓存文件并更新。
*
* 必要参数:
* @param String $site_code
*
*/
public function sitemap()
{
header("Content-type:text/xml");
//设置缓存文件文件夹
$cache_config = $this->config->item('cache');
$current_cache_config = $cache_config[$this->site_code];
$this->dir = $current_cache_config['cache_path'];
//设置当前站点
$this->current_domain = $this->config->item('site_url');
//设置缓存更新接口及POST参数
$this->cache_api = $current_cache_config['cache_api'];
$this->post_para = $current_cache_config['cache_api_para'];
//遍历缓存文件夹
$this->tree($this->dir, $this->file, $this->path, $this->file_time);
//按目录筛选结果
$this->filter($this->file, $this->path);
//整理需要传递到视图的数据
$data['file'] = $this->file;
$data['path'] = $this->path;
$data['file_time'] = $this->file_time;
$data['cache_api'] = $this->cache_api;
$data['post_para'] = $this->post_para;
//排序file数组
sort ($data['file']);
//生成sitemap
$dom = new DomDocument('1.0', 'utf-8');
$urlset = $dom->createElement('urlset');
$urlset->setAttribute('xmlns', 'http://www.sitemaps.org/schemas/sitemap/0.9');
$dom->appendchild($urlset);
foreach ($data['file'] as $f)
{
$url = $dom->createElement('url');
$loc = $dom->createElement('loc');
$text = $dom->createTextNode($f);
$loc->appendchild($text);
$url->appendchild($loc);
$urlset->appendchild($url);
}
echo($dom->saveXML());
}
/**
*
* 私有函数:递归遍历缓存文件夹,将目录存放到$path文件存放到$file。
*
* 必要参数:
* @param String $dir - 需要遍历的目录
* @param Array $file - 存放文件结果的数组引用
* @param Array $path - 存放路径结果的数组引用
* @param Array $file_time - 存放文件更新日期的数组引用
*
*/
private function tree($dir, &$file, &$path, &$file_time)
{
$mydir = dir($dir);
while($f = $mydir->read())
{
if(is_dir("$dir/$f") && $f!="." && $f!=".." && (strpos($dir, '/cn/')==false))
{
$path[] = "$dir/$f";
$this->tree("$dir/$f", $file, $path, $file_time);
}
else
{
if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')==false) && (strpos($f, '.pdf')===false))
{
$file_temp = str_ireplace('index.htm###', '', $f.'###');
$file_temp = str_ireplace('###', '', $file_temp);
$path_temp = str_ireplace($this->dir, '', $dir);
$url_temp = $this->current_domain.$path_temp.'/'.$file_temp;
$file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f"));
$file[] = $url_temp;
}
}
}
$mydir->close();
}
/**
*
* 私有函数:筛选目录和文件。
*
* 必要参数:
* @param Array $file - 存放文件结果的数组引用
* @param Array $path - 存放路径结果的数组引用
*
* 可选参数POST参数 - $_POST['p']
*
*/
private function filter(&$file, &$path)
{
if (isset($_POST['p']) && !empty($_POST['p']))
{
//删选文件
foreach ($file as &$f)
{
(stripos($f, $_POST['p'])!==false) or $f = false;
}
$file = array_filter($file);
//删选目录
foreach ($path as &$p)
{
(stripos($p, $_POST['p'])!==false) or $p = false;
}
$path = array_filter($path);
}
}
}
//end of Cache

@ -182,7 +182,7 @@
var tpl = $(this).attr('data-ad-template');
if (tpl=='ad-img') {
if (!editor.html()) {
editor.html('<div class="cht_adv"><a href="#"><img src="http://images.chinahighlights.com/allpicture/2016/02/b3a8dc0e0f70456c9a21b3aa.jpg" class="img-responsive"></a><br/></div>')
editor.html('<div class="cht_adv"><a href="#"><img src="//images.chinahighlights.com/allpicture/2016/02/b3a8dc0e0f70456c9a21b3aa.jpg" class="img-responsive"></a><br/></div>')
} else {
alert('编辑区域有内容,请先清空编辑区!');
}

@ -24,7 +24,7 @@ table td ul li {
</tr>
<tr>
<td width="20"></td>
<td width="106"><a href="http://www.chinahighlights.com"><img src="http://www.chinahighlights.com/webimage/emaillogo.jpg" width="106" height="107" alt="China Highlights" align="middle"/></a></td>
<td width="106"><a href="http://www.chinahighlights.com"><img src="//www.chinahighlights.com/webimage/emaillogo.jpg" width="106" height="107" alt="China Highlights" align="middle"/></a></td>
<td width="58" >&nbsp;</td>
<td width="406" style="font-family:Georgia; font-size:45px; color:#010101;">Discovery your way</td>
<td width="58">&nbsp;</td>
@ -32,7 +32,7 @@ table td ul li {
</tr>
<tr>
<td></td>
<td colspan="4" width="628"><img src="http://www.chinahighlights.com/webimage/emailad.jpg" width="628" height="411" alt="China Highlights, Discovery Your Way" /></td>
<td colspan="4" width="628"><img src="//www.chinahighlights.com/webimage/emailad.jpg" width="628" height="411" alt="China Highlights, Discovery Your Way" /></td>
<td></td>
</tr>
<tr>
@ -47,7 +47,7 @@ table td ul li {
our travel advisors will respond within 1 working day.If you have not received a reply within 1 working
day, please check your "bulk mail" or "junk mail" folders and then contact our Customer Service
Manager at <a href="mailto:supervisor@chinahighlights.com" style="color:#000;">supervisor@chinahighlights.com</a> so that we can investigate immediately. </p>
<p>Watch the video about how your tour works - <img src="http://www.chinahighlights.com/webimage/emailvideo.gif" /><a href="http://www.chinahighlights.com/video/tour-steps-from-inquiry-to-arriving-home.htm" style="color:#000;"> from <strong>Inquiry</strong> to <strong>Arriving Home</strong></a>. <br />
<p>Watch the video about how your tour works - <img src="//www.chinahighlights.com/webimage/emailvideo.gif" /><a href="http://www.chinahighlights.com/video/tour-steps-from-inquiry-to-arriving-home.htm" style="color:#000;"> from <strong>Inquiry</strong> to <strong>Arriving Home</strong></a>. <br />
We will do our best to serve you.</p>
<p>Below is a copy of your inquiry. Let me know if it is incorrect or you want to make some changes:</p></td>
<td></td>

@ -6,13 +6,13 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>www.chinahighlights.com</title>
<link href="http://data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css,/image/customer_center_data/css/bootstrap-datetimepicker.min.css&v=20150506" rel="stylesheet">
<link href="//data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css,/image/customer_center_data/css/bootstrap-datetimepicker.min.css&v=20150506" rel="stylesheet">
<!--[if lte IE 9]>
<link href="http://data.chinahighlights.com/public/js/fixie/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<link href="/public/js/fixie/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
<script src="http://data.chinahighlights.com/js/min.php?f=/public/js/respond.min.js,/public/js/fixie/respond.proxy.js"></script>
<![endif]-->
<script src="http://data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js,/image/customer_center_data/js/jquery-ui.min.js,/image/customer_center_data/js/jquery-ui-timepicker-addon.js&v=20150506"></script>
<script src="//data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js,/image/customer_center_data/js/jquery-ui.min.js,/image/customer_center_data/js/jquery-ui-timepicker-addon.js&v=20150506"></script>
</head>
@ -25,7 +25,7 @@
<div class="row">
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
<a href="/">
<img src="http://www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
<img src="//www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
</a>
</div>
<div class="col-lg-16 col-sm-13 col-lg-offset-3 col-sm-offset-4">

@ -7,13 +7,13 @@
<meta name="robots" content="noindex,nofollow" />
<title>www.chinahighlights.com</title>
<link href="http://data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css,/image/customer_center_data/css/bootstrap-datetimepicker.min.css&v=20150506" rel="stylesheet">
<link href="//data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css,/image/customer_center_data/css/bootstrap-datetimepicker.min.css&v=20150506" rel="stylesheet">
<!--[if lte IE 9]>
<link href="http://data.chinahighlights.com/public/js/fixie/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<link href="//data.chinahighlights.com/public/js/fixie/respond-proxy.html" id="respond-proxy" rel="respond-proxy" />
<link href="/public/js/fixie/respond.proxy.gif" id="respond-redirect" rel="respond-redirect" />
<script src="http://data.chinahighlights.com/js/min.php?f=/public/js/respond.min.js,/public/js/fixie/respond.proxy.js"></script>
<script src="//data.chinahighlights.com/js/min.php?f=/public/js/respond.min.js,/public/js/fixie/respond.proxy.js"></script>
<![endif]-->
<script src="http://data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js,/image/customer_center_data/js/jquery-ui.min.js,/image/customer_center_data/js/jquery-ui-timepicker-addon.js&v=20150506"></script>
<script src="//data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js,/image/customer_center_data/js/jquery-ui.min.js,/image/customer_center_data/js/jquery-ui-timepicker-addon.js&v=20150506"></script>
</head>
@ -26,7 +26,7 @@
<div class="row">
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
<a href="/">
<img src="http://www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
<img src="//www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
</a>
</div>
<div class="col-lg-16 col-sm-13 col-lg-offset-3 col-sm-offset-4">
@ -633,7 +633,7 @@ and your confirmation code, also drug allergy just in case.
<button type="button" class="close" style="margin-top:-12px;margin-right:-11px;" data-dismiss="modal" aria-label="Close"><span class="glyphicon glyphicon-remove" style="border: 2px solid #333;border-radius: 30px;padding: 2px;"></span></button>
</div>
<div class="modal-body" style="padding-top:8px;">
<img style="width:100%;" src="http://data.chinahighlights.com/image/customer_center_data/css/images/passport.jpg">
<img style="width:100%;" src="//data.chinahighlights.com/image/customer_center_data/css/images/passport.jpg">
</div>
</div>
</div>

@ -7,14 +7,14 @@
<title>www.chinahighlights.com</title>
<meta name="robots" content="noindex,nofollow"/>
<link href="http://data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css&v=2015042802" rel="stylesheet">
<link href="//data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css&v=2015042802" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="http://data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js&v=2015042802"></script>
<script src="//data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js&v=2015042802"></script>
</head>
@ -27,7 +27,7 @@
<div class="row">
<div class="col-lg-3 col-sm-4 logobox hidden-xs">
<a href="/">
<img src="http://www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
<img src="//www.chinahighlights.com/image/customer_center_data/css/images/logo-132x104.png" alt="logo">
</a>
</div>
<div class="col-lg-16 col-sm-13 col-lg-offset-3 col-sm-offset-4">

@ -7,14 +7,14 @@
<title>www.chinahighlights.com</title>
<meta name="robots" content="noindex,nofollow"/>
<link href="http://data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css&v=2015042802" rel="stylesheet">
<link href="//data.chinahighlights.com/css/min.php?f=/image/customer_center_data/css/bootstrap.min.css,/image/customer_center_data/css/order.css&v=2015042802" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="http://data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js&v=2015042802"></script>
<script src="//data.chinahighlights.com/js/min.php?f=/image/customer_center_data/js/jquery.min.js,/image/customer_center_data/js/bootstrap.min.js&v=2015042802"></script>
</head>

@ -16,7 +16,7 @@
<h1>The payment page is loading: please don't close the window!</h1>
<form name="form_paypalnote" id="form_paypalnote" action="http://www.mycht.cn/webht.php/apps/paypal/index/paypal_note" method="post">
<form name="form_paypalnote" id="form_paypalnote" action="//www.mycht.cn/webht.php/apps/paypal/index/paypal_note" method="post">
<?php
foreach ($_POST as $key => $item) {

File diff suppressed because it is too large Load Diff

@ -1,144 +1,144 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>更新静态页-v1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="http://europe.chtcdn.com/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<script type="text/javascript" src="http://europe.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="http://europe.chtcdn.com/bootstrap/js/bootstrap.min.js"></script>
<style type="text/css">
.show-grid {padding: 15px; background: #efefef; border-radius: 5px;}
.mr10 {margin-right: 10px;}
.nav {margin-bottom: 5px;}
.pic {display: none;}
.msg {color: #07c;}
.mt12 {margin-top: 12px;}
.msg_wait {color: #999;}
.none {display: none;}
.form-search {display: inline-block;margin:0 0 0 5px !important;}
.input-medium.search-query {width: 250px;}
#search,#insert,#update {margin-top: 2px;float: right;}
</style>
<script type="text/javascript">
$(function() {
//更新静态页,异步请求队列(setp_set个)
var setp_set = 20;
$('#update').on('click', function() {
var $data = $('.data');
for(var i=0; i<setp_set; i++) {
dg_ajax($data, i, setp_set);
}
});
//下拉选站点
$('a.sss').on('click', function() {
var site = $(this).html();
location.href = '/info.php/login/change_site/'+site+'/?url=/cache/update/';
});
//递归ajax
function dg_ajax(dom, star, step) {
var current = dom.eq(star);
if (current.length) {
var file = current.find('.file').attr('title');
file = encodeURI(file);
current.find('.msg_wait').css('color','red').html('更新中');
$.ajax({
url : '<?php echo($cache_api);?>',
dataType : 'json',
type : 'POST',
data : {'<?php echo($post_para);?>':file},
success : function(data) {
star = star + step;
current.find('.msg_wait').css('color','blue').html('成功');
count_num(num_zero);
//console.log(star+''+file);
dg_ajax(dom, star, step);
},
error : function() {
current.find('.msg_wait').css('color','red').html('重试');
dg_ajax(dom, star, step);
}
});
}
}
//计数显示
var num_zero = 1;
function count_num(num) {
$('#count_num').html('已更新'+num+'个页面 进度'+(Math.ceil(num*100/<?php echo(count($file));?>))+'% ').show();
num_zero++;
}
});
</script>
</head>
<body>
<div class="container">
<div class="row show-grid">
<ul class="nav nav-pills">
<li class="active dropdown mr10">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
站点:<?php echo($this->config->item('site_code'));?>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a class="sss">jp</a>
</li>
<li>
<a class="sss">gm</a>
</li>
<li>
<a class="sss">vc</a>
</li>
<li>
<a class="sss">vac</a>
</li>
<li>
<a class="sss">ru</a>
</li>
<li>
<a class="sss">it</a>
</li>
</ul>
</li>
<span class="mt12 label label-success">缓存目录<?php echo(count($path));?></span>
<span class="mt12 label label-info">含文件<?php echo(count($file));?></span>
<span class="mt12 label label-important none" id="count_num">已更新0个页面 进度0%</span>
<form class="form-search" id="path_search" action="#" method="post">
<input type="text" placeholder="输入路径删选,例如:/tours/。" value="<?php if(isset($_POST['p'])) {echo($_POST['p']);}?>" class="input-medium search-query" name="p"/>
<button type="submit" class="btn">筛选</button>
</form>
<a id="update" class="btn mr10 btn-info">更新</a>
</ul>
</div>
<div class="row">
<table class="table table-hover">
<thead>
<tr>
<th>#SN</th>
<th>文件名</th>
<th>更新日期</th>
<th>更新状态</th>
</tr>
</thead>
<tbody class="data_group">
<?php foreach($file as $key=>$it) { ?>
<tr class="data">
<td><?php echo($key+1);?></td>
<?php if (strlen($it)>100) { ?>
<td class="file" title="<?php echo($it);?>"><?php echo(substr($it, 0, 40));?>..........<?php echo(substr($it, -35));?></td>
<?php } else { ?>
<td class="file" title="<?php echo($it);?>"><?php echo($it);?></td>
<?php } ?>
<td><?php echo($file_time[$it]); ?></td>
<td class="msg_wait">无操作</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</body>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>更新静态页-v1.0</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<link href="http://europe.chtcdn.com/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<script type="text/javascript" src="http://europe.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="http://europe.chtcdn.com/bootstrap/js/bootstrap.min.js"></script>
<style type="text/css">
.show-grid {padding: 15px; background: #efefef; border-radius: 5px;}
.mr10 {margin-right: 10px;}
.nav {margin-bottom: 5px;}
.pic {display: none;}
.msg {color: #07c;}
.mt12 {margin-top: 12px;}
.msg_wait {color: #999;}
.none {display: none;}
.form-search {display: inline-block;margin:0 0 0 5px !important;}
.input-medium.search-query {width: 250px;}
#search,#insert,#update {margin-top: 2px;float: right;}
</style>
<script type="text/javascript">
$(function() {
//更新静态页,异步请求队列(setp_set个),6ge gou le.
var setp_set = 6;
$('#update').on('click', function() {
var $data = $('.data');
for(var i=0; i<setp_set; i++) {
dg_ajax($data, i, setp_set);
}
});
//下拉选站点
$('a.sss').on('click', function() {
var site = $(this).html();
location.href = '/info.php/login/change_site/'+site+'/?url=/cache/update/';
});
//递归ajax
function dg_ajax(dom, star, step) {
var current = dom.eq(star);
if (current.length) {
var file = current.find('.file').attr('title');
file = encodeURI(file);
current.find('.msg_wait').css('color','red').html('更新中');
$.ajax({
url : '<?php echo($cache_api);?>',
dataType : 'json',
type : 'POST',
data : {'<?php echo($post_para);?>':file},
success : function(data) {
star = star + step;
current.find('.msg_wait').css('color','blue').html('成功');
count_num(num_zero);
//console.log(star+''+file);
dg_ajax(dom, star, step);
},
error : function() {
current.find('.msg_wait').css('color','red').html('重试');
dg_ajax(dom, star, step);
}
});
}
}
//计数显示
var num_zero = 1;
function count_num(num) {
$('#count_num').html('已更新'+num+'个页面 进度'+(Math.ceil(num*100/<?php echo(count($file));?>))+'% ').show();
num_zero++;
}
});
</script>
</head>
<body>
<div class="container">
<div class="row show-grid">
<ul class="nav nav-pills">
<li class="active dropdown mr10">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
站点:<?php echo($this->config->item('site_code'));?>
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li>
<a class="sss">jp</a>
</li>
<li>
<a class="sss">gm</a>
</li>
<li>
<a class="sss">vc</a>
</li>
<li>
<a class="sss">vac</a>
</li>
<li>
<a class="sss">ru</a>
</li>
<li>
<a class="sss">it</a>
</li>
</ul>
</li>
<span class="mt12 label label-success">缓存目录<?php echo(count($path));?></span>
<span class="mt12 label label-info">含文件<?php echo(count($file));?></span>
<span class="mt12 label label-important none" id="count_num">已更新0个页面 进度0%</span>
<form class="form-search" id="path_search" action="#" method="post">
<input type="text" placeholder="输入路径删选,例如:/tours/。" value="<?php if(isset($_POST['p'])) {echo($_POST['p']);}?>" class="input-medium search-query" name="p"/>
<button type="submit" class="btn">筛选</button>
</form>
<a id="update" class="btn mr10 btn-info">更新</a>
</ul>
</div>
<div class="row">
<table class="table table-hover">
<thead>
<tr>
<th>#SN</th>
<th>文件名</th>
<th>更新日期</th>
<th>更新状态</th>
</tr>
</thead>
<tbody class="data_group">
<?php foreach($file as $key=>$it) { ?>
<tr class="data">
<td><?php echo($key+1);?></td>
<?php if (strlen($it)>100) { ?>
<td class="file" title="<?php echo($it);?>"><?php echo(substr($it, 0, 40));?>..........<?php echo(substr($it, -35));?></td>
<?php } else { ?>
<td class="file" title="<?php echo($it);?>"><?php echo($it);?></td>
<?php } ?>
<td><?php echo($file_time[$it]); ?></td>
<td class="msg_wait">无操作</td>
</tr>
<?php } ?>
</tbody>
</table>
</div>
</div>
</body>
</html>

@ -3,23 +3,23 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>信息管理</title>
<link rel="stylesheet" href="http://data.chtcdn.com/js/poshytip/tip-yellow/tip-yellow.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/zTree/zTreeStyle/zTreeStyle.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/zTree/demo.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/modaldialog/css/jquery.modaldialog.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/kindeditor/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="http://data.chtcdn.com/css/layout.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css" type="text/css" />
<script type="text/javascript" src="http://data.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/jquery-ui/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/jquery.form.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/poshytip/jquery.poshytip.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/zTree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/modaldialog/jquery.modaldialog.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/basic.js"></script>
<link rel="shortcut icon" href="http://data.chtcdn.com/bootstrap/img/glyphicons_290_skull.png">
<link rel="stylesheet" href="//data.chtcdn.com/js/poshytip/tip-yellow/tip-yellow.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/zTree/zTreeStyle/zTreeStyle.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/zTree/demo.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/modaldialog/css/jquery.modaldialog.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/kindeditor/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="//data.chtcdn.com/css/layout.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/jquery-ui/smoothness/jquery-ui-1.8.21.custom.css" type="text/css" />
<script type="text/javascript" src="//data.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/jquery-ui/jquery-ui-1.8.21.custom.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/jquery.form.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/poshytip/jquery.poshytip.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/zTree/jquery.ztree.all.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/modaldialog/jquery.modaldialog.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/kindeditor/kindeditor-min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/basic.js"></script>
<link rel="shortcut icon" href="//data.chtcdn.com/bootstrap/img/glyphicons_290_skull.png">
<script language="javascript">
//快速图片上传

@ -13,7 +13,7 @@ foreach($all_information as $info)
if($info->ic_sitecode=='cht')
{
//echo 'http://174.132.46.155:7788'.$info->ic_url.'@cache@refresh'.'<br>';
echo 'http://www.chinahighlights.com/api/community/updatecache.asp?other=1&site=info&gurl='.$info->ic_url.'<br>';
echo 'https://www.chinahighlights.com/api/community/updatecache.asp?other=1&site=info&gurl='.$info->ic_url.'<br>';
}
else
{

@ -3,18 +3,18 @@
<head>
<meta charset="utf-8">
<title>CHT Author</title>
<link href="http://data.chtcdn.com/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="http://data.chtcdn.com/js/poshytip/tip-yellow/tip-yellow.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/modaldialog/css/jquery.modaldialog.css" type="text/css" />
<link rel="stylesheet" href="http://data.chtcdn.com/js/kindeditor/themes/default/default.css" type="text/css" media="screen" />
<script type="text/javascript" src="http://data.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/poshytip/jquery.poshytip.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/jquery.form.min.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/modaldialog/jquery.modaldialog.js"></script>
<link href="//data.chtcdn.com/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="//data.chtcdn.com/js/poshytip/tip-yellow/tip-yellow.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/modaldialog/css/jquery.modaldialog.css" type="text/css" />
<link rel="stylesheet" href="//data.chtcdn.com/js/kindeditor/themes/default/default.css" type="text/css" media="screen" />
<script type="text/javascript" src="//data.chtcdn.com/js/jquery.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/poshytip/jquery.poshytip.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/jquery.form.min.js"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/modaldialog/jquery.modaldialog.js"></script>
<script type="text/javascript" src="/js/kindeditor/kindeditor.js"></script>
<script type="text/javascript" src="http://data.chtcdn.com/js/basic.js"></script>
<script src="http://data.chtcdn.com/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="//data.chtcdn.com/js/basic.js"></script>
<script src="//data.chtcdn.com/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>

@ -1,11 +1,11 @@
/*!
* Bootstrap v3.2.0 (http://getbootstrap.com)
* Bootstrap v3.2.0 (//getbootstrap.com)
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
/*!
* Generated using the Bootstrap Customizer (http://v3.bootcss.com/customize/?id=c445cd4fe2d2c85779be)
* Generated using the Bootstrap Customizer (//v3.bootcss.com/customize/?id=c445cd4fe2d2c85779be)
* Config saved to config.json and https://gist.github.com/c445cd4fe2d2c85779be
*/
/*! normalize.css v3.0.1 | MIT License | git.io/normalize */
@ -319,7 +319,7 @@ hr {
clip: auto;
}
.subNav.bread{color: #A31002; font-family: Arial,Helvetica,sans-serif; font-size: 12px; margin-bottom:20px;}
.subNav.bread a{ background:url("http://data.arachina.com/information-view/information/culture/image/list_left.jpg") no-repeat scroll right center rgba(0, 0, 0, 0);
.subNav.bread a{ background:url("//data.arachina.com/information-view/information/culture/image/list_left.jpg") no-repeat scroll right center rgba(0, 0, 0, 0);
color: #333333;
font-family: Arial,Helvetica,sans-serif;
font-size: 12px;

@ -3,7 +3,7 @@
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/

File diff suppressed because one or more lines are too long

@ -3,7 +3,7 @@
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/

File diff suppressed because one or more lines are too long

@ -2,6 +2,6 @@
Datepicker for Bootstrap
Copyright 2012 Stefan Petre
Licensed under the Apache License v2.0
http://www.apache.org/licenses/LICENSE-2.0
//www.apache.org/licenses/LICENSE-2.0
*/
.datepicker { top: 0; left: 0; padding: 4px; margin-top: 1px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; /*.dow { border-top: 1px solid #ddd !important; }*/ } .datepicker:before { content: ''; display: inline-block; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 7px solid #ccc; border-bottom-color: rgba(0, 0, 0, 0.2); position: absolute; top: -7px; left: 6px; } .datepicker:after { content: ''; display: inline-block; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 6px solid #ffffff; position: absolute; top: -6px; left: 7px; } .datepicker > div { display: none; } .datepicker table { width: 100%; margin: 0; } .datepicker td, .datepicker th { text-align: center; width: 20px; height: 20px; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .datepicker td.day:hover { background: #eeeeee; cursor: pointer; } .datepicker td.old, .datepicker td.new { color: #999999; } .datepicker td.active, .datepicker td.active:hover { background-color: #006dcc; background-image: -moz-linear-gradient(top, #0088cc, #0044cc); background-image: -ms-linear-gradient(top, #0088cc, #0044cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(top, #0088cc, #0044cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0); border-color: #0044cc #0044cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .datepicker td.active:hover, .datepicker td.active:hover:hover, .datepicker td.active:active, .datepicker td.active:hover:active, .datepicker td.active.active, .datepicker td.active:hover.active, .datepicker td.active.disabled, .datepicker td.active:hover.disabled, .datepicker td.active[disabled], .datepicker td.active:hover[disabled] { background-color: #0044cc; } .datepicker td.active:active, .datepicker td.active:hover:active, .datepicker td.active.active, .datepicker td.active:hover.active { background-color: #003399 \9; } .datepicker td span { display: block; width: 47px; height: 54px; line-height: 54px; float: left; margin: 2px; cursor: pointer; -webkit-border-radius: 4px; -moz-border-radius: 4px; border-radius: 4px; } .datepicker td span:hover { background: #eeeeee; } .datepicker td span.active { background-color: #006dcc; background-image: -moz-linear-gradient(top, #0088cc, #0044cc); background-image: -ms-linear-gradient(top, #0088cc, #0044cc); background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); background-image: -o-linear-gradient(top, #0088cc, #0044cc); background-image: linear-gradient(top, #0088cc, #0044cc); background-repeat: repeat-x; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#0088cc', endColorstr='#0044cc', GradientType=0); border-color: #0044cc #0044cc #002a80; border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); color: #fff; text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); } .datepicker td span.active:hover, .datepicker td span.active:active, .datepicker td span.active.active, .datepicker td span.active.disabled, .datepicker td span.active[disabled] { background-color: #0044cc; } .datepicker td span.active:active, .datepicker td span.active.active { background-color: #003399 \9; } .datepicker td span.old { color: #999999; } .datepicker th.switch { width: 145px; } .datepicker th.next, .datepicker th.prev { font-size: 19.5px; } .datepicker thead tr:first-child th { cursor: pointer; } .datepicker thead tr:first-child th:hover { background: #eeeeee; } .input-append.date .add-on i, .input-prepend.date .add-on i { display: block; cursor: pointer; width: 16px; height: 16px; }

@ -1,4 +1,4 @@
@import url('http://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic');
@import url('//fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic');
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
audio:not([controls]){display:none;}

@ -1,4 +1,4 @@
@import url('http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700');
@import url('//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700');
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
audio:not([controls]){display:none;}

@ -1,4 +1,4 @@
@import url(http://fonts.googleapis.com/css?family=Crete+Round);
@import url(//fonts.googleapis.com/css?family=Crete+Round);
article,aside,details,figcaption,figure,footer,header,hgroup,nav,section{display:block;}
audio,canvas,video{display:inline-block;*display:inline;*zoom:1;}
audio:not([controls]){display:none;}

@ -1,6 +1,6 @@
/* =========================================================
* bootstrap-datepicker.js
* http://www.eyecon.ro/bootstrap-datepicker
* //www.eyecon.ro/bootstrap-datepicker
* =========================================================
* Copyright 2012 Stefan Petre
*
@ -8,7 +8,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

@ -1,6 +1,6 @@
/* ===================================================
* bootstrap-transition.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#transitions
* //twitter.github.com/bootstrap/javascript.html#transitions
* ===================================================
* Copyright 2012 Twitter, Inc.
*
@ -8,7 +8,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -23,7 +23,7 @@
"use strict"; // jshint ;_;
/* CSS TRANSITION SUPPORT (http://www.modernizr.com/)
/* CSS TRANSITION SUPPORT (//www.modernizr.com/)
* ======================================================= */
$(function () {
@ -59,7 +59,7 @@
}(window.jQuery);/* ==========================================================
* bootstrap-alert.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#alerts
* //twitter.github.com/bootstrap/javascript.html#alerts
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
@ -67,7 +67,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -146,7 +146,7 @@
}(window.jQuery);/* ============================================================
* bootstrap-button.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#buttons
* //twitter.github.com/bootstrap/javascript.html#buttons
* ============================================================
* Copyright 2012 Twitter, Inc.
*
@ -154,7 +154,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -239,7 +239,7 @@
}(window.jQuery);/* ==========================================================
* bootstrap-carousel.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#carousel
* //twitter.github.com/bootstrap/javascript.html#carousel
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
@ -247,7 +247,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -414,7 +414,7 @@
}(window.jQuery);/* =============================================================
* bootstrap-collapse.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#collapse
* //twitter.github.com/bootstrap/javascript.html#collapse
* =============================================================
* Copyright 2012 Twitter, Inc.
*
@ -422,7 +422,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -569,7 +569,7 @@
}(window.jQuery);/* ============================================================
* bootstrap-dropdown.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#dropdowns
* //twitter.github.com/bootstrap/javascript.html#dropdowns
* ============================================================
* Copyright 2012 Twitter, Inc.
*
@ -577,7 +577,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -716,7 +716,7 @@
}(window.jQuery);/* =========================================================
* bootstrap-modal.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#modals
* //twitter.github.com/bootstrap/javascript.html#modals
* =========================================================
* Copyright 2012 Twitter, Inc.
*
@ -724,7 +724,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -950,7 +950,7 @@
}(window.jQuery);
/* ===========================================================
* bootstrap-tooltip.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#tooltips
* //twitter.github.com/bootstrap/javascript.html#tooltips
* Inspired by the original jQuery.tipsy by Jason Frame
* ===========================================================
* Copyright 2012 Twitter, Inc.
@ -959,7 +959,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -1225,7 +1225,7 @@
}(window.jQuery);/* ===========================================================
* bootstrap-popover.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#popovers
* //twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, Inc.
*
@ -1233,7 +1233,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -1327,7 +1327,7 @@
}(window.jQuery);/* =============================================================
* bootstrap-scrollspy.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#scrollspy
* //twitter.github.com/bootstrap/javascript.html#scrollspy
* =============================================================
* Copyright 2012 Twitter, Inc.
*
@ -1335,7 +1335,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -1477,7 +1477,7 @@
}(window.jQuery);/* ========================================================
* bootstrap-tab.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#tabs
* //twitter.github.com/bootstrap/javascript.html#tabs
* ========================================================
* Copyright 2012 Twitter, Inc.
*
@ -1485,7 +1485,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -1609,7 +1609,7 @@
}(window.jQuery);/* =============================================================
* bootstrap-typeahead.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#typeahead
* //twitter.github.com/bootstrap/javascript.html#typeahead
* =============================================================
* Copyright 2012 Twitter, Inc.
*
@ -1617,7 +1617,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@ -1919,7 +1919,7 @@
}(window.jQuery);
/* ==========================================================
* bootstrap-affix.js v2.2.0
* http://twitter.github.com/bootstrap/javascript.html#affix
* //twitter.github.com/bootstrap/javascript.html#affix
* ==========================================================
* Copyright 2012 Twitter, Inc.
*
@ -1927,7 +1927,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* //www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -15,17 +15,17 @@
.feedback_home_list {
margin-left:0px;
margin-top:10px;
background:url(http://www.chinahighlights.net/image/33.gif) no-repeat;
background:url(//www.chinahighlights.net/image/33.gif) no-repeat;
padding-left:26px;
}
.feedback_home_list a {
margin-left:8px;
background:url(http://www.chinahighlights.net/image/select.png) no-repeat;
background:url(//www.chinahighlights.net/image/select.png) no-repeat;
padding-left:26px;
background-position:0px 2px;
}
.feedback_home_list .active {
font-weight:700;
background:url(http://www.chinahighlights.net/image/select.png) no-repeat;
background:url(//www.chinahighlights.net/image/select.png) no-repeat;
background-position:0px -36px;
}

@ -1,6 +1,6 @@
/*!
* jQuery UI Bootstrap (0.5)
* http://addyosmani.github.com/jquery-ui-bootstrap
* //addyosmani.github.com/jquery-ui-bootstrap
*
* Copyright 2012 - 2013, Addy Osmani
* Dual licensed under the MIT or GPL Version 2 licenses.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -3,10 +3,10 @@
* jQuery-Plugin "pngFix"
* Version: 1.2, 09.03.2009
* by Andreas Eberhard, andreas.eberhard@gmail.com
* http://jquery.andreaseberhard.de/
* //jquery.andreaseberhard.de/
*
* Copyright (c) 2007 Andreas Eberhard
* Licensed under GPL (http://www.opensource.org/licenses/gpl-license.php)
* Licensed under GPL (//www.opensource.org/licenses/gpl-license.php)
*
* Changelog:
* 09.03.2009 Version 1.2
@ -14,7 +14,7 @@
* 11.09.2007 Version 1.1
* - removed noConflict
* - added png-support for input type=image
* - 01.08.2007 CSS background-image support extension added by Scott Jehl, scott@filamentgroup.com, http://www.filamentgroup.com
* - 01.08.2007 CSS background-image support extension added by Scott Jehl, scott@filamentgroup.com, //www.filamentgroup.com
* 31.05.2007 initial Version 1.0
* --------------------------------------------------------------------
* @example $(function(){$(document).pngFix();});

@ -1,6 +1,6 @@
/*!
* jQuery UI Bootstrap (0.5)
* http://addyosmani.github.com/jquery-ui-bootstrap
* //addyosmani.github.com/jquery-ui-bootstrap
*
* Copyright 2012 - 2013, Addy Osmani
* Dual licensed under the MIT or GPL Version 2 licenses.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
/*!
* jQuery UI Bootstrap (0.5)
* http://addyosmani.github.com/jquery-ui-bootstrap
* //addyosmani.github.com/jquery-ui-bootstrap
*
* Copyright 2012 - 2013, Addy Osmani
* Dual licensed under the MIT or GPL Version 2 licenses.

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
/*!
* jQuery UI Bootstrap (0.5)
* http://addyosmani.github.com/jquery-ui-bootstrap
* //addyosmani.github.com/jquery-ui-bootstrap
*
* Copyright 2012 - 2013, Addy Osmani
* Dual licensed under the MIT or GPL Version 2 licenses.

File diff suppressed because one or more lines are too long

@ -4,7 +4,7 @@
* E-Mail : litqqs@163.com
* Copyright : TengQiu Li
* Version : 2.3.6
* Site : http://www.e512.net
* Site : //www.e512.net
*************************************************/
(function(window,undefined){
if(window.TQE) return;
@ -444,7 +444,7 @@ TQE=function(objId,userConfig)
url=uploadUrl.substring(1);
}else{
//修正相对网址
if(!('http://'==uploadUrl.substr(0,7).toLowerCase() || '/'==uploadUrl.substr(0,1) || 'https://'==uploadUrl.substr(0,6).toLowerCase())){
if(!('//'==uploadUrl.substr(0,7).toLowerCase() || '/'==uploadUrl.substr(0,1) || 'https://'==uploadUrl.substr(0,6).toLowerCase())){
if('?'==uploadUrl.substr(0,1)){
uploadUrl = location.pathname+uploadUrl;
}else{
@ -1985,9 +1985,9 @@ TQE.config={
//模板
//插入媒体***时的模板代码,
//flash 宏 {$url} {$width} {$height}
'tplFlash':'<embed src="{$url}" width="{$width}" height="{$height}" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always"></embed>',
'tplFlash':'<embed src="{$url}" width="{$width}" height="{$height}" quality="high" pluginspage="//www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always"></embed>',
//flv视频 宏 {$url} {$width} {$height} {$auto_start}
'tplFlv':'<embed src="'+TQE.url+'flvPlayer.swf" flashvars="vcastr_file={$url}&IsAutoPlay={$auto_start}" width="{$width}" height="{$height}" quality="high" bgcolor="#0E0E0E" name="play" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" />',
'tplFlv':'<embed src="'+TQE.url+'flvPlayer.swf" flashvars="vcastr_file={$url}&IsAutoPlay={$auto_start}" width="{$width}" height="{$height}" quality="high" bgcolor="#0E0E0E" name="play" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" wmode="opaque" />',
//rm视频 宏 {$url} {$width} {$height} {$auto_start}
'tplRm':'<embed src="{$url}" width={$width} height={$height} autostart="{$auto_start}"type="audio/x-pn-realaudio-plugin" console="Clip1" controls="ImageWindow" ></embed>',
//windows的媒体文件 宏 {$url} {$width} {$height} {$auto_start}
@ -2813,7 +2813,7 @@ TQE.toolbarBottons={
target=es['target'].value,
title=es['title'].value,
titleTxt='';
if('http://'==href || ''==href){
if('//'==href || ''==href){
$.exeCmd('Unlink');
return false;
}
@ -3208,7 +3208,7 @@ TQE.toolbarBottons={
click:function($,sender){
var o=TQE.find($.objId+'TQHelpPanel');
if(null==o){
o = TQE.CE('DIV',$.objId+'TQHelpPanel', '<form class="ePopForm" style="line-height:20px;">TQEditor<br/>'+resStrVersion+': '+version+'<br/>'+resStrSite+': <a href="http://www.e512.net" target="_blank">e512.net</a><br />'+resStrMail+': <a href="mailto:litqqs@163.com">litqqs@163.com</a><br /></form>' ,true);
o = TQE.CE('DIV',$.objId+'TQHelpPanel', '<form class="ePopForm" style="line-height:20px;">TQEditor<br/>'+resStrVersion+': '+version+'<br/>'+resStrSite+': <a href="//www.e512.net" target="_blank">e512.net</a><br />'+resStrMail+': <a href="mailto:litqqs@163.com">litqqs@163.com</a><br /></form>' ,true);
o.className='ePopPanel';
}
TQE.pop(o,sender);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -1,6 +1,6 @@
function ubb2html(str)
{
var i=0 ,codes=[], s=''+str, split_str='', tqeUrl='http://www.qs.com/vt/inc/client/js/tqEditor/',
var i=0 ,codes=[], s=''+str, split_str='', tqeUrl='//www.qs.com/vt/inc/client/js/tqEditor/',
escUrl=function(url){return url.replace(/\[\]/g, function(c){return {'[':'%5b',']':'%5d'}[c];})};//TQE.url;
s=s.replace(/[<>\" ]/g,function(c){return {'<':'&lt;','>':'&gt;','"':'&quot;',' ':'&nbsp;'}[c];} ).replace(/\r?\n/g, '<br>');
do{split_str= '__CODE__'+Math.random()+'_';}while(s.indexOf(split_str)>=0);
@ -8,7 +8,7 @@ function ubb2html(str)
.replace(/\[flv(?:\s*=\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+)\s*)?)?\](.*?)\[\/flv\]/ig, function(all,w,h,auto_start,url){
if(!w) w=320;
if(!h) h=240;
return '<embed id="flvPlayer" src="'+tqeUrl+'flvPlayer.swf" flashvars="vcastr_file='+ escUrl(url)+'&IsAutoPlay='+auto_start+'" width="'+w+'" height="'+h+'" quality="high" bgcolor="#0E0E0E" name="play" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" wmode="opaque" />'})
return '<embed id="flvPlayer" src="'+tqeUrl+'flvPlayer.swf" flashvars="vcastr_file='+ escUrl(url)+'&IsAutoPlay='+auto_start+'" width="'+w+'" height="'+h+'" quality="high" bgcolor="#0E0E0E" name="play" align="middle" allowscriptaccess="sameDomain" allowfullscreen="true" type="application/x-shockwave-flash" pluginspage="//www.macromedia.com/go/getflashplayer" wmode="opaque" />'})
.replace(/\[rm(?:\s*=\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+)\s*)?)?\](.*?)\[\/rm\]/ig, function(all,w,h,auto_start,url){
if(!w) w=320;
if(!h) h=240;

@ -1,13 +1,13 @@
/**
* SWFUpload: http://www.swfupload.org, http://swfupload.googlecode.com
* SWFUpload: //www.swfupload.org, //swfupload.googlecode.com
*
* mmSWFUpload 1.0: Flash upload dialog - http://profandesign.se/swfupload/, http://www.vinterwebb.se/
* mmSWFUpload 1.0: Flash upload dialog - //profandesign.se/swfupload/, //www.vinterwebb.se/
*
* SWFUpload is (c) 2006-2007 Lars Huring, Olov Nilz閚 and Mammon Media and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
* //www.opensource.org/licenses/mit-license.php
*
* SWFUpload 2 is (c) 2007-2008 Jake Roberts and is released under the MIT License:
* http://www.opensource.org/licenses/mit-license.php
* //www.opensource.org/licenses/mit-license.php
*
*/
@ -228,7 +228,7 @@ SWFUpload.prototype.loadFlash = function () {
// Private: getFlashHTML generates the object tag needed to embed the flash in to the document
SWFUpload.prototype.getFlashHTML = function () {
// Flash Satay object syntax: http://www.alistapart.com/articles/flashsatay
// Flash Satay object syntax: //www.alistapart.com/articles/flashsatay
return ['<object id="', this.movieName, '" type="application/x-shockwave-flash" data="', this.settings.flash_url, '" width="', this.settings.button_width, '" height="', this.settings.button_height, '" class="swfupload">',
'<param name="wmode" value="', this.settings.button_window_mode, '" />',
'<param name="movie" value="', this.settings.flash_url, '" />',

@ -137,7 +137,7 @@ toString=input.toString;if(typeof toString==="function"){val=toString.call(input
throw new TypeError();}
var toObject=function(o){if(o==null){throw new TypeError("can't convert "+o+" to object");}
return Object(o);};});define('ace/lib/dom',['require','exports','module'],function(require,exports,module){if(typeof document=="undefined")
return;var XHTML_NS="http://www.w3.org/1999/xhtml";exports.getDocumentHead=function(doc){if(!doc)
return;var XHTML_NS="//www.w3.org/1999/xhtml";exports.getDocumentHead=function(doc){if(!doc)
doc=document;return doc.head||doc.getElementsByTagName("head")[0]||doc.documentElement;}
exports.createElement=function(tag,ns){return document.createElementNS?document.createElementNS(ns||XHTML_NS,tag):document.createElement(tag);};exports.hasCssClass=function(el,name){var classes=el.className.split(/\s+/g);return classes.indexOf(name)!==-1;};exports.addCssClass=function(el,name){if(!exports.hasCssClass(el,name)){el.className+=" "+name;}};exports.removeCssClass=function(el,name){var classes=el.className.split(/\s+/g);while(true){var index=classes.indexOf(name);if(index==-1){break;}
classes.splice(index,1);}

@ -171,7 +171,7 @@ function information_check() {
return unsubmit_flag;
}
//http://jquery.malsup.com/form/
////jquery.malsup.com/form/
function submitForm(form) {
$('#' + form).ajaxSubmit({
success:successfun,
@ -309,9 +309,9 @@ function update_cache(domain, url, msg_obj) {
$('#' + msg_obj).html('\u7a0d\u7b49...');
var cache_url;
if (domain == 'http://www.chinahighlights.com') {
cache_url = url.replace("http://www.chinahighlights.com", "http://174.132.46.155:7788") + '@cache@refresh';
} else if (domain == 'http://www.chinarundreisen.com' || domain == 'http://www.voyageschine.com' || domain == 'http://www.arachina.com' || domain == 'http://www.chinahighlights.ru' || domain == 'http://www.viaje-a-china.com' || domain == 'http://www.viaggio-in-cina.it') {
if (domain == '//www.chinahighlights.com') {
cache_url = url.replace("//www.chinahighlights.com", "//174.132.46.155:7788") + '@cache@refresh';
} else if (domain == '//www.chinarundreisen.com' || domain == '//www.voyageschine.com' || domain == '//www.arachina.com' || domain == '//www.chinahighlights.ru' || domain == '//www.viaje-a-china.com' || domain == '//www.viaggio-in-cina.it') {
cache_url = domain + '/index.php/welcome/update_cache?static_html_url=' + url.replace(domain, '');
} else {
cache_url = domain + url + '@cache@refresh';

File diff suppressed because one or more lines are too long

@ -729,8 +729,8 @@
/*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */
/*!
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
* Font Awesome 4.3.0 by @davegandy - //fontawesome.io - @fontawesome
* License - //fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
* -------------------------- */

File diff suppressed because one or more lines are too long

@ -13,8 +13,8 @@
@charset "UTF-8";
/*! prefixes.scss v0.1.0 | Author: Pandao | https://github.com/pandao/prefixes.scss | MIT license | Copyright (c) 2015 */
/*!
* Font Awesome 4.3.0 by @davegandy - http://fontawesome.io - @fontawesome
* License - http://fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
* Font Awesome 4.3.0 by @davegandy - //fontawesome.io - @fontawesome
* License - //fontawesome.io/license (Font: SIL OFL 1.1, CSS: MIT License)
*/
/* FONT PATH
* -------------------------- */

File diff suppressed because one or more lines are too long

@ -3434,13 +3434,13 @@
// Emoji graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "//www.emoji-cheat-sheet.com/graphics/emojis/",
ext : ".png"
};
// Twitter Emoji (Twemoji) graphics files url path
editormd.twemoji = {
path : "http://twemoji.maxcdn.com/36x36/",
path : "//twemoji.maxcdn.com/36x36/",
ext : ".png"
};

File diff suppressed because one or more lines are too long

@ -3364,13 +3364,13 @@
// Emoji graphics files url path
editormd.emoji = {
path : "http://www.emoji-cheat-sheet.com/graphics/emojis/",
path : "//www.emoji-cheat-sheet.com/graphics/emojis/",
ext : ".png"
};
// Twitter Emoji (Twemoji) graphics files url path
editormd.twemoji = {
path : "http://twemoji.maxcdn.com/36x36/",
path : "//twemoji.maxcdn.com/36x36/",
ext : ".png"
};

File diff suppressed because one or more lines are too long

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// Open simple dialogs on top of an editor. Relies on dialog.css.

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
/**
* Tag-closer extension for CodeMirror.

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,7 +1,7 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// Depends on coffeelint.js from http://www.coffeelint.org/js/coffeelint.js
// Depends on coffeelint.js from //www.coffeelint.org/js/coffeelint.js
// declare global: coffeelint

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// Depends on csslint.js from https://github.com/stubbornella/csslint

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// Depends on jsonlint.js from https://github.com/zaach/jsonlint

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// declare global: diff_match_patch, DIFF_INSERT, DIFF_DELETE, DIFF_EQUAL
@ -13,7 +13,7 @@
})(function(CodeMirror, diff_match_patch) {
"use strict";
var Pos = CodeMirror.Pos;
var svgNS = "http://www.w3.org/2000/svg";
var svgNS = "//www.w3.org/2000/svg";
function DiffView(mv, type) {
this.mv = mv;

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function() {
CodeMirror.defineMode("markdown_with_stex", function(){

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
// Utility function that allows modes to be combined. The mode given
// as the base argument takes care of most of the normal mode

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
window.CodeMirror = {};

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
/* Just enough of CodeMirror to run runMode under node.js */

@ -1,5 +1,5 @@
// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE
// Distributed under an MIT license: //codemirror.net/LICENSE
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save