templates/de/html/menu/menu_member_advert_bank.tpl -text
templates/de/html/menu/menu_member_advert_end.tpl -text
templates/de/html/menu/menu_member_advert_extras.tpl -text
+templates/de/html/menu/menu_member_advert_logout.tpl -text
templates/de/html/menu/menu_member_advert_main.tpl -text
templates/de/html/menu/menu_member_advert_order.tpl -text
templates/de/html/menu/menu_member_advert_rals.tpl -text
// Flushes non-flushed template cache to disk
function flushTemplateCache ($template, $eval) {
// Is this cache flushed?
- if (!isTemplateCached($template)) {
+ if ((!isTemplateCached($template)) && ($eval != '404')) {
// Generate FQFN
$FQFN = sprintf("%s_compiled/templates/%s.tpl.cache", getConfig('CACHE_PATH'), $template);
} elseif (getUserId() == 0) {
// No member
return false;
+ } else {
+ // Transfer userid=>current
+ setCurrentUserid(getUserId());
}
// Init global user data array
if ($userid < 1) {
// Invalid, so abort here
debug_report_bug('User id ' . $userid . ' is invalid.');
- } elseif (isset($GLOBALS['user_data'][$userid])) {
+ } elseif (isUserDataValid()) {
// Use cache, so it is fine
return true;
}
--- /dev/null
+<tr>
+ <td class="menu_advert">
+ <a href="{?URL?}/modules.php?module=index&what=impressum" target="_blank">Hier könnte Ihre Werbung stehen!</a>
+ <!-- Fuegen Sie hier Ihre Werbung ein! //-->
+ </td>
+</tr>