diff --git a/html/ajax_card.php b/html/ajax_card.php
index ed34e2336..00a21f041 100644
--- a/html/ajax_card.php
+++ b/html/ajax_card.php
@@ -53,7 +53,7 @@
* - ref if we want to refresh the window
*\see fiche fiche::Save constant.php
*/
-define ('ALLOWED',1);
+if ( ! defined('ALLOWED')) define ('ALLOWED',1);
require_once '../include/constant.php';
require_once('class_database.php');
@@ -94,6 +94,24 @@ $g_user=new User($cn);
$g_user->check(true);
$g_user->check_dossier($gDossier,true);
$html=var_export($_REQUEST,true);
+if ( LOGINPUT)
+ {
+ $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite ($file_loginput,"
$html
+$xml
EOF;
diff --git a/html/ajax_history.php b/html/ajax_history.php
index cf2169e53..3ff482c67 100644
--- a/html/ajax_history.php
+++ b/html/ajax_history.php
@@ -23,6 +23,8 @@
* \brief show the history of a card of an accounting
* for the card f_id is set and for an accounting : pcm_val
*/
+if ( ! defined('ALLOWED')) define ('ALLOWED',1);
+
require_once '../include/constant.php';
require_once('class_database.php');
require_once('class_user.php');
@@ -33,7 +35,6 @@ require_once('class_acc_account.php');
require_once('class_exercice.php');
$div=$_REQUEST['div'];
mb_internal_encoding("UTF-8");
-define ('ALLOWED',1);
/**
*if $_SESSION['g_user'] is not set : echo a warning
@@ -46,7 +47,24 @@ $g_user=new User($cn);
if ( $g_user->check_dossier(dossier::id(),true) == 'X' ) exit();
$from_div = (isset($_REQUEST['ajax'])) ? 1 : $_GET['l'];
-
+if ( LOGINPUT)
+ {
+ $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite ($file_loginput,"
$html
+$xml
EOF;
diff --git a/html/ajax_ledger.php b/html/ajax_ledger.php
index a28aa3ac6..2c319c75e 100644
--- a/html/ajax_ledger.php
+++ b/html/ajax_ledger.php
@@ -28,7 +28,8 @@
- for reconcialiation
- update of analytic content
*/
-define ('ALLOWED',1);
+if ( ! defined('ALLOWED')) define ('ALLOWED',1);
+
require_once '../include/constant.php';
require_once('class_database.php');
require_once('class_user.php');
@@ -63,7 +64,24 @@ ajax_disconnected($div);
$cn=new Database(dossier::id());
$g_parameter=new Own($cn);
-
+if ( LOGINPUT)
+ {
+ $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite ($file_loginput,"0) {
}
$html = var_export($_REQUEST, true);
+if ( LOGINPUT)
+ {
+ $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite ($file_loginput,"Check();
if ($g_user->check_dossier(dossier::id()) == 'X') exit();
$xml="";
-
+if ( LOGINPUT)
+ {
+ $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite ($file_loginput,"Test NOALYSS";
- /*
- * cherche pour fichier a include, s'il y en a alors les affiche
- * avec une description
- */
- $scan=scandir('../scenario/');
- $max=count($scan);
- echo '
| '; - echo ''; - echo "Tous "; - echo ''; - echo ' | '; - echo 'Tous les scripts | '; - echo '
| '; - echo ''; - echo $scan[$e]; - echo ''; - echo ' | '; - echo ''.$description.' | '; - echo '
| '; + echo ''; + echo "Tous "; + echo ''; + echo ' | '; + echo 'Tous les scripts | '; + echo '|
| '; + echo $e; + echo ' | '; + echo ''; + echo ''; + echo $scenario[$e]['file']; + echo ''; + echo ' | '; + echo ''.$scenario[$e]['desc'].' | '; + echo '
Diff = ".(round(($end_mem-$start_mem)/1024/1024, 2))." Mbytes "; echo '
'; echo "Execution script ".$script." time = ".(round(($end_time-$start_time), 4))." secondes
"; - } - } + $nb++; + if ( $nb == $maxscan ) { + echo "Dernier test"; + } else { + $get='test.php?'.http_build_query(array('script'=>"all", 'gDossier'=>$gDossierLogInput, 'nb_script'=>$nb)); + echo ''; + echo $scenario[$nb]['file']; + } } else {