************************************************************************/
// Some security stuff...
-if (ereg(basename(__FILE__), $_SERVER['PHP_SELF']))
-{
+if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
// Create include file name
$INC = PATH."inc/db/lib-"._DB_TYPE.".php";
-if (file_exists($INC))
-{
+if ((file_exists($INC)) && (is_readable($INC))) {
// Include abstraction layer
require_once($INC);
-}
- else
-{
+} else {
// Bye, bye...
die("Cannot load database abstraction layer! R.I.P.");
}