);
// Is the module there? Else we log it!
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// Load the request module
LOAD_INC($INC);
} else {
);
// Include is readable?
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// Include it
LOAD_INC($INC);
} // END - if
// Create include file name
$INC = sprintf("inc/db/lib-%s.php", constant('_DB_TYPE'));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Include abstraction layer
LOAD_INC_ONCE($INC);
} else {
);
// Is the extension file NOT there?
- if (!FILE_READABLE($extInclude)) {
+ if (!FILE_READABLE($FQFN)) {
// Debug message
DEBUG_LOG(__FUNCTION__, __LINE__, sprintf("Extension %s not found.", $ext_name));
// Include the extension file
//* DEBUG: */ DEBUG_LOG(__FUNCTION__, __LINE__, "Extension loaded.");
- require($extInclude);
+ require($FQFN);
// Is this extension deprecated?
if ($EXT_DEPRECATED == "Y") {
$INC = sprintf("inc/loader/load_cache-%s.php", $inc);
// Is the include there?
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// And rebuild it from scratch
//* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>): inc={$inc} - LOADED!<br />\n";
LOAD_INC($INC);
return $admin;
}
+// Checks wether an include file (non-FQFN better) is readable
+function INCLUDE_READABLE ($INC) {
+ // Construct FQFN
+ $FQFN = constant('PATH') . $INC;
+
+ // Is it readable?
+ return FILE_READABLE($FQFN);
+}
+
//////////////////////////////////////////////////
// AUTOMATICALLY RE-GENERATED MISSING FUNCTIONS //
//////////////////////////////////////////////////
{
$OUT = "";
$INC = sprintf("inc/modules/sponsor/%s.php", $what);
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// Every sponsor action will output nothing directly. It will be written into $OUT!
LOAD_INC_ONCE($INC);
} else {
while (list($theme) = SQL_FETCHROW($result)) {
// Load it's theme.php file
$INC = sprintf("theme/%s/theme.php", SQL_ESCAPE($theme));
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// And save all data in array
LOAD_INC($INC);
$THEMES['theme_unix'][] = $theme;
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/admin/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} else {
// Is valid but does the inlcude file exists?
$INC = sprintf("inc/modules/admin/action-%s.php", $act);
- if ((FILE_READABLE($INC)) && (VALIDATE_MENU_ACTION("admin", $act, $wht)) && (__ACL_ALLOW == true)) {
+ if ((INCLUDE_READABLE($INC)) && (VALIDATE_MENU_ACTION("admin", $act, $wht)) && (__ACL_ALLOW == true)) {
// Ok, we finally load the admin action module
LOAD_INC($INC);
} elseif (__ACL_ALLOW == false) {
// ACL is "allow"... hmmm
$ACL = true;
}
- $readable = FILE_READABLE($INC);
- if ($ACL) {
+ $readable = INCLUDE_READABLE($INC);
+ if ($ACL === true) {
// Insert compiled title and description
$menuTitle[$wht_sub] = $title_what;
$menuDesription[$wht_sub] = $desc_what;
$OUT .= "<tr>
<td class=\"admin_menu\" colspan=\"2\">
<NOBR> <strong>--></strong> ";
- if ($readable)
+ if ($readable === true)
{
if ($wht == $wht_sub)
{
$OUT .= "<i class=\"admin_note\">";
}
$OUT .= $title_what;
- if ($readable)
+ if ($readable === true)
{
if ($wht == $wht_sub)
{
if (!THEME_CHECK_EXIST($_POST['theme'])) {
// Import theme
$INC = sprintf("theme/%s/theme.php", SQL_ESCAPE($_POST['theme']));
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// Load the theme header file
LOAD_INC($INC);
$INC = sprintf("theme/%s/theme.php", $dir);
// Test it...
- if (($dir != ".") && ($dir != "..") && (FILE_READABLE($INC))) {
+ if (($dir != ".") && ($dir != "..") && (INCLUDE_READABLE($INC))) {
// Found a valid directory so let's load it's theme.php file
LOAD_INC($INC);
// Only when one admin link is clicked...
$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the guest action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the guest action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the guest action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/guest/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the guest action module
LOAD_INC($INC);
} else {
$INC = sprintf("inc/modules/guest/action-%s.php", $GLOBALS['action']);
// Is the file there?
-if ((FILE_READABLE($INC)) && (VALIDATE_MENU_ACTION("guest", $GLOBALS['action'], $GLOBALS['what']))) {
+if ((INCLUDE_READABLE($INC)) && (VALIDATE_MENU_ACTION("guest", $GLOBALS['action'], $GLOBALS['what']))) {
// Requested module is available so we load it
LOAD_INC_ONCE($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Load the include file
$INC = sprintf("inc/modules/member/what-%s.php", SQL_ESCAPE($GLOBALS['what']));
-if (FILE_READABLE($INC)) {
+if (INCLUDE_READABLE($INC)) {
// Ok, we finally load the member action module
LOAD_INC($INC);
} else {
// Construct absolute theme.php file name
$INC = sprintf("theme/%s/theme.php", $entry);
- if (($entry != ".") && ($entry != "..") && (FILE_READABLE($INC)) && (THEME_IS_ACTIVE($entry))) {
+ if (($entry != ".") && ($entry != "..") && (INCLUDE_READABLE($INC)) && (THEME_IS_ACTIVE($entry))) {
// Found a valid directory so let's load it's theme.php file
LOAD_INC($INC);
);
// Is that file readable?
- if (FILE_READABLE($INC)) {
+ if (INCLUDE_READABLE($INC)) {
// Include it
LOAD_INC_ONCE($INC);
} // END - if