aboutsummaryrefslogtreecommitdiffstats
path: root/asd2nb/server.php
diff options
context:
space:
mode:
Diffstat (limited to 'asd2nb/server.php')
-rw-r--r--asd2nb/server.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/asd2nb/server.php b/asd2nb/server.php
index 26aaf1a..365364c 100644
--- a/asd2nb/server.php
+++ b/asd2nb/server.php
@@ -8,18 +8,18 @@
* @package mtk
*/
+ $imgdir = '/data/nb/asd'; // edit this to where your NBI's are kept
+
+ require "plist.php";
+
header('Content-Type: text/plain');
-
+
if (!isset($_REQUEST['m'])) {
exit("Sorry, have to know who you are first...");
}
-
- $imgdir = '/data/nb/asd'; // edit this
-
+
$model = $_REQUEST['m'];
- require "plist.php";
-
foreach(glob("${imgdir}/*.nbi") as $nbi)
{
$p = new PropertyList("{$nbi}/NBImageInfo.plist");