new2.php
code removed after the line that shows $big_title();
Code: Select all
if ($account_creation_closed)
{
die ($l_new_closed_message);
}
Code that's inserted after the line $big_title();
Code: Select all
if ($account_creation_closed)
{
echo $l_new_closed_message;
echo "<br>";
echo "<br>";
echo "<br>";
echo "Click <a href='index.php'>HERE</a> To return to login screen.";
die();
}
This is another further modification that gives the user a choice to click the link to return back to the login or wait 5 seconds for an auto redirect.
Code: Select all
if ($account_creation_closed)
{
echo $l_new_closed_message;
echo "<br>";
echo "<br>";
echo "<br>";
echo "If this page does not redirect in 5 seconds, Click <a href='index.php'>HERE</a> To return to login screen.";
echo "<script language='javascript'>
window.setTimeout(function()
{
window.location.href = 'index.php';
}, 5000);
</script>";
die();
}
Code: Select all
if ($server_closed)
{
$title = $l_login_sclosed;
include "header.php";
echo "<div style='text-align:center; color:#ff0; font-size:20px;'><br>$l_login_closed_message</div><br>\n";
TEXT_GOTOLOGIN();
include "footer.php";
die();
}
Code: Select all
if ($server_closed)
{
$title = "CLOSED";
$l_login_closed_message = "ALL LOGINS ARE CLOSED UNTIL FURTHER NOTICE.....";
echo "<div style='text-align:center; color:#ff0; font-size:40px;'><br>$l_login_closed_message</div><br>\n";
include "footer.php";
die();
}
The problem I found is the language variables
$l_login_sclosed
$l_login_closed_message
were empty, so I had to manually enter the data in English.
I found the problem, I had to insert this line before the offline check:-
Code: Select all
load_languages($db, $lang, array('new', 'login', 'common', 'global_includes', 'global_funcs', 'footer', 'news'), $langvars, $db_logging);