Mercurial > hg > extraction-interface
view interface/save_xml.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
<?php if ($_POST['require']){ $date = date('Y_m_d_H_i_s', time()); $oldFile = file_get_contents($_POST['filename']); preg_match("/..\/bookindexxml\/(.*?).xml/u", $_POST['filename'], $matches); file_put_contents("../bookindexxml/".$matches[1]."_".$date.".xml", $oldFile); if (get_magic_quotes_gpc()) { $require = stripslashes($_POST['require']); } else { $require = $_POST['require']; } file_put_contents($_POST['filename'], $require); } ?>