94 lines
2 KiB
PHP
94 lines
2 KiB
PHP
|
<!DOCTYPE html>
|
||
|
<head>
|
||
|
<!-- déclarations utiles -->
|
||
|
<html class="js desktop" lang="fr" dir="ltr">
|
||
|
<meta http-equiv="Content-Type" content="text/html; charset=utf8" />
|
||
|
|
||
|
<!-- meta -->
|
||
|
<meta name="description" content="Logs de Ryzom sur IRC">
|
||
|
<meta name="author" content="Ryzom">
|
||
|
|
||
|
<!-- mon icon -->
|
||
|
<link rel="shortcut icon" type="image/ico" href="../img/favicon.ico" />
|
||
|
|
||
|
<!-- mon template.css -->
|
||
|
<link href="../css/style.css" type="text/css" rel="stylesheet"/>
|
||
|
|
||
|
<style type="text/css" media="screen">
|
||
|
body {
|
||
|
background-color:white;
|
||
|
background-image:url(../img/ryzom_bg.jpg);
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
|
||
|
<title>Logs IRC Ryzom</title>
|
||
|
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<!-- Barre générale Khaganat -->
|
||
|
<?php include_once("/var/www/khanav/khnav.php"); ?>
|
||
|
<!--Fin Barre générale Khaganat-->
|
||
|
|
||
|
|
||
|
<!-- Le corps -->
|
||
|
|
||
|
<div id="gen">
|
||
|
<!-- Appeler le bon jour -->
|
||
|
<!-- c'est là qu'il faut faire un "truc" pour directement voir le bon. Avec un get -->
|
||
|
|
||
|
<?php
|
||
|
if (isset($_GET['day']) AND isset($_GET['chan']))
|
||
|
{
|
||
|
$date = $_GET['day'];
|
||
|
$chan= $_GET['chan'];
|
||
|
$log="../logs/#$chan/#$chan.$date.log";
|
||
|
?>
|
||
|
|
||
|
<H2>Logs de #<?php echo $chan;?> du <?php echo $date;?></H2>
|
||
|
|
||
|
<!-- Insérer le log, en modifiant la mise en page -->
|
||
|
|
||
|
<div align="left">
|
||
|
<?php
|
||
|
$handle = fopen("$log", "r");
|
||
|
while (($buffer = fgets($handle)) !== false) {
|
||
|
$rawtext.=$buffer;
|
||
|
}
|
||
|
$decode = htmlentities($rawtext);
|
||
|
$order="\n";
|
||
|
$replace="<br/>\n";
|
||
|
$log2 = str_replace($order,$replace,$decode);
|
||
|
|
||
|
print "<div \"align=left\">$log2</div>";
|
||
|
?>
|
||
|
<p>
|
||
|
<div align="center"><?php
|
||
|
//le lien vers le log du jour
|
||
|
|
||
|
echo '<a href="../logs/%23'.$chan.'/%23'.$chan.'.'.$date.'.log">Télécharger le texte seul</a>';
|
||
|
?></div>
|
||
|
|
||
|
<?php
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
echo "<a href=\"./index.php\">Choisissez un log accessible.</a>";
|
||
|
}
|
||
|
?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<!-- Le pied de page -->
|
||
|
|
||
|
|
||
|
<!--Footer général Khaganat-->
|
||
|
<?php include_once("/var/www/khanav/khfooter.php"); ?>
|
||
|
<!--Fin Footer général Khaganat-->
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|