Skip to content
Snippets Groups Projects
Commit 4a1ba877 authored by llaffont's avatar llaffont
Browse files

Fix f... cosmogramme

parent 9f7ac7bf
No related merge requests found
......@@ -34,7 +34,7 @@ require_once 'classe_cosmopaths.php';
$cosmo_path = new CosmoPaths();
$site = '/' . $cosmo_path->getSite() . '/';
$cfgfile = $cosmo_path->getConfigPath();
chdir($cosmo_path->getBasePath());
define('BASE_URL', $cosmo_path->getBaseUrl());
define('USERFILESPATH', $cosmo_path->getUserfilesPath());
......@@ -49,17 +49,15 @@ require_once("fonctions/erreur.php");
require_once("fonctions/date_heure.php");
require_once("fonctions/variables.php");
require_once(realpath(dirname(__FILE__)).'/../storm_init.php');
require_once($basePath.'/../storm_init.php');
require_once("classe_sql.php");
require_once("fonctions/sql.php");
// Lire la config
chdir($cosmo_path->getBasePath());
$cfg=lireConfig($cfgfile);
// Add cg
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