From 08cc7f673c377bf88897743e340097e93f1e95f4 Mon Sep 17 00:00:00 2001 From: ftimme <ft@falkotimme.com> Date: Wed, 16 Jan 2013 09:30:05 -0500 Subject: [PATCH] - Changed regex for redirect path (Web sites, subdomains, vhost subdomains, alias domains) and web folder (vhost subdomains) so that ".." is not allowed (in order to prevent path traversals). - nginx: don't allow folders for proxy redirects (subdomains and alias domains); URL is required. - nginx: modified rewriting. --- interface/web/js/scrigo.js.php | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/interface/web/js/scrigo.js.php b/interface/web/js/scrigo.js.php index 1051905..4b89998 100644 --- a/interface/web/js/scrigo.js.php +++ b/interface/web/js/scrigo.js.php @@ -1,8 +1,12 @@ <?php session_start(); include('../../lib/config.inc.php'); + require_once('../../lib/app.inc.php'); $lang = (isset($_SESSION['s']['language']) && $_SESSION['s']['language'] != '')?$_SESSION['s']['language']:'en'; include_once(ISPC_ROOT_PATH.'/web/strengthmeter/lib/lang/'.$lang.'_strengthmeter.lng'); + + $app->uses('ini_parser,getconf'); + $server_config_array = $app->getconf->get_global_config(); ?> var pageFormChanged = false; var tabChangeWarningTxt = ''; @@ -23,7 +27,14 @@ /*alert(request);*/ } +function resetFormChanged() { + pageFormChanged = false; +} + function showLoadIndicator() { +<?php +if($server_config_array['misc']['use_loadindicator'] == 'y'){ +?> requestsRunning += 1; if(requestsRunning < 2) { @@ -44,6 +55,9 @@ if(requestsRunning < 1) $(this).fadeOut('fast', function() { $(this).hide();}); }); } +<?php +} +?> } function hideLoadIndicator() { @@ -55,7 +69,13 @@ } function onAfterContentLoad() { +<?php +if($server_config_array['misc']['use_combobox'] == 'y'){ +?> $('#pageContent').find("select").combobox(); +<?php +} +?> } function loadContentRefresh(pagename) { -- Gitblit v1.9.1