X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fconfig%2Fclass_FrameworkConfiguration.php;h=a1ca42a3aead470ecf98d016c3d3044abc316759;hp=510bd0749ef48bfcd673280e4b4658cec8c7fef7;hb=014feb51ca186f4b66edeee7dca62a190dff0564;hpb=666210d9addd5d19b9dba98b05e8b824b4116c9a diff --git a/inc/config/class_FrameworkConfiguration.php b/inc/config/class_FrameworkConfiguration.php index 510bd0749e..a1ca42a3ae 100644 --- a/inc/config/class_FrameworkConfiguration.php +++ b/inc/config/class_FrameworkConfiguration.php @@ -5,7 +5,25 @@ * NOTE: We cannot put this in inc/classes/ because it would be loaded (again) * in the class loader. See inc/loader/class_ClassLoader.php for instance * - * @see ClassLoader + * @see ClassLoader + * @author Roland Haeder + * @version 0.3.0 + * @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software + * @license GNU GPL 3.0 or any newer version + * @link http://www.mxchange.org + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . */ class FrameworkConfiguration { /** @@ -190,8 +208,11 @@ class FrameworkConfiguration { // Cast to string $path = (string) $path; + // Replace backslashes with slashes + $path = str_replace("\\", "/", $path); + // Is it defined or not? - if (!is_dir($path)) { + if ((!is_dir($path)) || (!is_readable($path))) { // Is not a valid path ApplicationEntryPoint::app_die(sprintf("[%s:] Invalid path (not found) specified. Please make sure it is created.", __CLASS__