Guard for web execution

Change-Id: I4cac7035a9b80865c3ff5a709f5d7d7c5e5cada4
This commit is contained in:
Niklas Laxström
2012-10-26 19:35:00 +00:00
parent 4adb53b01f
commit 8529ed7377

View File

@@ -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 ) {