Changing system date, page hanging revisited
Posted: Mon Feb 14, 2005 9:46 am
hey, after hours and hours of looking into this:
viewtopic.php?t=30438
I have still no solution, however, a better understanding of the problem:
I can no longer assume that the page hangs only when I set the date back, as the user is logged out automatically when setting the date forward (the session expires).
I have reproduced the problem in other situations (not setting the date at all).
So, the problem is now that when I change the date with this page, the success page loads and renders correctly now. However, after loading the page, the browser does not stop loading....it loads indefinately.
This problem is not related to one browser, and is reproductible in IE, mozilla, netscape.
Here is my current code:
I tried everything, exit()s, return()s, Im all out of ideas. Can anyone help?
Nemesis.
viewtopic.php?t=30438
I have still no solution, however, a better understanding of the problem:
I can no longer assume that the page hangs only when I set the date back, as the user is logged out automatically when setting the date forward (the session expires).
I have reproduced the problem in other situations (not setting the date at all).
So, the problem is now that when I change the date with this page, the success page loads and renders correctly now. However, after loading the page, the browser does not stop loading....it loads indefinately.
This problem is not related to one browser, and is reproductible in IE, mozilla, netscape.
Here is my current code:
Code: Select all
<?
if(file_exists("mtsiLib2.inc") && file_exists("mtsi_top.php3") && file_exists("style.inc"))
{
include("mtsiLib2.inc");
if(@mtsiConnect() == 0)
exit("mtsiConnect() failed.");
$date = $month.$day.$hour.$min.$year.".".$sec;
$date = trim($date);
mtsiExecuteCommand("date $date",$linearray);
sleep(1);
mtsiExecuteCommand("hwclock --systohc &",$linearray2);
sleep(2);
$msg = "Date and Time changed successfully";
$msg = str_replace(" ",":",$msg);
@mtsiDisconnect();
//this is instead of redirecting....
include ("date.php3");
}
else
{
$pages = "mtsiLib2.inc|mtsi_top.inc|style.inc";
include("error.php3");
}
?>Nemesis.