Bonjour Reckon
Pour que cela fonctionne sur un synology il faut corriger le fichier global.inc.php qui se trouve dans le répertoire includes en ajoutant et modifiant les lignes de couleurs rouges (variable $file) ci-dessous. La réinstallation n'est pas obligatoire.
........
* This file is part of J-Doc.
* J-Doc is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation,
* either version 3 of the License, or (at your option) any later version.
*/
defined('JDOC_EXECUTE') or define('JDOC_EXECUTE',true);
//// TEMPS D'EXECUTION & CONSTANTES (parametrage, chemins des dossiers, etc)
////
$mtime = explode(" ",microtime());
$starttime = $mtime[1] + $mtime[0];
$file = strstr(__FILE__,"web");
$file = STR_REPLACE("web",$_SERVER["DOCUMENT_ROOT"],$file);
$scriptfile = str_replace(DIRECTORY_SEPARATOR,'/',$file);
//echo "file : " , __FILE__ . "<br/>";
//echo "file : " , $file . "<br/>";
//echo "scriptfile : " , $scriptfile . "<br/>";
//echo "document_root : " , $_SERVER["DOCUMENT_ROOT"] . "<br/>";
//exit;
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
$scriptfile = str_replace(DIRECTORY_SEPARATOR,'/',$file);
$scriptfile = dirname($file);
if (strpos($scriptfile,$_SERVER["DOCUMENT_ROOT"])===false) {
// Mode symlinks actif
if(!defined("root_path")) define("root_path",$_SERVER["DOCUMENT_ROOT"] . "/");
if(!defined("root_url")) define("root_url","/");
} else {
$path = str_replace($_SERVER["DOCUMENT_ROOT"],"",dirname($scriptfile));
$paths = explode("/",$path);
$path = dirname($path);
if ($paths[0]=="includes") {
// Installation à la racine
if(!defined("root_path")) define("root_path",$_SERVER["DOCUMENT_ROOT"] . "/");
if(!defined("root_url")) define("root_url","/");
} else {
// Installation dans un sous dossier
if(!defined("root_path")) define("root_path",$_SERVER["DOCUMENT_ROOT"] . $path . "/");
if(!defined("root_url")) define("root_url", '/' . $path . "/");
}
}
//echo "scriptfile : ", $scriptfile."<br/>";
//echo "document_root : ", $_SERVER["DOCUMENT_ROOT"]."<br/>";
//echo "path : ", $path."<br/>";
//print_r($paths)."<br/>";
//echo "root_path : ", root_path."<br/>";
//echo "root_url : ", root_url."<br/>";
//echo "1";
//exit;
} else {
if (strpos($file,$_SERVER["DOCUMENT_ROOT"])===false) {
// Mode symlinks actif
if(!defined("root_path")) define("root_path",$_SERVER["DOCUMENT_ROOT"] . "/");
if(!defined("root_url")) define("root_url", "/");
//echo "4","<br/>";
} else {
$path = dirname(str_replace($_SERVER["DOCUMENT_ROOT"],"",dirname($file)));
$paths = explode("/",$path);
//echo "5","<br/>";
........