Skip to content
Snippets Groups Projects
Commit 9a2eb885 authored by ldeuffic's avatar ldeuffic
Browse files

Correction des arguments traitement Cosmo selectif (suite modifs JG)

parent 7acfdac3
Branches
Tags
No related merge requests found
......@@ -11,7 +11,7 @@ date_default_timezone_set('Europe/Paris');
// Add cg: site= nom du site Opac (Ex: mabellebib.net)
$argc = isset($argc) ? $argc : 0;
if ($argc != 3) {
if ($argc != 4) {
if ($_SERVER['SERVER_ADDR'] != "127.0.0.1" and $_SERVER['SERVER_ADDR'] != "::1")
{
$site= "/" . substr($_SERVER['SCRIPT_NAME'], 1, strpos($_SERVER['SCRIPT_NAME'], "/" . APPLI . "/") -1) . "/" ;
......@@ -43,7 +43,7 @@ require("fonctions/variables.php");
$cfg=lireConfig($cfgfile);
// Add cg
if($argc == 3) chdir("../../../php/cosmo/");
if($argc == 4) chdir("../../../php/cosmo/");
// Mode web_service
if(strpos($_SERVER["REQUEST_URI"],"/web_services/")) $mode_web_service=true;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment