Include :

<?php
#  _     /)---(\ 
#  \\   (/ . . \)   
#   \\__)-\(*)/     | Say me "wouf" !
#   \_       (_
#   (___/-(____)

if(!isset($_GET['err']))
  
error_reporting(0); # No error ! :-)
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" >
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <meta http-equiv="Content-Language" content="fr">
  <title>Theo7 -- Navigateur</title>
  <meta name="Description" content="Navigateur">
  <meta name="Author" content="mhö5">
  <meta name="Revisit-after" content="1">
  <meta name="Robots" content="INDEX, FOLLOW">
  <style type="text/css">
    body
    {
      width:98%;
      margin-right:auto;
      margin-left:auto;
      background-color:#000;
      font-family:fixed;
      font-size:11px;
      color:lightgreen;
    }
    .corp
    {
      border:1px solid #565656;
      padding-top:10px;
      padding-bottom:10px;
      background-color:#000;
      padding-left:20px;
    }
    .dir
    {
      color:GRAY;
    }
    .dir:hover
    {
      color:#565656;
    }
    .center
    {
      text-align:center;
    }
    a
    {
      text-decoration:none;
      color:SILVER;
    }
    a:hover
    {
      color:GRAY;
    }
    .hidden span{display:none}
    .hidden:hover{background:none;z-index:10;}
    .hidden:hover span
    {
      display:inline;
      position:absolute;                        
      margin-right:5px;
      margin-top:5px;
      font-size:11px;
      opacity:0.65;
      background:#3a3a3a;
      color:lightgreen;
      padding:3px;
      border:1px solid #565656;
      border-left:0.4em solid #565656;
    }
    .include
    {
      padding-left:10px;
    }
  </style>
</head>
<body>
<div class="corp">
  <?php
  
function fileext($matches)
  {
    if(
preg_matche('`(.*)\.(\w+)`'$file$matches))
      return 
$matches[2];
  } 
  if(empty(
$_GET['erreur']) AND empty($_GET['source']) AND empty($_GET['file']))
  {
    echo
'<h3>Index of '.htmlentities($_GET['dir']).'</h3><p>';
    function 
test_dir()
    {
      if(
is_dir($_GET['dir'].$result))
        return 
'/';
    }
    
$files opendir($_SERVER['DOCUMENT_ROOT'].'/'.$_GET['dir']);
    while(
$result readdir($files))
    {
      if(
is_dir($result) AND ($result == '..' OR $result == '.')){}
      else
      {
    echo
'<a href="?';
    if(
is_file($_GET['dir'].test_dir().$result))
      echo
'file=1&amp;';
    echo
'dir=';
    echo 
$_GET['dir'];
    if(
is_dir($_GET['dir']))
      echo
'/';
    echo 
$result.'">';
      
    if(
is_dir($_GET['dir'].test_dir().$result))
      echo
'<span class="dir">'.$result.'</span>';
    if(
is_file($_GET['dir'].test_dir().$result))
    {
      echo
'<span class="hidden">'.$result.'
             <span>
                Size : '
.round((filesize($_GET['dir'].test_dir().$result)/1024), 2).' <acronym title="Kilo Bits">KB</acronym><br/>
                Type : '
.filetype($_GET['dir'].test_dir().$result).'<br/>
                Last mod : '
.date('l, F N y \a\t  H:i:s'filemtime($_GET['dir'].test_dir().$result)).'<br/>
              </span></span>'
;
    } 
    echo
'</a><br/>';
      }
    }
    echo
'<br/><strong><em><a href="http://www.feuille-de-style.net" title="Site sur les CSS:cours, tutorial, etc ...">Feuille de style web (CSS : Cascading style sheets ), tutoriels/tutoriaux, documentation avec exemples, forum, designs, cours etc ... css tutorial</a></em></strong>
    <br/><a href="http://www.feuille-de-style.net/inscription.html" title="inscription site CSS feuilles de style web cascading style sheets">inscription au site feuille-de-style</a>'
;
  }
  if(!empty(
$_GET['erreur']))
  {
    echo
'<h3>Erreur - Na !</h3>';
    if(
$_GET['erreur'] == '403')
      echo
'<p>Erreur 403 - Pas pour toi .</p>';
    if(
$_GET['erreur'] == '404')
      echo
'<p>Erreur 404 - Existe pas xD .</p>';
    if(
$_GET['erreur'] == '401')
      echo
'<p>Erreur 401 - Hmm, mechant vas =) .</p>';
    if(
$_GET['erreur'] == '500')
      echo
'<p>Erreur 500 - PAM, Erreur du serveur .</p>';
    echo
'<p><a href="http://theo7.free.fr/">Case d&eacute;part .</a></p>';
  }
  if(!empty(
$_GET['source'])) # C'est grace a �a que tu vois ce message =)
  
{
    echo
'<h3>Code source</h3>';
    echo
'<p>';highlight_file(__FILE__);echo'</p>';
    echo
'<p><a href="http://theo7.free.fr/">Case d&eacute;part .</a></p>';
  }
  if(!empty(
$_GET['file']))
  {
    if(
substr($_GET['dir'],-4) == "html")
    {
      echo
'<h3>Include : </h3>';
      echo
'<p class="include">';include($_SERVER['DOCUMENT_ROOT'].'/'.$_GET['dir']);echo'</p>';
      echo
'<p><a href="http://theo7.free.fr/">Case d&eacute;part .</a></p>';
    }
    elseif(
substr($_GET['dir'],-4) == "phps")
    {
      echo
'<h3>Include : </h3>';
      echo
'<p class="include">';highlight_file($_SERVER['DOCUMENT_ROOT'].'/'.$_GET['dir']);echo'</p>';
      echo
'<p><a href="http://theo7.free.fr/">Case d&eacute;part .</a></p>';
    }
    else
    {
      if(!
headers_sent())
        
header('Location : '.$_GET['file']);
      else
        echo
'Redirection ... <script type="text/javascript">window.location.replace("'.$_GET['dir'].'");</script><noscript><a href="'.$_GET['dir'].'">Continuer</a></noscript>';
      
    }
  }
    
?>
  <p class="center">
    <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/2.0/fr/">
    <img alt="Creative Commons License" style="border-width:0" src="http://i.creativecommons.org/l/by-nc-sa/2.0/fr/80x15.png" />
    </a>
    <a rel="Source" href="?source=1"><img src="http://theo7.free.fr/images/icons/text.gif" style="border:0px"></a>
  </p>

</div>
</body>
</html>

Back .

-->
Creative Commons License