templates/de/html/member/member_list_surfbar_form.tpl svneol=native#text/plain
templates/de/html/member/member_list_surfbar_row.tpl svneol=native#text/plain
templates/de/html/member/member_list_surfbar_table.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed_404_row.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed_nopoints.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed_nopoints_404_row.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed_nopoints_row.tpl svneol=native#text/plain
+templates/de/html/member/member_list_unconfirmed_row.tpl svneol=native#text/plain
templates/de/html/member/member_list_user_subids.tpl svneol=native#text/plain
templates/de/html/member/member_list_user_subids_row.tpl svneol=native#text/plain
templates/de/html/member/member_login_js.tpl svneol=native#text/plain
./inc/config-functions.php:353: // @TODO Call setConfigEntry() somehow
./inc/daily/daily_beg.php:52:// @TODO This should be converted in a daily beg rallye
./inc/daily/daily_birthday.php:99: // @TODO 4 is hard-coded here, should we move it out in config?
-./inc/email-functions.php:109: * @TODO Rewrite this to an extension 'smtp'
-./inc/email-functions.php:205:// @TODO $rawUserId is currently unused
+./inc/email-functions.php:113: * @TODO Rewrite this to an extension 'smtp'
+./inc/email-functions.php:209:// @TODO $rawUserId is currently unused
./inc/expression-functions.php:173:// @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
./inc/expression-functions.php:46: // @TODO is escapeQuotes() enough for strings with single/double quotes?
./inc/extensions/ext-html_mail.php:136: // @TODO Move these arrays into config
./inc/extensions/ext-nickname.php:52: // @TODO NOT NULL DEFAULT '' is bad practice, use NULL
./inc/extensions/ext-yoomedia.php:121: // @TODO Can this be moved into a database table?
./inc/extensions/ext-yoomedia.php:54:// @TODO Only deprecated when 'ext-network' is ready! setExtensionDeprecated('Y');
-./inc/extensions-functions.php:2181:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
-./inc/extensions-functions.php:429: // @TODO This redirect is still needed to register sql_patches! Please try to avoid it
-./inc/extensions-functions.php:445:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
-./inc/extensions-functions.php:585: // @TODO Extension is loaded, what next?
+./inc/extensions-functions.php:2201:// @TODO This should be rewrittten to allow, more development states, e.g. 'planing','alpha','beta','beta2','stable'
+./inc/extensions-functions.php:436: // @TODO This redirect is still needed to register sql_patches! Please try to avoid it
+./inc/extensions-functions.php:452:// @TODO Change from ext_id to ext_name (not just even the variable! ;-) )
+./inc/extensions-functions.php:592: // @TODO Extension is loaded, what next?
./inc/filter/bonus_filter.php:56: // @TODO This query isn't right, it will only update if the user was for a longer time away!
./inc/filter/cache_filter.php:94: // @TODO This should be rewritten not to load the cache file for just checking if it is there for save removal.
./inc/filter/forced_filter.php:73: // @TODO This part is unfinished
./inc/functions.php:1104: // @TODO Move this SQL code into a function, let's say 'getTimestampFromPoolId($id) ?
./inc/functions.php:1190: // @TODO Are these convertions still required?
./inc/functions.php:1211:// @TODO Rewrite this function to use readFromFile() and writeToFile()
-./inc/functions.php:1816: // @TODO Find a way to cache this
-./inc/functions.php:1920: // @TODO This is still very static, rewrite it somehow
-./inc/functions.php:2124: // @TODO Rename column data_type to e.g. mail_status
-./inc/functions.php:2474:// @TODO cacheFiles is not yet supported
+./inc/functions.php:1820: // @TODO Find a way to cache this
+./inc/functions.php:1924: // @TODO This is still very static, rewrite it somehow
+./inc/functions.php:2128: // @TODO Rename column data_type to e.g. mail_status
+./inc/functions.php:2478:// @TODO cacheFiles is not yet supported
./inc/gen_sql_patches.php:95:// @TODO Rewrite this to a filter
./inc/header.php:66:// @TODO Find a way to not use direct module comparison
./inc/install-functions.php:402: // @TODO Comparing with DEFAULT_MAIN_TITLE doesn't work
./inc/modules/admin/what-admins_mails.php:58: // @TODO Can this be rewritten to an API function?
./inc/modules/admin/what-bonus.php:46:// @TODO Unused at the moment
./inc/modules/admin/what-config_points.php:90: // @TODO Rewrite these two lines for new user_points columns (e.g. locked_order_points) with a filter
-./inc/modules/admin/what-config_register.php:75: // @TODO Move this HTML code into a template
+./inc/modules/admin/what-config_register.php:79: // @TODO Move this HTML code into a template
./inc/modules/admin/what-del_email.php:61: // @TODO Unused: cat_id, payment_id
./inc/modules/admin/what-edit_user.php:18: * @TODO Add support for ext-country *
./inc/modules/admin/what-email_stats.php:46:// @TODO Unused at the moment
-./inc/modules/admin/what-extensions.php:362: // @TODO Rewrite this to a filter
+./inc/modules/admin/what-extensions.php:366: // @TODO Rewrite this to a filter
./inc/modules/admin/what-guest_add.php:129: // @TODO This can be somehow rewritten to a function
./inc/modules/admin/what-guest_add.php:67: // @TODO Cant this be rewritten?
./inc/modules/admin/what-guest_add.php:80: // @TODO This can be somehow rewritten to a function
./inc/modules/guest/what-mediadata.php:67: // @TODO Find a better formular than this one
./inc/modules/guest/what-rallyes.php:99: // @TODO Reactivate this: $content['admin'] = '<a href="{%url=modules.php?module=index&what=impressum&id=' . $content['admin_id'] . '%}">' . $content['login'] . '</a>';
./inc/modules/guest/what-sponsor_reg.php:293: // @TODO Maybe a default referral id?
-./inc/modules/guest/what-stats.php:110: // @TODO This can be somehow rewritten
-./inc/modules/guest/what-stats.php:119: // @TODO This does not exclude testers
-./inc/modules/guest/what-stats.php:82:// @TODO This can be rewritten in a dynamic include
+./inc/modules/guest/what-stats.php:111: // @TODO This can be somehow rewritten
+./inc/modules/guest/what-stats.php:120: // @TODO This does not exclude testers
+./inc/modules/guest/what-stats.php:83:// @TODO This can be rewritten in a dynamic include
./inc/modules/member/what-beg.php:54:// @TODO Can't this be moved into EL?
./inc/modules/member/what-beg.php:63:// @TODO No more needed? define('__BEG_USERID_TIMEOUT', createFancyTime(getBegUseridTimeout()));
./inc/modules/member/what-logout.php:17: * @TODO Rewrite the code to a filter *
./inc/template-functions.php:288: // @TODO Remove these sanity checks if all is fine
./inc/template-functions.php:625:// @TODO $simple/$constants are deprecated
./inc/template-functions.php:723: // @TODO $userid is deprecated and should be removed from loadEmailTemplate() and replaced with $content[userid] in all templates
-./inc/wrapper-functions.php:3020: // @TODO Find a way to not use direct module comparison
+./inc/wrapper-functions.php:3176: // @TODO Find a way to not use direct module comparison
./inc/wrapper-functions.php:512:// @TODO Do some more sanity check here
./inc/xml-functions.php:240: // @TODO Handle characters
./mailid.php:102: // @TODO Rewrite this to a filter
./templates/de/html/guest/guest_login.tpl:21: @TODO Deactivated feature, try to implement it or remove it.
./templates/de/html/guest/guest_nickname_login.tpl:21: @TODO Deactivated feature, try to find a solution for this or remove it.
./templates/de/html/guest/guest_stats_member.tpl:21: @TODO We have to fix these counters.
-./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:12: <!-- @TODO Nothing to say here? //-->
+./templates/de/html/member/member_list_unconfirmed_nopoints.tpl:12: <!-- @TODO Nothing to say here? //-->
./templates/de/html/surfbar/surfbar_frameset.tpl:4: // @TODO This redirect kills our own frameset
./templates/de/html/surfbar/surfbar_frame_textlinks.tpl:5: <!-- @TODO These are static lines and should be replaced by a filter (see ext-network/ext-sponsor) //-->
./.htaccess:10: # @TODO When ext-imprint is finished RewriteRule ^modules.php?module=index&what=impressum$ modules.php?module=index&what=imprint [L]
./templates/de/html/guest/guest_paidlinks_register_header.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/guest/guest_paidlinks_register.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/install/install_header.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_404_nopoints.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_404.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_row_nopoints.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_row.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_table_nopoints.tpl:1:<!-- @DEPRECATED //-->
+./templates/de/html/member/member_unconfirmed_table.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/metadata.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/theme_one.tpl:1:<!-- @DEPRECATED //-->
./templates/de/html/theme_select_box.tpl:1:<!-- @DEPRECATED //-->
// Bonus is not given by default ;-)
$bonus = FALSE;
- if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (getIncludeBonusLogin() == 'Y')) {
+ if ((isExtensionInstalledAndNewer('sql_patches', '0.2.8')) && (isBonusRallyeActive()) && (isIncludeBonusLoginEnabled())) {
// Update last login if far enougth away
// @TODO This query isn't right, it will only update if the user was for a longer time away!
SQL_QUERY_ESC('UPDATE
} // END - if
// Add more columns only when the corresponding configuration is enabled, too
- if (getIncludeBonusClick() == 'Y') $add .= ' + `turbo_bonus`';
- if (getIncludeBonusLogin() == 'Y') $add .= ' + `login_bonus`';
- if (getIncludeBonusOrder() == 'Y') $add .= ' + `bonus_order`';
- if (getIncludeBonusRef() == 'Y') $add .= ' + `bonus_ref`';
- if (getIncludeBonusStats() == 'Y') $add .= ' + `bonus_stats`';
+ if (isIncludeBonusClickEnabled()) $add .= ' + `turbo_bonus`';
+ if (isIncludeBonusLoginEnabled()) $add .= ' + `login_bonus`';
+ if (isIncludeBonusOrderEnabled()) $add .= ' + `bonus_order`';
+ if (isIncludeBonusRefEnabled() ) $add .= ' + `bonus_ref`';
+ if (isIncludeBonusStatsEnabled()) $add .= ' + `bonus_stats`';
// Return $add
//* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'Done!');
// Filter for displaying copyright line
function FILTER_DISPLAY_COPYRIGHT () {
// Shall we display the copyright notice?
- if ((isFullPage()) && ((getConfig('WRITE_FOOTER') == 'Y') || (isInstalling())) && ($GLOBALS['__header_sent'] == 2) && (ifCopyrightFooterEnabled())) {
+ if ((isFullPage()) && ((getWriteFooter() == 'Y') || (isInstalling())) && ($GLOBALS['__header_sent'] == 2) && (ifCopyrightFooterEnabled())) {
// Backlink enabled?
if (((isConfigEntrySet('ENABLE_BACKLINK')) && (getConfig('ENABLE_BACKLINK') == 'Y')) || (isInstalling())) {
// Copyright with backlink, thanks! :-)
// Filter for displaying parsing time
function FILTER_DISPLAY_PARSING_TIME () {
// Shall we display the parsing time and number of queries?
- // 1234 5 54 4 5 5 4 4 5543 3 4432 2 332 2 21
- if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (getConfig('show_timings') == 'Y') && (isFullPage())) && (!isInstallationPhase())) && (isHtmlOutputMode()) && ($GLOBALS['__header_sent'] == 2)) {
+ // 1234 5 54 4 554 4 5543 3 4432 2 332 2 21
+ if ((((isExtensionInstalledAndNewer('sql_patches', '0.4.1')) && (isShowTimingsEnabled()) && (isFullPage())) && (!isInstallationPhase())) && (isHtmlOutputMode()) && ($GLOBALS['__header_sent'] == 2)) {
// Then display it here
displayParsingTime();
} // END - if
return $GLOBALS[__FUNCTION__];
}
+// Checks whether bonus_include_own is set to 'Y'
+function isBonusIncludeOwnEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getBonusIncludeOwn() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for bonus_disable_notify
function getBonusDisableNotify () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Checks whether include_bonus_click is set to 'Y'
+function isIncludeBonusClickEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getIncludeBonusClick() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for include_bonus_login
function getIncludeBonusLogin () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Checks whether include_bonus_login is set to 'Y'
+function isIncludeBonusLoginEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getIncludeBonusLogin() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for include_bonus_order
function getIncludeBonusOrder () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Checks whether include_bonus_order is set to 'Y'
+function isIncludeBonusOrderEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getIncludeBonusOrder() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for include_bonus_Ref
function getIncludeBonusRef () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Checks whether include_bonus_ref is set to 'Y'
+function isIncludeBonusRefEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getIncludeBonusRef() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for include_bonus_stats
function getIncludeBonusStats () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Checks whether include_bonus_stats is set to 'Y'
+function isIncludeBonusStatsEnabled () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = (getIncludeBonusStats() == 'Y');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
$GLOBALS['__page_footer'] .= loadTemplate('admin_other_sqls', TRUE, $OUT);
}
+//-----------------------------------------------------------------------------
+// Wrapper functions for configuration entries
+//-----------------------------------------------------------------------------
+
+// Getter for 'reject_url' config entry
+function getRejectUrl () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('reject_url');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// [EOF]
?>
return $GLOBALS[__FUNCTION__];
}
+// Getter for send_prof_update
+function getSendProfUpdate () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('send_prof_update');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// Determines whether sending profile update notification is enabled
function isSendProfileUpdateEnabled() {
// Is there cache?
if (!isset($GLOBALS[__FUNCTION__])) {
// Determine it
- $GLOBALS[__FUNCTION__] = (getConfig('send_prof_update') == 'Y');
+ $GLOBALS[__FUNCTION__] = (getSendProfUpdate() == 'Y');
} // END - if
// Return cache
loadTemplate('guest_menu_td');
// Add the guest's menu here...
-if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches', TRUE))) {
+if ((isGuestMenuEnabled()) || (!isExtensionActive('sql_patches', TRUE))) {
// Show only when guest menu is active
addMenu('guest', getAction(), getWhat());
} // END - if
redirectToUrl('modules.php?module=index');
}
-if ((getConfig('guest_menu') == 'Y') || (!isExtensionActive('sql_patches'))) {
+if ((isGuestMenuEnabled()) || (!isExtensionActive('sql_patches'))) {
// Right side of content (hint: a good place for 120x600 skyscraper banner!)
loadTemplate('guest_content_footer');
}
// Add the member's menu here...
-if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', TRUE))) {
+if ((isMemberMenuEnabled()) || (!isExtensionActive('sql_patches', TRUE))) {
addMenu('member', getActionFromModuleWhat('member', getWhat()), getWhat());
} // END - if
redirectToUrl('modules.php?module=login');
}
-if ((getConfig('member_menu') == 'Y') || (!isExtensionActive('sql_patches', TRUE))) {
+if ((isMemberMenuEnabled()) || (!isExtensionActive('sql_patches', TRUE))) {
// Right side of content (hint: a good place for 120x600 skyscraper banner!)
loadTemplate('member_content_right');
);
// Load row template
- if (getConfig('show_points_unconfirmed') == 'Y') {
- $OUT .= loadTemplate('member_unconfirmed_row', TRUE, $content);
+ if (isShowPointsUnconfirmedEnabled()) {
+ $OUT .= loadTemplate('member_list_unconfirmed_row', TRUE, $content);
} else {
- $OUT .= loadTemplate('member_unconfirmed_row_nopoints', TRUE, $content);
+ $OUT .= loadTemplate('member_list_unconfirmed_nopoints_row', TRUE, $content);
}
// Count points
);
// Display points or not?
- if (getConfig('show_points_unconfirmed') == 'Y') {
- $OUT .= loadTemplate('member_unconfirmed_404', TRUE, $content);
+ if (isShowPointsUnconfirmedEnabled()) {
+ $OUT .= loadTemplate('member_list_unconfirmed_404_row', TRUE, $content);
} else {
- $OUT .= loadTemplate('member_unconfirmed_404_nopoints', TRUE, $content);
+ $OUT .= loadTemplate('member_list_unconfirmed_nopoints_404_row', TRUE, $content);
}
}
$content['rows'] = $OUT;
// Load main template
- if (getConfig('show_points_unconfirmed') == 'Y') {
- loadTemplate('member_unconfirmed_table', FALSE, $content);
+ if (isShowPointsUnconfirmedEnabled()) {
+ loadTemplate('member_list_unconfirmed', FALSE, $content);
} else {
- loadTemplate('member_unconfirmed_table_nopoints', FALSE, $content);
+ loadTemplate('member_list_unconfirmed_nopoints', FALSE, $content);
}
} else {
// No mails left to confirm... :)
} // END - if
// Is ext-sql_patches installed?
- //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isExtensionInstalledAndNewer()=' . intval(isExtensionInstalledAndNewer('sql_patches', '0.2.3')) . ',youre_here=' . getConfig('youre_here') . ',isAdmin()=' . intval(isAdmin()) . ',modCheck=' . $modCheck);
- if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (getConfig('youre_here') == 'Y')) || ((isAdmin()) && ($modCheck == 'admin'))) {
+ //* DEBUG: */ logDebugMessage(__FUNCTION__, __LINE__, 'isExtensionInstalledAndNewer()=' . intval(isExtensionInstalledAndNewer('sql_patches', '0.2.3')) . ',youre_here=' . getYoureHere() . ',isAdmin()=' . intval(isAdmin()) . ',modCheck=' . $modCheck);
+ if (((isExtensionInstalledAndNewer('sql_patches', '0.2.3')) && (isYourHereEnabled())) || ((isAdmin()) && ($modCheck == 'admin'))) {
// Output HTML code
$OUT = $prefix . '<strong><a class="you_are_here" href="{%url=modules.php?module=' . $modCheck . '&' . $type . '=' . $search . $linkAdd . '%}">' . getTitleFromMenu($accessLevel, $search, $type, $ADD) . '</a></strong>';
return $GLOBALS[__FUNCTION__];
}
+// "Getter" for WRITE_FOOTER
+function getWriteFooter () {
+ // Is there cache?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // Determine it
+ $GLOBALS[__FUNCTION__] = getConfig('WRITE_FOOTER');
+ } // END - if
+
+ // Return cache
+ return $GLOBALS[__FUNCTION__];
+}
+
// "Getter" for secret_key
function getSecretKey () {
// Is there cache?
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'show_points_unconfirmed'
+function getShowPointsUnconfirmed () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('show_points_unconfirmed');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks whether 'show_points_unconfirmed' is 'Y'
+function isShowPointsUnconfirmedEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getShowPointsUnconfirmed() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'youre_here'
+function getYoureHere () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('youre_here');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks whether 'show_timings' is 'Y'
+function isYoureHereEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getYoureHere() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'show_timings'
+function getShowTimings () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('show_timings');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks whether 'show_timings' is 'Y'
+function isShowTimingsEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getShowTimings() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for 'ap_server_name_since'
function getApServerNameSince () {
// Is the cache entry set?
return $GLOBALS[__FUNCTION__];
}
+// Getter for 'guest_menu'
+function getGuestMenu () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('guest_menu');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks if guest menu is enabled
+function isGuestMenuEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getGuestMenu() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Getter for 'member_menu'
+function getMemberMenu () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = getConfig('member_menu');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
+// Checks if member menu is enabled
+function isMemberMenuEnabled () {
+ // Is the cache entry set?
+ if (!isset($GLOBALS[__FUNCTION__])) {
+ // No, so determine it
+ $GLOBALS[__FUNCTION__] = (getMemberMenu() == 'Y');
+ } // END - if
+
+ // Return cached entry
+ return $GLOBALS[__FUNCTION__];
+}
+
// Getter for 'word_wrap'
function getWordWrap () {
// Is the cache entry set?
// Is an active-rallye running and this is not a notification mail?
if ((isBonusRallyeActive()) && ($data['is_notify'] != 'Y')) {
// Shall I exclude the webmaster's own userid from the active-rallye?
- if ((((getBonusUserid() == $userId) && (getBonusIncludeOwn() == 'Y')) || (getBonusUserid() != $userId)) && (getDefRefid() != $userId)) {
+ if ((((getBonusUserid() == $userId) && (isBonusIncludeOwnEnabled())) || (getBonusUserid() != $userId)) && (getDefRefid() != $userId)) {
// Add points and remember ranking are done in this function....
addTurboBonus($urlId, $userId, $type);
--- /dev/null
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="650">
+<tr>
+ <td width="100" class="header_column bottom right" align="center"><strong>{--CONFIRM_LINK2--}:</strong></td>
+ <td width="110" class="header_column bottom right" align="center"><strong>{--EMAIL_SENDER--}:</strong></td>
+ <td width="170" class="header_column bottom right" align="center"><strong>{--EMAIL_DETAILS--}:</strong></td>
+ <td width="150" class="header_column bottom right" align="center"><strong>{--EMAIL_TIMESTAMP--}:</strong></td>
+ <td width="120" class="header_column bottom" align="center"><strong>{--EMAIL_POINTS--}:</strong></td>
+</tr>
+$content[rows]
+<tr>
+ <td align="right" class="table_footer right" colspan="4" style="padding-right:5px">
+ <strong>{--MEMBER_TOTAL_POINTS--}:</strong>
+ </td>
+ <td align="right" class="table_footer" style="padding-right:5px">
+ <strong>{%pipe,translateComma=$content[total_points]%} {?POINTS?}</strong>
+ </td>
+</tr>
+</table>
+</div>
--- /dev/null
+<tr>
+ <td align="center" class="{%template,ColorSwitch%} top" colspan="5">
+ <span class="notice large">$content[message]:</span>
+ $content[data]
+ </td>
+</tr>
--- /dev/null
+<div align="center">
+<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="550">
+<tr>
+ <td width="100" class="header_column bottom right" align="center"><strong>{--CONFIRM_LINK2--}:</strong></td>
+ <td width="120" class="header_column bottom right" align="center"><strong>{--EMAIL_SENDER--}:</strong></td>
+ <td width="180" class="header_column bottom right" align="center"><strong>{--EMAIL_DETAILS--}:</strong></td>
+ <td width="160" class="header_column bottom right" align="center"><strong>{--EMAIL_TIMESTAMP--}:</strong></td>
+</tr>
+$content[rows]
+<tr>
+ <td class="table_footer" colspan="4">
+ <!-- @TODO Nothing to say here? //-->
+
+ </td>
+</tr>
+</table>
+</div>
--- /dev/null
+<tr>
+ <td align="center" class="{%template,ColorSwitch%} top" colspan="4">
+ <span class="notice large">$content[message]:</span>
+ $content[data]
+ </td>
+</tr>
--- /dev/null
+<tr>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ [<a href="{%url=mailid.php?userid=$content[userid]&$content[link_type]=$content[data]%}"
+ target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ $content[sender]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ [<a href="{%url=modules.php?module=login&what=unconfirmed&$content[link_type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom">$content[timestamp]</td>
+</tr>
--- /dev/null
+<tr>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ [<a href="{%url=mailid.php?userid=$content[userid]&$content[link_type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ $content[sender]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">
+ [<a href="{%url=modules.php?module=login&what=unconfirmed&$content[link_type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
+ </td>
+ <td align="center" class="{%template,ColorSwitch%} bottom right">$content[timestamp]</td>
+ <td align="right" class="{%template,ColorSwitch%} bottom" style="padding-right:5px">
+ {%pipe,translateComma=$content[points]%} {?POINTS?}
+ </td>
+</tr>
-<tr>
- <td align="center" class="{%template,ColorSwitch%} top" colspan="5">
- <span class="notice large">$content[message]:</span>
- $content[data]
- </td>
-</tr>
+<!-- @DEPRECATED //-->
-<tr>
- <td align="center" class="{%template,ColorSwitch%} top" colspan="4">
- <span class="notice large">$content[message]:</span>
- $content[data]
- </td>
-</tr>
+<!-- @DEPRECATED //-->
-<tr>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=mailid.php?userid=$content[userid]&$content[link_type]=$content[data]%}" target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[sender]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=modules.php?module=login&what=unconfirmed&$content[link_type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">$content[timestamp]</td>
- <td align="right" class="{%template,ColorSwitch%} bottom" style="padding-right:5px">
- {%pipe,translateComma=$content[points]%} {?POINTS?}
- </td>
-</tr>
+<!-- @DEPRECATED //-->
-<tr>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=mailid.php?userid=$content[userid]&$content[link_type]=$content[data]%}"
- target="_blank" title="{--CONFIRM_LINK--}">$content[data]</a>]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- $content[sender]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom right">
- [<a href="{%url=modules.php?module=login&what=unconfirmed&$content[link_type]=$content[data]%}">{--EMAIL_DETAILS_LINK--}</a>]
- </td>
- <td align="center" class="{%template,ColorSwitch%} bottom">$content[timestamp]</td>
-</tr>
+<!-- @DEPRECATED //-->
-<div align="center">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="650">
-<tr>
- <td width="100" class="header_column bottom right" align="center"><strong>{--CONFIRM_LINK2--}:</strong></td>
- <td width="110" class="header_column bottom right" align="center"><strong>{--EMAIL_SENDER--}:</strong></td>
- <td width="170" class="header_column bottom right" align="center"><strong>{--EMAIL_DETAILS--}:</strong></td>
- <td width="150" class="header_column bottom right" align="center"><strong>{--EMAIL_TIMESTAMP--}:</strong></td>
- <td width="120" class="header_column bottom" align="center"><strong>{--EMAIL_POINTS--}:</strong></td>
-</tr>
-$content[rows]
-<tr>
- <td align="right" class="table_footer right" colspan="4" style="padding-right:5px">
- <strong>{--MEMBER_TOTAL_POINTS--}:</strong>
- </td>
- <td align="right" class="table_footer" style="padding-right:5px">
- <strong>{%pipe,translateComma=$content[total_points]%} {?POINTS?}</strong>
- </td>
-</tr>
-</table>
-</div>
+<!-- @DEPRECATED //-->
-<div align="center">
-<table border="0" cellspacing="0" cellpadding="0" class="table dashed" width="550">
-<tr>
- <td width="100" class="header_column bottom right" align="center"><strong>{--CONFIRM_LINK2--}:</strong></td>
- <td width="120" class="header_column bottom right" align="center"><strong>{--EMAIL_SENDER--}:</strong></td>
- <td width="180" class="header_column bottom right" align="center"><strong>{--EMAIL_DETAILS--}:</strong></td>
- <td width="160" class="header_column bottom right" align="center"><strong>{--EMAIL_TIMESTAMP--}:</strong></td>
-</tr>
-$content[rows]
-<tr>
- <td class="table_footer" colspan="4">
- <!-- @TODO Nothing to say here? //-->
-
- </td>
-</tr>
-</table>
-</div>
+<!-- @DEPRECATED //-->