But i have a problem here. The server from USA that I use has a time difference of 5 hours from the guestbook setting that I use.
I modify the time difference setting but the time during which any message posted between 12.01am to 4.59am becomes 24.01 - 28.59 .
I have consulted the person who created the guestbook but he could not help:(
I would be very grateful if someone could help.
Appended below are excerpts of the codes used for setting the time difference:
Code: Select all
<? require("check.php") ;?>
<?
if($_POST['ghtml'] != "")
{
$gname=str_replace("∥","", $_POST['gname']);
$gup=str_replace("∥","", $_POST['gup']);
$guser=str_replace("∥","", $_POST['guser']);
$gmail=str_replace("∥","", $_POST['gmail']);
$ghome=str_replace("∥","", $_POST['ghome']);
$gwidth=str_replace("∥","", $_POST['gwidth']);
$gn=str_replace("∥","", $_POST['gn']);
$gnnumber=str_replace("∥","", $_POST['gnnumber']);
$ghtml=str_replace("∥","", $_POST['ghtml']);
$gup=str_replace("∥","", $_POST['gup']);
$gm_link=str_replace("∥","", $_POST['gm_link']);
$gu_link=str_replace("∥","", $_POST['gu_link']);
$go_link=str_replace("∥","", $_POST['go_link']);
$gc_link=str_replace("∥","", $_POST['gc_link']);
$gm_line=str_replace("∥","", $_POST['gm_line']);
$gi_line=str_replace("∥","", $_POST['gi_line']);
$go_skin=str_replace("∥","", $_POST['go_skin']);
$gm_skin=str_replace("∥","", $_POST['gm_skin']);
$gc_skin=str_replace("∥","", $_POST['gc_skin']);
$gf_type=str_replace("∥","", $_POST['gf_type']);
$gip=str_replace("∥","", $_POST['gip']);
$gt_y=str_replace("∥","", $_POST['gt_y']);
$gt_m=str_replace("∥","", $_POST['gt_m']);
$gt_d=str_replace("∥","", $_POST['gt_d']);
$gt_h=str_replace("∥","", $_POST['gt_h']);
$gt_s=str_replace("∥","", $_POST['gt_s']);
$g_boy=str_replace("∥","", $_POST['g_boy']);
$g_girl=str_replace("∥","", $_POST['g_girl']);
$system=$gname."∥".$gup."∥".$guser."∥".$gmail."∥".$ghome."∥".$gwidth. "∥".$gnnumber."∥".$gn."∥".$gm_link."∥".$gu_link."∥".$go_link."∥".$gc_link. "∥".$gm_line."∥".$gi_line."∥".$go_skin."∥".$gm_skin."∥".$gc_skin."∥".$gf_type. "∥".$gip."∥".$gt_y."∥".$gt_m."∥".$gt_d."∥".$gt_h."∥".$gt_s."∥".$g_boy."∥".$g_girl."∥".$ghtml;
$f=fopen("gtype.dat","w+");
fputs($f,$system);
fclose($f);
echo "<table border=0 width=150><tr><td><fieldset><center><br>". "<font color=Red size=2><legend>finish editing</legend></font><a href=javascript:history.back(1)>". "<font color=$gm_link size=2>return to previous page</font></a><hr color=$gu_link width=150 size=1>". "</fieldset></td></tr></table>";
}
?>Code: Select all
<form action="gsave.php?cookie=yes" method="post">
<tr>
<td width="55%" style="border: 1 solid #C0C0C0"><font size="2">time difference </font></td>
<td width="47%" style="border: 1 solid #C0C0C0"><font size="2">year:<input type="text" name="gt_y" size="2" value="<?=$gt_y;?>">month:<input type="text" name="gt_m" size="2" value="<?=$gt_m;?>">date:<input type="text" name="gt_d" size="2" value="<?=$gt_d;?>">hour:<input type="text" name="gt_h" size="2" value="<?=$gt_h;?>">minute:<input type="text" name="gt_s" size="2" value="<?=$gt_s;?>"></font></td>
</tr>