Welcome Guest, Not a member yet? Register   Sign In
index.php, system_folder variable and multisite installation on windows
#10

[eluser]xadio[/eluser]
Just tested in windows and works flawlessly. However two small changes for consistency in error messages.

Change:
Code:
if (($dirpath = realpath(dirname(__FILE__)) . '/') !== FALSE && ($realpath = realpath($dirpath . '/' . $system_folder)) !== FALSE) {

To:
Code:
if (($dirpath = realpath(dirname(__FILE__)) . DIRECTORY_SEPARATOR) !== FALSE && ($realpath = realpath($dirpath . DIRECTORY_SEPARATOR . $system_folder)) !== FALSE) {

Side note:

I like to define the DIRECTORY_SEPARATOR as DS. Like such:
Code:
define(DS, DIRECTORY_SEPARATOR);

If you do this, just replace all the instances of DIRECTORY_SEPARATOR to DS. (Save line space Smile )


Messages In This Thread
index.php, system_folder variable and multisite installation on windows - by El Forum - 01-29-2008, 09:08 AM



Theme © iAndrew 2016 - Forum software by © MyBB