Even though the root directory and https issues have been fixed/addressed in the development branch, windows servers will still not function properly as dirname() return a backslash instead of a forward slash for the document root.
fix:
$protocol = 'http'; if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off') $protocol .= 's'; $directory = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); define('SITE_URL', $protocol.'://'.$_SERVER['HTTP_HOST'].$directory);
Even though the root directory and https issues have been fixed/addressed in the development branch, windows servers will still not function properly as dirname() return a backslash instead of a forward slash for the document root.
fix:
$protocol = 'http'; $_SERVER[ 'HTTPS' ]) && $_SERVER['HTTPS'] && $_SERVER['HTTPS'] != 'off') $_SERVER[ 'PHP_SELF' ]), '/\\'); '://'.$ _SERVER[ 'HTTP_HOST' ].$directory) ;
if(isset(
$protocol .= 's';
$directory = rtrim(dirname(
define('SITE_URL', $protocol.