[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 01/03: Task #1044 - Implementation de Test ne
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 01/03: Task #1044 - Implementation de Test new defined variables for testing |
Date: |
Fri, 14 Nov 2014 22:12:44 +0000 |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 6bc7b1dd4e51c02f8787e408516325d13993dd06
Author: Dany De Bontridder <address@hidden>
Date: Fri Nov 14 20:53:36 2014 +0100
Task #1044 - Implementation de Test
new defined variables for testing
---
include/ac_common.php | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/include/ac_common.php b/include/ac_common.php
index 6250c82..5dfd7e6 100644
--- a/include/ac_common.php
+++ b/include/ac_common.php
@@ -983,7 +983,15 @@ function show_menu($module, $idx)
$array=compute_variable($file[0]['me_parameter']);
put_global($array);
}
-
+ /*
+ * Log the file we input to put in the folder
test-noalyss for replaying it
+ */
+ if (LOGINPUT) {
+
$file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+');
+ fwrite($file_loginput, "include
'".$file[0]['me_file']."';");
+ fwrite($file_loginput,"\n");
+ fclose($file_loginput);
+ }
// if file is not a plugin, include the file, otherwise
// include the plugin launcher
if ( $file[0]['me_type'] != 'PL')