From b3098d084b5de5ed9da5a09d5ecb212e3a673618 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sun, 30 Nov 2014 13:02:43 +0100 Subject: [PATCH] Task #1044 - Implementation de Test --- html/ajax.php | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/html/ajax.php b/html/ajax.php index c56485e6b..cbf18a0ec 100644 --- a/html/ajax.php +++ b/html/ajax.php @@ -11,7 +11,7 @@ * - gDossier * - plugin_code */ -define ('ALLOWED',1); +if ( ! defined ('ALLOWED') ) define ('ALLOWED',1); require_once '../include/constant.php'; require_once('class_database.php'); require_once('class_user.php'); @@ -30,6 +30,24 @@ $g_user->check(true); /* if a code has been asked */ if (isset($_REQUEST['plugin_code']) ) { + if ( LOGINPUT) + { + $file_loginput=fopen($_ENV['TMP'].'/scenario-'.$_SERVER['REQUEST_TIME'].'.php','a+'); + fwrite ($file_loginput,"