includes/clientside/static/enano-lib-basic.js
changeset 827 2c20563245b2
parent 824 28d9fbcd4f0d
child 840 6b99e02ad577
equal deleted inserted replaced
826:dcf5381ce8ba 827:2c20563245b2
   470 
   470 
   471 // Do not remove the following comment, it is used by jsres.php.
   471 // Do not remove the following comment, it is used by jsres.php.
   472 /*!END_INCLUDER*/
   472 /*!END_INCLUDER*/
   473 
   473 
   474 addOnloadHook(function() {
   474 addOnloadHook(function() {
       
   475   if ( $_REQUEST['auth'] )
       
   476   {
       
   477     var key = $_REQUEST['auth'];
       
   478     var loc = String(window.location);
       
   479     loc = loc.replace(/#.+$/, '').replace(/&auth=[0-9a-f]+/, '').replace(/\?auth=[0-9a-f]+(&)?/, '$1');
       
   480     if ( key != 'false' )
       
   481     {
       
   482       var sep = loc.indexOf('?') != -1 ? '&' : '?';
       
   483       loc = loc + sep + 'auth=' + key;
       
   484     }
       
   485     console.debug(loc);
       
   486     window.location = loc;
       
   487   }
   475   if ( $_REQUEST['do'] )
   488   if ( $_REQUEST['do'] )
   476   {
   489   {
   477     var act = $_REQUEST['do'];
   490     var act = $_REQUEST['do'];
   478     switch(act)
   491     switch(act)
   479     {
   492     {