diff options
author | Alib <aliboba@free.fr> | 2010-03-28 14:59:33 +0200 |
---|---|---|
committer | Alib <aliboba@free.fr> | 2010-03-28 14:59:33 +0200 |
commit | 2b1358884535497eebd6d2ad9a768b56e1953af6 (patch) | |
tree | b27dadd3ebb01c684ec71e8deb1c656e73d92596 /js | |
parent | 275c3cd3d4532aa927945a940bb9c5b8304ba365 (diff) | |
download | istreamdev-2b1358884535497eebd6d2ad9a768b56e1953af6.tar.gz istreamdev-2b1358884535497eebd6d2ad9a768b56e1953af6.tar.bz2 |
fix slashes in dir
Diffstat (limited to 'js')
-rw-r--r-- | js/functions.js | 15 | ||||
-rw-r--r-- | js/istreamdev.js | 6 |
2 files changed, 19 insertions, 2 deletions
diff --git a/js/functions.js b/js/functions.js index eefbca9..98609cd 100644 --- a/js/functions.js +++ b/js/functions.js @@ -121,4 +121,17 @@ function str_pad (input, pad_length, pad_string, pad_type) { return input;
}
-
+function addslashes(str) {
+str=str.replace(/\\/g,'\\\\');
+str=str.replace(/\'/g,'\\\'');
+str=str.replace(/\"/g,'\\"');
+str=str.replace(/\0/g,'\\0');
+return str;
+}
+function stripslashes(str) {
+str=str.replace(/\\'/g,'\'');
+str=str.replace(/\\"/g,'"');
+str=str.replace(/\\0/g,'\0');
+str=str.replace(/\\\\/g,'\\');
+return str;
+}
diff --git a/js/istreamdev.js b/js/istreamdev.js index f788ca5..7628f5e 100644 --- a/js/istreamdev.js +++ b/js/istreamdev.js @@ -49,6 +49,7 @@ jQT = new $.jQTouch({ // [GENERIC STUFF]
// Global variable
dataString = "action=getGlobals";
+showStatus( 0,"Getting configuration data" );
$.getJSON("bin/backend.php",
dataString,
function(data){
@@ -161,7 +162,7 @@ getRunningSessions(); $(document).ready(function(e){
$('#home').bind('pageAnimationStart', function(event, info){
if (info.direction == 'in') {
- getRunningSessions()
+ getRunningSessions()
}
})
});
@@ -184,6 +185,7 @@ $('#streaming').bind('pageAnimationStart', function(event, info){ });
//preload logos
function preloadLogos() {
+ showStatus( 0,"Preloading logo pictures" );
$.getJSON("bin/genlogolist.php",
dataString,
function(data){
@@ -270,6 +272,7 @@ $('#runningsessions li a').tap(function(event) { // Get Active broadcast & encoding sessions
function getRunningSessions() {
+showStatus( 0,"Getting active sessions" );
var dataString = "action=getRunningSessions";
$('#home #runningsessions').html('<li><span class="menutitle">SESSIONS</span></li>\n<li>Checking running session</li>');
//Json call to get category array
@@ -894,6 +897,7 @@ function gen_edittimer(id,name,active,channumber,channame,date,starttime,endtime }
//get full chanlist for timer page ( doing it one time on document load ).
function gen_formchanlist() {
+ showStatus( 0,"Getting VDR channels list" );
var dataString = 'action=getFullChanList';
$.getJSON("bin/backend.php",
dataString,
|