Mercurial > hg > extraction-interface
diff _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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/_xampp/showcode.php Mon Jan 19 17:13:49 2015 +0100 @@ -0,0 +1,25 @@ +<? + echo ' <p> <p>'; + if(@$_REQUEST['showcode']!=1) + { + echo '<a href="'.htmlentities($_SERVER['PHP_SELF']).'?showcode=1">'.$TEXT['global-showcode'].'</a>'; + } + else + { + if(@$file=="")$file=basename($_SERVER['PHP_SELF']); + $validfiles['biorhythm.php']=1; + $validfiles['cds-fpdf.php']=1; + $validfiles['cds.php']=1; + $validfiles['iart.php']=1; + $validfiles['ming.php']=1; + $validfiles['phonebook.php']=1; + if($validfiles[$file]) + $f=htmlentities(file_get_contents($file)); + echo "<h2>".$TEXT['global-sourcecode']."</h2>"; + echo "<form><textarea cols=100 rows=10>"; + echo $f; + echo "</textarea></form>"; + echo " <p>"; + echo " <p>"; + } +?>