Mercurial > hg > extraction-interface
view interface/save_word_list.php @ 14:ac77748bb813
- Load regex files based on current topic. Only show the regex in this topic.
To do that, it needs to lookup a table called 'topic_regex_relation' which has the relation of topic and regex filename in filesystem.
- Extractapp UI with some layout modification: button, popup window, responsive (by bootstrap now). It was just for quick prototyping.
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 19 Feb 2015 11:07:27 +0100 |
| parents | b12c99b7c3f0 |
| children |
line wrap: on
line source
<?php if ($_POST['text']){ $date = date('Y_m_d_H_i_s', time()); if ( file_exists("wordlist/".$_POST['filename'].".txt") ) { $oldFile = file_get_contents("wordlist/".$_POST['filename'].".txt"); file_put_contents("wordlist/".$_POST['filename']."_".$date.".txt", $oldFile); } if (get_magic_quotes_gpc()) { $require = stripslashes($_POST['text']); } else { $require = $_POST['text']; } $require = preg_replace("/<br>/u", "", $require); file_put_contents("wordlist/".$_POST['filename'].".txt", $require); } ?>
