Merge "Guard for web execution"

This commit is contained in:
Siebrand
2012-10-27 12:38:05 +00:00
committed by Gerrit Code Review

View File

@@ -1,5 +1,9 @@
<?php
if ( isset( $_SERVER['REQUEST_METHOD'] ) ) {
exit();
}
$list = array();
$list['base'] = '../data/fontrepo/fonts/';
foreach ( glob( '../fonts/*/font.ini' ) as $inifile ) {
@@ -42,4 +46,4 @@ $js = <<<JAVASCRIPT
$.webfonts.repository = $json;
}( jQuery ) );
JAVASCRIPT;
file_put_contents( '../../../resources/js/ext.uls.webfonts.repository.js', $js );
file_put_contents( '../../../resources/js/ext.uls.webfonts.repository.js', $js );