- <html>
- <head>
- <title> source _src </title>
- <meta charset="utf-8">
- <?php
- $source=$_GET["src"];
- ?>
- </head>
- <body>
- <?php
- if (!$fic_source=@fopen($source,'r')){
- echo "Fichier ".$source." inaccessible!<br>";
- $fic_source=fopen("cercle.php",'r');
- }
- echo "<code>";
- echo "<ol>";
- while (!feof($fic_source)){
- $ligne_fic=fgets($fic_source);
- $nbtab=substr_count($ligne_fic,"\t");
- echo "<li><span style=\"margin-left: ".strval($nbtab*30)."px\">".htmlentities($ligne_fic)."</span></li>";
- echo "";
- }
- echo "</ol>";
- echo "</code>";
- fclose($fic_source);
- ?>
- </body>
- </html>