[Mapbender-commits] r1291 - trunk/mapbender/http/javascripts
svn_mapbender at osgeo.org
svn_mapbender at osgeo.org
Thu May 3 06:23:25 EDT 2007
Author: astrid_emde
Date: 2007-05-03 06:23:25 -0400 (Thu, 03 May 2007)
New Revision: 1291
Modified:
trunk/mapbender/http/javascripts/mod_setTimeout.php
Log:
Modified: trunk/mapbender/http/javascripts/mod_setTimeout.php
===================================================================
--- trunk/mapbender/http/javascripts/mod_setTimeout.php 2007-05-03 09:53:23 UTC (rev 1290)
+++ trunk/mapbender/http/javascripts/mod_setTimeout.php 2007-05-03 10:23:25 UTC (rev 1291)
@@ -1,5 +1,6 @@
<?php
-# $Id:$
+# $Id$
+# maintained by http://www.mapbender.org/index.php/User:Astrid Emde
# http://www.mapbender.org/index.php/mod_setTimeout.php
# Copyright (C) 2002 CCGIS
#
@@ -16,6 +17,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
session_start();
require_once(dirname(__FILE__)."/../../conf/mapbender.conf");
$e_id_css = 'timeout';
@@ -25,18 +27,18 @@
?>
try{
- if (timeout_text){}
+ if (mod_timeout_text){}
}
catch(e){
- timeout_text = "Your session isn't valid anymore ...\n Press ok to restart the application!";
- //timeout_text = "Bitte beachten Sie, dass Ihre Session abgelaufen sein kann...\n Mit OK laden Sie die Anwendung neu!";
+ mod_timeout_text = "Your session may not be valid anymore!";
+ //mod_timeout_text = "Bitte beachten Sie, dass Ihre Session abgelaufen sein kann!";
}
try{
- if (timeout_interval){}
+ if (mod_timeout_ttl){}
}
catch(e){
- timeout_interval = '15';
+ mod_timeout_ttl = '15';
}
/*
@@ -44,10 +46,10 @@
* logout: request mod_logout after timeout
*/
try{
- if (timeout_action){}
+ if (mod_timeout_action){}
}
catch(e){
- timeout_action = 'alert';
+ mod_timeout_action = 'alert';
}
@@ -65,7 +67,7 @@
}
function mod_setTimeout_set(){
- mod_timeout_cnt = parseInt(timeout_interval);
+ mod_timeout_cnt = parseInt(mod_timeout_ttl);
mod_setTimeout_check();
}
@@ -83,13 +85,13 @@
str += "</span>";
writeTag("", "timeout", str );
- if(mod_timeout_cnt == 0 && timeout_action == 'alert'){
- var go = confirm(timeout_text);
+ if(mod_timeout_cnt == 0 && mod_timeout_action == 'alert'){
+ var go = confirm(mod_timeout_text);
if(go == true){
- document.location.href = "./login.php";
+ // document.location.href = "./login.php";
}
}
- if(mod_timeout_cnt == 0 && timeout_action == 'logout'){ document.location.href = "../php/mod_logout.php";}
+ if(mod_timeout_cnt == 0 && mod_timeout_action == 'logout'){ document.location.href = "../php/mod_logout.php";}
mod_timeout_cnt--;
}
More information about the Mapbender_commits
mailing list