phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r4149 - phpcompta/branches/rel560/html


From: phpcompta-dev
Subject: [Phpcompta-dev] r4149 - phpcompta/branches/rel560/html
Date: Wed, 1 Jun 2011 02:12:10 +0200 (CEST)

Author: danydb
Date: 2011-06-01 02:12:08 +0200 (Wed, 01 Jun 2011)
New Revision: 4149

Modified:
   phpcompta/branches/rel560/html/ajax_card.php
   phpcompta/branches/rel560/html/ajax_ledger.php
   phpcompta/branches/rel560/html/ajax_poste.php
Log:
Ajax disconnected

Modified: phpcompta/branches/rel560/html/ajax_card.php
===================================================================
--- phpcompta/branches/rel560/html/ajax_card.php        2011-05-31 21:36:28 UTC 
(rev 4148)
+++ phpcompta/branches/rel560/html/ajax_card.php        2011-06-01 00:12:08 UTC 
(rev 4149)
@@ -73,8 +73,12 @@
         $cont=1;
     }
 }
+extract($_REQUEST );
+
+ajax_disconnected($ctl);
+
 if ( $cont != 0 ) exit();
-extract($_REQUEST );
+
 set_language();
 /*
  *echo a warning if disconnected

Modified: phpcompta/branches/rel560/html/ajax_ledger.php
===================================================================
--- phpcompta/branches/rel560/html/ajax_ledger.php      2011-05-31 21:36:28 UTC 
(rev 4148)
+++ phpcompta/branches/rel560/html/ajax_ledger.php      2011-06-01 00:12:08 UTC 
(rev 4149)
@@ -53,20 +53,8 @@
 /**
  *if $_SESSION['g_user'] is not set : echo a warning
  */
-if ( ! isset($_SESSION['g_user']))
-  {
-    $html=alert("Déconnecté",true);
-    $html=escape_xml($html);
-    header('Content-type: text/xml; charset=UTF-8');
-echo <<<EOF
-<?xml version="1.0" encoding="UTF-8"?>
-<data>
-<ctl>$div</ctl>
-<code>Déconnecté</code>
-</data>
-EOF;
-exit();
-  }
+ajax_disconnected($div);
+
 $cn=new Database(dossier::id());
 
 // check if the user is valid and can access this folder

Modified: phpcompta/branches/rel560/html/ajax_poste.php
===================================================================
--- phpcompta/branches/rel560/html/ajax_poste.php       2011-05-31 21:36:28 UTC 
(rev 4148)
+++ phpcompta/branches/rel560/html/ajax_poste.php       2011-06-01 00:12:08 UTC 
(rev 4149)
@@ -51,6 +51,8 @@
         $cont=1;
     }
 }
+ajax_disconnected($ctl);
+
 set_language();
 
 if ( $cont != 0 ) exit();




reply via email to

[Prev in Thread] Current Thread [Next in Thread]