Merge "Guard for web execution"
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if ( isset( $_SERVER['REQUEST_METHOD'] ) ) {
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
$list = array();
|
$list = array();
|
||||||
$list['base'] = '../data/fontrepo/fonts/';
|
$list['base'] = '../data/fontrepo/fonts/';
|
||||||
foreach ( glob( '../fonts/*/font.ini' ) as $inifile ) {
|
foreach ( glob( '../fonts/*/font.ini' ) as $inifile ) {
|
||||||
@@ -42,4 +46,4 @@ $js = <<<JAVASCRIPT
|
|||||||
$.webfonts.repository = $json;
|
$.webfonts.repository = $json;
|
||||||
}( jQuery ) );
|
}( jQuery ) );
|
||||||
JAVASCRIPT;
|
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