après le header envoyé // $base_nosession =0; par défaut, pas obligatoire, si non vide pas d'envoi du cookie de session dans global_vars.inc.php // // l'exemple ci-dessus correspond à l'inclusion dans le fichier : admin/sauvegarde/launch.php : // $base_path="../.."; // $base_auth = "SAUV_AUTH|ADMINISTRATION_AUTH"; // $base_title = "Lancement d'une sauvegarde"; // require_once ("$base_path/includes/init.inc.php"); // l'exemple ci-dessus correspond à l'inclusion dans le fichier : catalog/z3950/z_progession_main.php : // J'ai besoin du header mais pas du
à cause des frames // $base_path="../.."; // $base_auth = "CIRCULATION_AUTH"; // $base_title = ""; // $base_nobody = 1; // require_once ("$base_path/includes/init.inc.php"); if (!$base_path) $base_path="."; if (substr(phpversion(), 0, 1) == "5") @ini_set("zend.ze1_compatibility_mode", "1"); include_once ("$base_path/includes/error_report.inc.php") ; //include_once ("$base_path/includes/global_vars.inc.php") ; require_once ("$base_path/includes/config.inc.php"); // prevents direct script access if(preg_match('/init\.inc\.php/', $REQUEST_URI)) { include('forbidden.inc.php'); forbidden(); } $include_path = $base_path."/".$include_path; $class_path = $base_path."/".$class_path; $javascript_path = $base_path."/".$javascript_path; $styles_path = $base_path."/".$styles_path; if (!defined('TYPE_NOTICE')) define('TYPE_NOTICE',1); if (!defined('TYPE_AUTHOR')) define('TYPE_AUTHOR',2); if (!defined('TYPE_CATEGORY')) define('TYPE_CATEGORY',3); if (!defined('TYPE_PUBLISHER')) define('TYPE_PUBLISHER',4); if (!defined('TYPE_COLLECTION')) define('TYPE_COLLECTION',5); if (!defined('TYPE_SUBCOLLECTION')) define('TYPE_SUBCOLLECTION',6); if (!defined('TYPE_SERIE')) define('TYPE_SERIE',7); if (!defined('TYPE_TITRE_UNIFORME')) define('TYPE_TITRE_UNIFORME',8); if (!defined('TYPE_INDEXINT')) define('TYPE_INDEXINT',9); if (!defined('TYPE_EXPL')) define('TYPE_EXPL',10); if (!defined('TYPE_EXPLNUM')) define('TYPE_EXPLNUM',11); if (!defined('TYPE_AUTHPERSO')) define('TYPE_AUTHPERSO',12); if (!defined('TYPE_CMS_SECTION')) define('TYPE_CMS_SECTION',13); if (!defined('TYPE_CMS_ARTICLE')) define('TYPE_CMS_ARTICLE',14); if (!defined( 'TYPE_LOCATION' )) define('TYPE_LOCATION',15); if (!defined( 'TYPE_SUR_LOCATION' )) define('TYPE_SUR_LOCATION',16); if (!defined( 'TYPE_RECORD' )) define('TYPE_RECORD',11); if(!defined('TYPE_CONCEPT_PREFLABEL')) define('TYPE_CONCEPT_PREFLABEL', 1); if(!defined('TYPE_TU_RESPONSABILITY')) define('TYPE_TU_RESPONSABILITY', 2); if(!defined('TYPE_NOTICE_RESPONSABILITY_PRINCIPAL')) define('TYPE_NOTICE_RESPONSABILITY_PRINCIPAL', 3); if(!defined('TYPE_NOTICE_RESPONSABILITY_AUTRE')) define('TYPE_NOTICE_RESPONSABILITY_AUTRE', 4); if(!defined('TYPE_NOTICE_RESPONSABILITY_SECONDAIRE')) define('TYPE_NOTICE_RESPONSABILITY_SECONDAIRE', 5); if(!defined('TYPE_TU_RESPONSABILITY_INTERPRETER')) define('TYPE_TU_RESPONSABILITY_INTERPRETER', 6); require_once("$class_path/XMLlist.class.php"); // fichier de déf. pour gestion des erreurs require_once("$include_path/error_handler.inc.php"); require_once("$include_path/db_param.inc.php"); if (isset($_tableau_databases[1]) && isset($base_title)) { // multi-databases $database_window_title=$_libelle_databases[array_search(LOCATION,$_tableau_databases)].": "; } else $database_window_title="" ; require_once("$include_path/mysql_connect.inc.php"); $dbh = connection_mysql(); require_once("$include_path/sessions.inc.php"); require_once("$include_path/misc.inc.php"); require_once("$javascript_path/misc.inc.php"); require_once("$include_path/user_error.inc.php"); if(!isset($_SESSION['CURRENT'])) $_SESSION['CURRENT'] = ''; if(!isset($_SESSION['ext_type'])) $_SESSION['ext_type'] = ''; if(!isset($_SESSION['opac_view'])) $_SESSION['opac_view'] = ''; if(!isset($_SESSION['id_empr_session'])) $_SESSION['id_empr_session'] = ''; if(!isset($_SESSION['user_code'])) $_SESSION['user_code'] = ''; if(!isset($_SESSION['tri'])) $_SESSION['tri'] = ''; if(!isset($sub)) $sub = ''; if(!isset($action)) $action = ''; // Get current page... pour marquer l'onglet... if (!isset($current_alert)) { $current = current_page(); $current_module=str_replace(".php","",$current); } else { $current = ''; $current_module = $current_alert ; } if (!$current_module) $current_module = "index" ; include("$include_path/start.inc.php"); require_once("$include_path/clean_pret_temp.inc.php"); if(isset($categ) && ($categ=='pret' || $categ=='retour')) { if (!isset($clean_pret_tmp)) clean_pret_temp(); } if(!isset($base_auth)) $base_auth = ''; if ($base_auth) eval("\$auth=".$base_auth.";"); else $auth=""; if (!isset($base_nocheck)) { $base_nocheck = 0; } if (!$base_nocheck) { if(!checkUser('PhpMyBibli', $auth)) { // localisation (fichier XML) (valeur par défaut) $messages = new XMLlist("$include_path/messages/$lang.xml", 0); $messages->analyser(); $msg = $messages->table; //Inclusion/initialisation du système de plugins require_once $class_path.'/plugins.class.php'; $plugins = plugins::get_instance(); //Inclusion/initialisation du système d'évenements ! require_once $class_path.'/event/events_handler.class.php'; $evth = events_handler::get_instance(); $evth->discover(); $requires = $evth->get_requires(); for($i=0 ; $i