Mercurial > hg > extraction-interface
comparison interface/save_regex.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 <?php | |
2 | |
3 if ($_POST['text']){ | |
4 /* | |
5 $date = date('Y_m_d_H_i_s', time()); | |
6 if ( file_exists("regex_files/".$_POST['filename'].".txt") ) { | |
7 $oldFile = file_get_contents("regex_files/".$_POST['filename'].".txt"); | |
8 file_put_contents("regex_files/".$_POST['filename']."_".$date.".txt", $oldFile); | |
9 } | |
10 */ | |
11 if (get_magic_quotes_gpc()) { | |
12 $require = stripslashes($_POST['text']); | |
13 } else { | |
14 $require = $_POST['text']; | |
15 } | |
16 | |
17 file_put_contents("regex_files/".$_POST['filename'].".txt", $require); | |
18 } | |
19 | |
20 | |
21 ?> |