Linux lhjmq-records 5.15.0-118-generic #128-Ubuntu SMP Fri Jul 5 09:28:59 UTC 2024 x86_64
Your IP : 3.141.201.92
<?php
//Open the server connection and get the page's date if it exists
$pages = mysql_query("SELECT * FROM lhjmq_web_pages WHERE id_page = $page", $mysql_link);
//Check if a page was returned
if(mysql_num_rows($pages) == 0){
//No page, real error 404
$type_page = 0;
}else{
//Page exists but is not ready yet, get the page
$page = mysql_fetch_array($pages);
if($page[redir_to] != ""){
echo "<script language=\"javascript\">window.location = '" . $page[redir_to] . "';</script>";
exit();
}
if($page[old_page] == ""){
//Extract the year, month and day of the date
$dateCreation = explode("-", $page[date_creation]);
$yearMsg = $dateCreation[0];
$monthMsg = $dateCreation[1];
$dayMsg = $dateCreation[2];
//Create a textual date
$pageDate = $dateMaker->makeDate("fr", $dayMsg, $monthMsg, $yearMsg, 1);
//Show the date
$type_page = 1;
}else{
//Extract the year, month and day of the date
$dateCreation = explode("-", $page[date_creation]);
$yearMsg = $dateCreation[0];
$monthMsg = $dateCreation[1];
$dayMsg = $dateCreation[2];
//Create a textual date
$pageDate = $dateMaker->makeDate("fr", $dayMsg, $monthMsg, $yearMsg, 1);
//Show the date
$type_page = 2;
$pageLink = $page[old_page];
}
}
?>
<TABLE width="100%" border="0" cellpadding="5" cellspacing="0">
<TR>
<TD>
<?php
if($type_page == 0){
?>
<TABLE width="622" border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<TR class="blueRow">
<TD class="cellPadding5">
<P class="blackText11px"><B>The requested page does not exist.</B></TD>
</TR>
</TABLE>
<?php
}elseif($type_page == 1){
?>
<TABLE width="622" border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<TR class="blueRow">
<TD class="cellPadding5">
<P class="blackText11px"><B>This information will be available shortly.</B
></TD>
</TR>
</TABLE>
<?php
}else{
?>
<TABLE width="622" border="0" cellpadding="0" cellspacing="0" class="outlinetab">
<TR class="blueRow">
<TD class="cellPadding5">
<P class="blackText11px"><B>This page's final version is not available yet.</B
>
<P class="blackText11px">Meanwhile, you can access the information <A href="<?php echo $pageLink?>" target="_blank" class="lnkBase11px">by clicking here</A>.</TD>
</TR>
</TABLE>
<?php
}
?>
</TD>
</TR>
</TABLE>
|