Task #1044 - Implementation de Test
This commit is contained in:
parent
8620124dd4
commit
b3098d084b
1 changed files with 19 additions and 1 deletions
|
|
@ -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,"<?php \n");
|
||||
fwrite ($file_loginput,'//@description:'.$_REQUEST['plugin_code']."\n");
|
||||
fwrite($file_loginput, '$_GET='.var_export($_GET,true));
|
||||
fwrite($file_loginput,";\n");
|
||||
fwrite($file_loginput, '$_POST='.var_export($_POST,true));
|
||||
fwrite($file_loginput,";\n");
|
||||
fwrite($file_loginput, '$_POST[\'gDossier\']=$gDossierLogInput;');
|
||||
fwrite($file_loginput,"\n");
|
||||
fwrite($file_loginput, '$_GET[\'gDossier\']=$gDossierLogInput;');
|
||||
fwrite($file_loginput,"\n");
|
||||
fwrite($file_loginput,' $_REQUEST=array_merge($_GET,$_POST);');
|
||||
fwrite($file_loginput,"\n");
|
||||
fwrite($file_loginput,"include '".basename(__FILE__)."';\n");
|
||||
fclose($file_loginput);
|
||||
}
|
||||
|
||||
$ext=new Extension($cn);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue