Hallo,
ich habe das Modul ins das v3.0.3 eingebaut.
Nun habe ich damit folgendes Problem.
Setze ich "Vor der Wartungsabschaltung eine WARNUNG anzeigen" auf true, dann erhalte ich folgende Fehlermeldung, wenn ich mich ins Admin Menue einloggen will.
Fatal error: Call to undefined function: xtc_output_warning() in /www/htdocs/erotikdr/inc/down_for_maintenance.php on line 56
Die Zeile 56 sieht so aus:
xtc_output_warning($ErrorMessage);
Habe hier auch den kompletten Code.
Code:
<?php
// W. Kaiser BOF: Down for Maintenance except for admin ip or admin password
// Check for "Down for Maintenance" and allow processing or not
if (DOWN_FOR_MAINTENANCE == 'true')
{
if (!$_SESSION['allowmaintenance'])
{
?// set the WARN_BEFORE_DOWN_FOR_MAINTENANCE to false if DOWN_FOR_MAINTENANCE = true
?if (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true')
?{
? xtc_db_query("update " . TABLE_CONFIGURATION . " set configuration_value = 'false', last_modified = '
? ? ?now()' where configuration_key = 'WARN_BEFORE_DOWN_FOR_MAINTENANCE'");
?}
?//Check if user is allowed to work
?$RemoteAdress=getenv('REMOTE_ADDR');
?if ($RemoteAdress == EXCLUDE_ADMIN_IP_FOR_MAINTENANCE)
?{
? // ADMIN_IP --> Allow working
?}
?elseif ($_GET['allowmaintenance'] == ADMIN_PASSWORD_FOR_MAINTENANCE)
?{
? // "allowmaintenance"-password --> Allow working
?}
?elseif ($RemoteAdress == "127.0.0.1")
?{
? // Local system --> Allow working
?}
?else
?{
? // No special user --> Show info
? ? ?xtc_redirect(xtc_href_link(FILENAME_DOWN_FOR_MAINTENANCE, '', 'NONSSL'));
?}
?$_SESSION['allowmaintenance']=true;
}
$ErrorMessage = TEXT_ADMIN_DOWN_FOR_MAINTENANCE;
}
elseif (WARN_BEFORE_DOWN_FOR_MAINTENANCE == 'true')
{
$ErrorMessage = TEXT_BEFORE_DOWN_FOR_MAINTENANCE;
}
if ($ErrorMessage != '')
{
$IsAdminFunction = strpos($_SERVER['REQUEST_URI'],'/admin/') > 0;
if (PERIOD_DOWN_FOR_MAINTENANCE != '')
{
?$ErrorMessage .= " (" . DOWN_FOR_MAINTENANCE_NAME . ' ' . ltrim(PERIOD_DOWN_FOR_MAINTENANCE).")";
}
if ($IsAdminFunction)
{
?$messageStack->add($ErrorMessage, 'warning');
}
else
{
?xtc_output_warning($ErrorMessage);
}
}
// ?W. Kaiser EOF: WebMakers.com Added: Down for Maintenance
?>
Ich hoffe das Ihr bei meinem Problem helfen k?nnt.
Gru?
Grandpiano
P.S. Habe mein Problem auch nochmal im Sponsoren Bereich gepostet aber leider noch keine Antwort. :cry: