check(); $only_plugin=$g_user->check_dossier(dossier::id()); set_language(); $ext=new Extension($cn); if ( $ext->search($http->request("plugin_code")) != -1 ) { /* security */ if ( !isset ($_SESSION[SESSION_KEY.'g_user']) || $ext->can_request($_SESSION[SESSION_KEY.'g_user']) == 0 ) { exit(); } if ( LOGINPUT) { $file_loginput=fopen($_ENV['TMP'].'/plugin-export-'.$ext->me_code.'-'.$_SERVER['REQUEST_TIME'].'.php','a+'); fwrite ($file_loginput,"me_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"); $string='require_once "'.NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php'.'";'; fwrite($file_loginput,sprintf("%s",$string)); fwrite($file_loginput,"\n"); fclose($file_loginput); } define ('ALLOWED',True); /* call the ajax script */ require_once NOALYSS_PLUGIN.DIRECTORY_SEPARATOR.dirname(trim($ext->getp('me_file'))).DIRECTORY_SEPARATOR.'raw.php'; } else { alert(j(_("Cette extension n'existe pas "))); exit(); } ?>