mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-26 22:02:13 +09:00
merge from branch 1.5.3.2 (~r11282)
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11380 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
commit
9f5e25a15e
136 changed files with 414 additions and 317 deletions
|
|
@ -845,6 +845,13 @@ class Context {
|
|||
elseif($this->getRequestMethod()=='POST'&&isset($_POST[$key])) $set_to_vars = true;
|
||||
else $set_to_vars = false;
|
||||
|
||||
if($set_to_vars)
|
||||
{
|
||||
$val = preg_replace('/<\?.*(\?>)?/iUsm', '', $val);
|
||||
$val = preg_replace('/<\%.*(\%>)?/iUsm', '', $val);
|
||||
$val = preg_replace('/<script(\s|\S)*language[\s]*=("|\')php("|\')(\s|\S)*>.*<[\s]*\/[\s]*script[\s]*>/iUsm', '', $val);
|
||||
}
|
||||
|
||||
$this->set($key, $val, $set_to_vars);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -407,6 +407,7 @@
|
|||
*/
|
||||
function executeQuery($query_id, $args = NULL, $arg_columns = NULL) {
|
||||
static $cache_file = array();
|
||||
|
||||
if(!$query_id) return new Object(-1, 'msg_invalid_queryid');
|
||||
if(!$this->db_type) return;
|
||||
|
||||
|
|
@ -414,7 +415,7 @@
|
|||
|
||||
$this->query_id = $query_id;
|
||||
|
||||
if(!isset($cache_file[$query_id])) {
|
||||
if(!isset($cache_file[$query_id]) || !file_exists($cache_file[$query_id])) {
|
||||
$id_args = explode('.', $query_id);
|
||||
if(count($id_args) == 2) {
|
||||
$target = 'modules';
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class VirtualXMLDisplayHandler {
|
|||
if($message != 'fail') $output->message = $message;
|
||||
}
|
||||
|
||||
$html = '<script>'."\n";
|
||||
$html = '<script type="text/javascript">'."\n";
|
||||
if($output->message) $html .= 'alert("'.$output->message.'");'."\n";
|
||||
if($output->url) {
|
||||
$url = preg_replace('/#(.+)$/i','',$output->url);
|
||||
|
|
|
|||
|
|
@ -344,7 +344,7 @@
|
|||
$buff .=
|
||||
'<input type="hidden" name="'.$column_name.'" value="'.$value.'" />'.
|
||||
'<input type="text" id="date_'.$column_name.'" value="'.zdate($value,'Y-m-d').'" class="date" /> <input type="button" value="' . Context::getLang('cmd_delete') . '" id="dateRemover_' . $column_name . '" />'."\n".
|
||||
'<script>'."\n".
|
||||
'<script type="text/javascript">'."\n".
|
||||
'(function($){'."\n".
|
||||
' $(function(){'."\n".
|
||||
' var option = { dateFormat: "yy-mm-dd", changeMonth:true, changeYear:true, gotoCurrent: false,yearRange:\'-100:+10\', onSelect:function(){'."\n".
|
||||
|
|
|
|||
|
|
@ -481,7 +481,7 @@
|
|||
if($type == "view" && $this->module_info->use_mobile == "Y" && Mobile::isMobileCheckByAgent())
|
||||
{
|
||||
global $lang;
|
||||
$header = '<style>div.xe_mobile{opacity:0.7;margin:1em 0;padding:.5em;background:#333;border:1px solid #666;border-left:0;border-right:0}p.xe_mobile{text-align:center;margin:1em 0}a.xe_mobile{color:#ff0;font-weight:bold;font-size:24px}@media only screen and (min-width:500px){a.xe_mobile{font-size:15px}}</style>';
|
||||
$header = '<style type="text/css">div.xe_mobile{opacity:0.7;margin:1em 0;padding:.5em;background:#333;border:1px solid #666;border-left:0;border-right:0}p.xe_mobile{text-align:center;margin:1em 0}a.xe_mobile{color:#ff0;font-weight:bold;font-size:24px}@media only screen and (min-width:500px){a.xe_mobile{font-size:15px}}</style>';
|
||||
$footer = '<div class="xe_mobile"><p class="xe_mobile"><a class="xe_mobile" href="'.getUrl('m', '1').'">'.$lang->msg_pc_to_mobile.'</a></p></div>';
|
||||
Context::addHtmlHeader($header);
|
||||
Context::addHtmlFooter($footer);
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class TemplateHandler {
|
|||
$buff = preg_replace('@<!--//.*?-->@s', '', $buff);
|
||||
|
||||
// replace value of src in img/input/script tag
|
||||
$buff = preg_replace_callback('/<(?:img|input|script)(?:(?!["\'\/]\s*>).)* src="(?!https?:\/\/|[\/\{])([^"]+)"/is', array($this, '_replacePath'), $buff);
|
||||
$buff = preg_replace_callback('/<(?:img|input|script)[^<>]*src="(?!https?:\/\/|[\/\{])([^"]+)"/is', array($this, '_replacePath'), $buff);
|
||||
|
||||
// replace loop and cond template syntax
|
||||
$buff = $this->_parseInline($buff);
|
||||
|
|
@ -223,6 +223,7 @@ class TemplateHandler {
|
|||
* @param array $matches
|
||||
* @return string
|
||||
**/
|
||||
|
||||
function _compileFormAuthGeneration($matches)
|
||||
{
|
||||
// form ruleset attribute move to hidden tag
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue