noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
extension_get.inc.php
Go to the documentation of this file.
00001 <?php
00002 //This file is part of NOALYSS and is under GPL 
00003 //see licence.txt
00004 
00005 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
00006 require_once('class_database.php');
00007 require_once('class_dossier.php');
00008 require_once("ac_common.php");
00009 require_once("constant.php");
00010 require_once('function_javascript.php');
00011 require_once('class_extension.php');
00012 require_once ('class_html_input.php');
00013 require_once('class_iselect.php');
00014 require_once ('constant.security.php');
00015 require_once ('class_user.php');
00016 
00017 /**
00018  * included from do.php + extension_choice.inc.php
00019  */
00020 
00021 // find file and check security
00022 global $cn,$g_user;
00023 
00024 $ext=new Extension($cn);
00025 
00026 if ($ext->search($_REQUEST['plugin_code']) == -1)
00027         {
00028                 echo_warning("plugin non trouvé");
00029                 exit();
00030 }
00031 if ($ext->can_request($g_user->login)==-1)
00032 {
00033         alert("Plugin non authorisé");
00034         exit();
00035 }
00036 if ( ! file_exists('../include/ext'.DIRECTORY_SEPARATOR.trim($ext->me_file)))
00037         {
00038                 alert(j(_("Ce fichier n'existe pas ")));
00039                 exit();
00040         }
00041 echo '<div class="content">';
00042 require_once('ext'.DIRECTORY_SEPARATOR.trim($ext->me_file));
00043 
00044 
00045 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations