Mercurial > hg > extraction-interface
comparison _xampp/showcode.php @ 0:b12c99b7c3f0
commit for previous development
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Mon, 19 Jan 2015 17:13:49 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:b12c99b7c3f0 |
---|---|
1 <? | |
2 echo ' <p> <p>'; | |
3 if(@$_REQUEST['showcode']!=1) | |
4 { | |
5 echo '<a href="'.htmlentities($_SERVER['PHP_SELF']).'?showcode=1">'.$TEXT['global-showcode'].'</a>'; | |
6 } | |
7 else | |
8 { | |
9 if(@$file=="")$file=basename($_SERVER['PHP_SELF']); | |
10 $validfiles['biorhythm.php']=1; | |
11 $validfiles['cds-fpdf.php']=1; | |
12 $validfiles['cds.php']=1; | |
13 $validfiles['iart.php']=1; | |
14 $validfiles['ming.php']=1; | |
15 $validfiles['phonebook.php']=1; | |
16 if($validfiles[$file]) | |
17 $f=htmlentities(file_get_contents($file)); | |
18 echo "<h2>".$TEXT['global-sourcecode']."</h2>"; | |
19 echo "<form><textarea cols=100 rows=10>"; | |
20 echo $f; | |
21 echo "</textarea></form>"; | |
22 echo " <p>"; | |
23 echo " <p>"; | |
24 } | |
25 ?> |