WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
// create absolute/relative paths $sAddonName = \basename(__DIR__); $sScriptPath = dirname($_SERVER["SCRIPT_FILENAME"]); $sAppDir = str_replace(['\\\\','//'], '/',__DIR__); $sDocRoot = str_replace(['\\','//'],'/',realpath($_SERVER["DOCUMENT_ROOT"])); $sScriptName = str_replace(['\\','//'],'/',realpath($_SERVER["SCRIPT_FILENAME"])); $iSharedHosting = ($isWindows ? 0 : (strcmp(md5($sScriptPath),md5($sAppDir)))); // ist leer $sPathPattern = "/^(.*?\/)admin\/.*$/"; $sLink = \str_replace(['\\','//'],'/',__DIR__).'/admin/'; $sAppRel = \str_replace($sDocRoot,'',\dirname($sScriptName)); // ist /verzeichnis (Zeile 109) $sAppRel = (($iSharedHosting != 0) ? '' : $sAppRel); // ist leer $sAppRel = rtrim((empty($sAppRel) ? '/' : $sAppRel),'/').'/'; // ist leer $sAcpRel = $sAppRel.'admin/'; // ist /admin/ $sAppPath = \preg_replace ($sPathPattern, "$1", $sLink, 1 ); $sOldPath = \str_replace('\\','/',\getcwd()).'/';