$this->resetCacheReadStatus();
// Debug message
- //* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf("%s should be removed.", $this->name));
+ //* DEBUG: */ logDebugMessage(__METHOD__, __LINE__, sprintf('%s should be removed.', $this->name));
// Is the cache file not yet rebuilt?
if ((!isset($this->rebuilt[$this->name])) && ($this->isCacheReadable())) {
} // END - if
// Create include file name
-$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE'));
+$inc = sprintf('inc/db/lib-%s.php', getConfig('_DB_TYPE'));
// Is the database library available?
if (!isIncludeReadable($inc)) {
$mail->CharSet = 'UTF-8';
// Path for PHPMailer
- $mail->PluginDir = sprintf("%sinc/phpmailer/", getPath());
+ $mail->PluginDir = sprintf('%sinc/phpmailer/', getPath());
$mail->IsSMTP();
$mail->SMTPAuth = TRUE;
// Is there cache?
if (!isset($GLOBALS['ext_name_valid'][$ext_name])) {
// Generate include file name
- $INC = sprintf("inc/extensions/ext-%s.php", $ext_name);
+ $INC = sprintf('inc/extensions/ext-%s.php', $ext_name);
// Is there a file in inc/extensions/ ?
$GLOBALS['ext_name_valid'][$ext_name] = isIncludeReadable($INC);
} // END - if
// Generate INC name
- $INC = sprintf("inc/extensions/ext-%s.php", getCurrentExtensionName());
+ $INC = sprintf('inc/extensions/ext-%s.php', getCurrentExtensionName());
// Load it
loadInclude($INC);
// Load current extension's mode include file
function loadCurrentExtensionModeInclude () {
// Generate INC name
- $INC = sprintf("inc/extensions/%s/mode-%s.php", getCurrentExtensionName(), getExtensionMode());
+ $INC = sprintf('inc/extensions/%s/mode-%s.php', getCurrentExtensionName(), getExtensionMode());
// Is the include readable?
if (isIncludeReadable($INC)) {
// Array found?
if (!isset($GLOBALS['ext_inc_readable'][$ext_name])) {
// Generate INC name
- $INC = sprintf("inc/extensions/ext-%s.php", getCurrentExtensionName());
+ $INC = sprintf('inc/extensions/ext-%s.php', getCurrentExtensionName());
// Is it readable?
$GLOBALS['ext_inc_readable'][$ext_name] = isIncludeReadable($INC);
incrementStatsEntry('cache_hits');
} else {
// Construct IFN for functions file
- $funcsInclude = sprintf("inc/libs/%s_functions.php", $ext_name);
+ $funcsInclude = sprintf('inc/libs/%s_functions.php', $ext_name);
// Is this include there?
$isIncludeFound = ((isFileReadable($funcsInclude)) && (!isExtensionLibraryLoaded($ext_name)) && (getExtensionMode() == 'test'));
//* DEBUG: */ print($id.'=<pre>'.print_r($content, TRUE).'</pre>');
// Construct human-readable description
- $ret = sprintf("%s (%s)", $content['descr'], $content['code']);
+ $ret = sprintf('%s (%s)', $content['descr'], $content['code']);
} // END - if
// Free the result
$GLOBALS['sponsor_output'] = '';
// Generate IFN (Include FileName)
- $INC = sprintf("inc/modules/sponsor/%s.php", $what);
+ $INC = sprintf('inc/modules/sponsor/%s.php', $what);
if (isIncludeReadable($INC)) {
// Every sponsor action will output nothing directly. It will be written into $GLOBALS['sponsor_output']!
loadIncludeOnce($INC);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
} else {
- // "what file" not found
+ // 'what file' not found
addFatalMessage(__FILE__, __LINE__, '{--ADMIN_WHAT_404--}');
}
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
addYouAreHereLink('admin', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/admin/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/admin/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the admin action module
loadIncludeOnce($inc);
// Is there an entry?
if (sqlNumRows($result_action) == 1) {
// Is valid but does the inlcude file exists?
- $inc = sprintf("inc/modules/admin/action-%s.php", $action);
+ $inc = sprintf('inc/modules/admin/action-%s.php', $action);
if ((isIncludeReadable($inc)) && (isMenuActionValid('admin', $action, $what)) && ($GLOBALS['acl_allow'] === TRUE)) {
// Ok, we finally load the admin action module
loadInclude($inc);
// Load all 'action' menus
while ($mainContent = sqlFetchArray($result_main)) {
// Filename
- $inc = sprintf("inc/modules/admin/action-%s.php", $mainContent['main_action']);
+ $inc = sprintf('inc/modules/admin/action-%s.php', $mainContent['main_action']);
// Is the current admin allowed to access this 'action' menu?
if (isAdminAllowedAccessMenu($mainContent['main_action'])) {
// Load all entries
while ($subContent = sqlFetchArray($result_what)) {
// Filename
- $inc = sprintf("inc/modules/admin/what-%s.php", $subContent['sub_what']);
+ $inc = sprintf('inc/modules/admin/what-%s.php', $subContent['sub_what']);
// Is the current admin allowed to access this 'what' menu?
if (isAdminAllowedAccessMenu(NULL, $subContent['sub_what'])) {
));
} elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) {
// Construct module name
- $incFile = sprintf("inc/modules/admin/subid-%s.php", sqlEscapeString(getRequestElement('do')));
+ $incFile = sprintf('inc/modules/admin/subid-%s.php', sqlEscapeString(getRequestElement('do')));
// Is the include readable and is the sub id assigned to current admin?
if (!isUserSubIdAssignedToMember(getRequestElement('id'), getRequestElement('userid'))) {
if (isGetRequestElementSet('access')) {
// Secure input and construct FQFN
$access = sqlEscapeString(getRequestElement('access'));
- $target = sprintf("%slogs/%s", getPath(), $access);
+ $target = sprintf('%slogs/%s', getPath(), $access);
// Is the file valid and readable?
if (isFileReadable($target)) {
}
// Construct english include filename
- $INC = sprintf("inc/language/%s%s.php", $prefix, $lang);
+ $INC = sprintf('inc/language/%s%s.php', $prefix, $lang);
// Is the file readable?
if (isIncludeReadable($INC)) {
$usage = getConfig('usage_base') . '/';
// Init FQFN
-$FQFN = sprintf("%s%s/index.html",
+$FQFN = sprintf('%s%s/index.html',
getPath(),
getConfig('usage_base')
);
if (isGetRequestElementSet('image')) {
if (getRequestElement('type') == 'usage') {
- $FQFN = sprintf("%s%s/usage.png",
+ $FQFN = sprintf('%s%s/usage.png',
getPath(),
getConfig('usage_base')
);
if (strpos(getRequestElement('image'), chr(92)) > 0) {
setGetRequestElement('image', substr(getRequestElement('image'), 0, strpos(getRequestElement('image'), chr(92))));
} // END - if
- $FQFN = sprintf("%s%s/%s_usage_%s.png",
+ $FQFN = sprintf('%s%s/%s_usage_%s.png',
getPath(),
getConfig('usage_base'),
getRequestElement('type'),
} // END - if
doShutdown();
} elseif (isGetRequestElementSet('usage')) {
- $FQFN = sprintf("%s%s/usage_%s.html",
+ $FQFN = sprintf('%s%s/usage_%s.html',
getPath(),
getConfig('usage_base'),
getRequestElement('usage')
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the guest action module
loadIncludeOnce($inc);
addYouAreHereLink('guest', __FILE__);
// Only when one admin link is clicked...
-$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the guest action module
loadIncludeOnce($inc);
addYouAreHereLink('guest', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the guest action module
loadIncludeOnce($inc);
addYouAreHereLink('guest', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the guest action module
loadIncludeOnce($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/guest/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/guest/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the guest action module
loadIncludeOnce($inc);
enableBlockMode(FALSE);
// Construct FQFN
-$inc = sprintf("inc/modules/guest/action-%s.php", getAction());
+$inc = sprintf('inc/modules/guest/action-%s.php', getAction());
// Is the file there?
if ((isIncludeReadable($inc)) && (isMenuActionValid('guest', getAction(), getWhat()))) {
outputHtml(' </td>
<td valign="top" align="center" rowspan="3" class="member_content">');
-$inc = sprintf("inc/modules/member/action-%s.php", $action);
+$inc = sprintf('inc/modules/member/action-%s.php', $action);
if ((isIncludeReadable($inc)) && (isMenuActionValid('member', getAction(), getWhat()))) {
// Requested module is available so we load it
loadInclude($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
addYouAreHereLink('member', __FILE__);
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
} // END - if
// Load the include file
-$inc = sprintf("inc/modules/member/what-%s.php", getWhat());
+$inc = sprintf('inc/modules/member/what-%s.php', getWhat());
if (isIncludeReadable($inc)) {
// Ok, we finally load the member action module
loadIncludeOnce($inc);
doGenericXmlTemplateCallback('member_delete_do_user_subid');
} elseif ((isGetRequestElementSet('do')) && (isGetRequestElementSet('id'))) {
// Construct module name
- $incFile = sprintf("inc/modules/member/subid-%s.php", sqlEscapeString(getRequestElement('do')));
+ $incFile = sprintf('inc/modules/member/subid-%s.php', sqlEscapeString(getRequestElement('do')));
// Is the include readable and is the sub id assigned to current member?
if (!isUserSubIdAssignedToMember(getRequestElement('id'))) {
sendEmail($content['sender']['userid'], '{--TRANSFER_MEMBER_SENDER_SUBJECT--}' . ': ' . $RECIPIENT, $message);
// At last send admin mail(s)
- $adminSubject = sprintf("%s (%s->%s)", '{--ADMIN_TRANSFER_SUBJECT--}', $SENDER, $RECIPIENT);
+ $adminSubject = sprintf('%s (%s->%s)', '{--ADMIN_TRANSFER_SUBJECT--}', $SENDER, $RECIPIENT);
sendAdminNotification($adminSubject, 'admin_transfer_points', $content);
// Transfer is completed
// Full file name for checking menu
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'sub_what=' . $content['sub_what']);
- $inc = sprintf("inc/modules/%s/what-%s.php", $mode, $content['sub_what']);
+ $inc = sprintf('inc/modules/%s/what-%s.php', $mode, $content['sub_what']);
if (isIncludeReadable($inc)) {
// Mark currently selected menu - open
if ((!empty($what)) && (($what == $content['sub_what']))) {
enableBlockMode();
// Load menu block
- $INC = sprintf("inc/modules/%s/action-%s.php", $mode, $content['action']);
+ $INC = sprintf('inc/modules/%s/action-%s.php', $mode, $content['action']);
if (isFileReadable($INC)) {
// Load include file
if ((!isExtensionActive($content['action'])) || ($content['action'] == 'online')) $GLOBALS['rows'] .= loadTemplate('menu_what_begin', TRUE, $mode);
}
-?>
\ No newline at end of file
+?>