[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

)