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,"