// Is this a readable directory? (files will be ignored silently)
if ((is_dir($fqfn)) && (is_readable($fqfn))) {
// Then get the init.php script for analyzing
- $initScript = sprintf("%s/init%s", $fqfn, $this->getConfigInstance()->readConfig('php_extension'));
+ $initScript = sprintf("%s/init.php", $fqfn);
// Load the application's init.php script and append the
// application to the ArrayObject
// Read all directories but no sub directories
while ($dir = $dirPointer->readDirectoryExcept(array("..", ".", ".htaccess", ".svn"))) {
// Is this a class file?
- if ((substr($dir, 0, 6) == "class_") && (substr($dir, -4, 4) == FrameworkConfiguration::getInstance()->readConfig('php_extension'))) {
+ if ((substr($dir, 0, 6) == "class_") && (substr($dir, -4, 4) == ".php")) {
// Get the compressor's name. That's why you must name
// your files like your classes and also that's why you
// must keep on class in one file.
// CFG: MAGIC-QUOTES-RUNTIME
$cfg->setMagicQuotesRuntime(false);
-// CFG: PHP-SCRIPT-EXTENSION
-$cfg->setConfigEntry('php_extension', ".php");
-
// CFG: CLASS-PREFIX
$cfg->setConfigEntry('class_prefix', "class_");
$cfg = FrameworkConfiguration::getInstance();
// Generate FQFN for the database layer
-$INC = sprintf("%sinc/database/lib-%s%s",
+$INC = sprintf("%sinc/database/lib-%s.php",
$cfg->readConfig('base_path'),
- $cfg->readConfig('db_type'),
- $cfg->readConfig('php_extension')
+ $cfg->readConfig('db_type')
);
// Load the database layer include
$cfg = FrameworkConfiguration::getInstance();
// Include the class loader function
-require(sprintf("%sinc/loader/class_ClassLoader%s", $cfg->readConfig('base_path'), $cfg->readConfig('php_extension')));
+require(sprintf("%sinc/loader/class_ClassLoader.php", $cfg->readConfig('base_path')));
// Does the user has an application specified?
if (!empty($_GET['app'])) {
}
// Generate a FQFN for the helper class
- $fqfn = sprintf("%s%s/%s%s",
+ $fqfn = sprintf("%s%s/%s.php",
$cfg->readConfig('application_path'),
$cfg->readConfig('app_name'),
- $inc,
- $cfg->readConfig('php_extension')
+ $inc
);
// Does the include file exists?
require_once($fqfn);
} elseif ($cfg->readConfig('verbose_level') > 0) {
// File is missing
- trigger_error(sprintf("Cannot load application script %s! File is missing or read-protected.",
- $inc . $cfg->readConfig('php_extension')
+ trigger_error(sprintf("Cannot load application script %s.php! File is missing or read-protected.",
+ $inc
));
}
}