Changeset 4
- Timestamp:
- 05/18/05 16:38:26 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r3 r4 7 7 </head><body> 8 8 <?php if(isset($phpfile)) { 9 if ($hf = fopen($phpfile, "r")) { 9 10 ?> 10 <?php 11 <h1>Contenu du fichier 12 <?php echo $phpfile; 13 ?><hr><?php 14 while (!feof($hf)) { 15 $line = fgets($hf); 16 echo htmlentities($line). '<br>'; 17 } 18 ?><hr><?php 19 pclose($hf); 20 } else { 21 ?>Je ne peux pas ouvrir <?php echo $phpfile; 22 } 11 23 } else { //si fichier demandé 12 24 ?> … … 34 46 ?> 35 47 36 <li><a href="<?php echo $file?>"><?php echo htmlentities($file) ?></a></li> 48 <li> 49 <a href="<?php echo $file?>"><?php echo htmlentities($file) ?></a> 50 <a href="<?php echo "$PHP_SELF?phpfile=" . urlencode($file) ?>">voir le source</a> 51 </li> 37 52 38 53 <?php
Note: See TracChangeset
for help on using the changeset viewer.