PHPMaker Customizations
ewcfg12.php line 8: define the relative path and then all the links work out
if (!isset($EW_RELATIVE_PATH)) $EW_RELATIVE_PATH = PATH_PLUGINS . 'phpmaker/public_html/'; if (!isset($EMP_RELATIVE_WEB_PATH)) $EMP_RELATIVE_WEB_PATH = '/plugin/phpmaker/'; if (!isset($EMP_ABSOLUTE_WEB_PATH)) $EMP_ABSOLUTE_WEB_PATH = ((isset($_SERVER['HTTPS']) && trim($_SERVER['HTTPS']) != '') ? 'https://' : 'http://') . $_SERVER['HTTP_HOST'] . '/sys' . SYS_SYS . '/' . SYS_LANG . '/' . SYS_SKIN . '/' . SYS_COLLECTION . '/' . SYS_TARGET;
ewcfg12.php line 9: added a new global variable for the web links and then swapped them all out on in the header and footer files
Do NOT use mysqli otherwise you get mysql has gone away error which results from the Commands out of sync; you can't run this command now when trying to init the mysql connection - according to the forums, this must be done through the template, not the gui
ewshared12.php line 1324: had to change the url that is displayed - function ew_GetUrl
global $EMP_ABSOLUTE_WEB_PATH; $abs_root = explode( PATH_SEP, $EMP_ABSOLUTE_WEB_PATH); array_pop($abs_root); $abs_url = implode(PATH_SEP, $abs_root); if ($url != "" && strpos($url, "://") === FALSE && strpos($url, "\\") === FALSE && strpos($url, "javascript:") === FALSE) { $path = ""; if (strrpos($url, "/") !== FALSE) { $path = substr($url, 0, strrpos($url, "/")); $url = substr($url, strrpos($url, "/")+1); } $path = ew_PathCombine($abs_url, $path, FALSE); if ($path <> "") $path = ew_IncludeTrailingDelimiter($path, FALSE); return $path . $url; } else { return $url; }
ewshared12.php line 1244: replaced the content of the function with the global variable value of the absolute web path - function ew_ScriptName