<?php
// début
ob_start();
include "../inc_secu/inc_sql.php4";
include "../inc_secu/initialisation.inc.php4";
include "../script/dblink_list_backup.php4";
?>
<html>
<head>
<title>@--------------- Padaar.com ------------- Sauvegarde du <?php echo date("d-m-Y"); ?> --------------@</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../style_normal.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" leftmargin="16" topmargin="16" marginwidth="0" marginheight="0" background="../images/fond.gif" onLoad="tempschargement()">
<div align="left" width="150"> <a href="../readme/index.html"><img src="../images/readme/logo_padnews.jpg" width="131" height="26" align="absmiddle" border="0"></a>
<span class="texte"> <font color="#FF9900">
<script language="javascript">
<!--
today = new Date()
document.write("", today.getDate(),"/",today.getMonth()+1,"/",today.getYear())
document.write(", ",today.getHours(),":",today.getMinutes());
//-->
</script>
</font></span><br>
<table width="100%" border="0" cellspacing="10" cellpadding="0">
<tr>
<td align="center" valign="top">
<!--START LIST-NEWS-->
<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000000" align="center">
<tr>
<td align="left" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
<tr>
<td bgcolor="#B30000" class="titre2tr" align="left" valign="middle"> •<?php echo $NAME_CAT; ?>• </td>
</tr>
<tr align="center" valign="top" bgcolor="#eeeeee">
<td><blockquote><?php echo $DESC_CAT; ?></blockquote></td>
</tr>
<tr align="center" valign="top" bgcolor="#eeeeee">
<td><br>
<!--DEBUT TABLO NEWS -->
<?
//-------Parametres Requete-----------//
$TBL_Newspad="tbl_newspad_".$ID_Cat;
if($ORDER_style=="dateCreat") { $ORDER_sens = "DESC"; } else { $ORDER_sens=""; }
$req_sql = "SELECT id,article,titre,$ORDER_style,dateView,art_intro,images,lien_ext,fichier,nom_fichier,auteur,email FROM $TBL_Newspad ";
$req_sql.= "ORDER BY $ORDER_style $ORDER_sens LIMIT 0, $GENERAL_LimitNews";
//-------REQUETE -------------//
Requete_Manuelle($req_sql, $resulting);
//----Fonction d'affichage des news
Affiche_news($resulting,1);
mysql_free_result($resulting);
//---Fermeture de la connexion
$close_con=mysql_close($con);
?>
<!--FIN TABLO NEWS -->
<br>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--END LIST-NEWS-->
</td>
</tr>
</table>
</div>
</body>
</html>
<?php
$Result_Buffy=ob_get_contents();
ob_end_clean();
//-------------------//
$File_Backup = "archiv_cat".$ID_Cat."_".date("d-m-Y").".html";
if ( !$htmlfile=fopen($File_Backup,"w") ) {
echo "Impossible d'ecrire le fichier! Verifier les droits sur le repertoire";
} else {
fputs($htmlfile,$Result_Buffy);
header("Location: $File_Backup");
}
?>