noalyss  Version-6.7.2
 All Data Structures Namespaces Files Functions Variables Enumerations
extension.raw.php
Go to the documentation of this file.
00001 <?php
00002 /*
00003  *   This file is part of NOALYSS.
00004  *
00005  *   NOALYSS is free software; you can redistribute it and/or modify
00006  *   it under the terms of the GNU General Public License as published by
00007  *   the Free Software Foundation; either version 2 of the License, or
00008  *   (at your option) any later version.
00009  *
00010  *   NOALYSS is distributed in the hope that it will be useful,
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  *   GNU General Public License for more details.
00014  *
00015  *   You should have received a copy of the GNU General Public License
00016  *   along with NOALYSS; if not, write to the Free Software
00017  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00018 */
00019 
00020 // Copyright Author Dany De Bontridder danydb@aevalys.eu
00021 
00022 /*!\file
00023  * \brief this file includes the called plugin. It  check first
00024  * the security. Load several javascript files
00025  */
00026 require_once '../include/constant.php';
00027 require_once('class_database.php');
00028 require_once('class_dossier.php');
00029 require_once("ac_common.php");
00030 require_once("constant.php");
00031 require_once('function_javascript.php');
00032 require_once('class_extension.php');
00033 require_once ('class_html_input.php');
00034 require_once('class_iselect.php');
00035 require_once ('constant.security.php');
00036 require_once ('class_user.php');
00037 
00038 global $g_user,$cn,$g_parameter;
00039 
00040 $cn=new Database(dossier::id());
00041 $g_user=new User($cn);
00042 $g_user->check();
00043 $only_plugin=$g_user->check_dossier(dossier::id());
00044 
00045 $ext=new Extension($cn);
00046 
00047 if ( $ext->search($_REQUEST['plugin_code']) != -1 )
00048   {
00049     /* security */
00050     if ( !isset ($_SESSION['g_user']) || $ext->can_request($_SESSION['g_user']) == 0 )
00051       {
00052                 exit();
00053       }
00054     /* call the ajax script */
00055     require_once('ext'.DIRECTORY_SEPARATOR.dirname(trim($ext->get_parameter('me_file'))).DIRECTORY_SEPARATOR.'raw.php');
00056   }
00057 else
00058   {
00059     alert(j(_("Cette extension n'existe pas ")));
00060     exit();
00061   }
00062 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations