Mercurial > hg > extraction-interface
view _xampp/showcode.php @ 6:63e08b98032f
rewrite extraction interface into PHP MVC architecture.
(Although js hasn't been rewritten into MVC, it's fitted into the current PHP MVC architecture.)
- The root of the new PHP MVC is at 'develop/'.
- extraction interface is called "Extractapp" with several action, eg TaggingText, EditWordlist, EditTaglist, ExportTable.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Thu, 05 Feb 2015 16:07:53 +0100 |
parents | b12c99b7c3f0 |
children |
line wrap: on
line source
<? 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>"; } ?>