[LON-CAPA-cvs] cvs: loncom /interface lonmenu.pm

www lon-capa-cvs@mail.lon-capa.org
Thu, 03 Apr 2003 15:23:41 -0000


www		Thu Apr  3 10:23:41 2003 EDT

  Modified files:              
    /loncom/interface	lonmenu.pm 
  Log:
  Disable Remote if timed out.
  
  
Index: loncom/interface/lonmenu.pm
diff -u loncom/interface/lonmenu.pm:1.51 loncom/interface/lonmenu.pm:1.52
--- loncom/interface/lonmenu.pm:1.51	Thu Apr  3 09:44:01 2003
+++ loncom/interface/lonmenu.pm	Thu Apr  3 10:23:41 2003
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Routines to control the menu
 #
-# $Id: lonmenu.pm,v 1.51 2003/04/03 14:44:01 www Exp $
+# $Id: lonmenu.pm,v 1.52 2003/04/03 15:23:41 www Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -364,6 +364,8 @@
 # The Remote actually gets launched!
 #
     my $configmenu=&rawconfig();
+    my $esclowerurl=&Apache::lonnet::escape($lowerurl);
+
     return(<<ENDREMOTESTARTUP);
 <script>
 
@@ -393,7 +395,7 @@
          $configmenu
          window.location='$lowerurl';  
       } else {
-         alert("Remote Control timed out. It is possible that it was blocked by pop-up window filters.");
+	  window.location='/adm/remote?action=collapse&url=$esclowerurl';
       }
    } else {
       wheelswitch();
@@ -402,7 +404,7 @@
 }
 
 function main() {
-   canceltim=setTimeout('tim=1;',60000);
+   canceltim=setTimeout('tim=1;',30000);
    window.status='-';
    wait();
 }