Mercurial > hg > extraction-interface
view interface/load_regex.php @ 7:0e9a7c69f22c
add editing records/log into TOC correction list page, more editing records could be shown on the TOC page
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Fri, 06 Feb 2015 09:44:17 +0100 |
| parents | 63e08b98032f |
| children |
line wrap: on
line source
<?php $returnArray = array(); $files1 = scandir("regex_files"); foreach ( $files1 as $file ) { if ( $file != "." && $file != ".." ) { $returnArray[preg_replace("/\.txt/", "", $file)] = file_get_contents( "regex_files/".$file ); } } echo json_encode($returnArray); ?>
