Merge "Guard for web execution"
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user