aboutsummaryrefslogtreecommitdiffstats
path: root/asd2nb/server.php
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2011-06-10 10:54:28 +0300
committerFilipp Lepalaan <filipp@mac.com>2011-06-10 10:54:28 +0300
commit50de98d5c364c429dbf67379f774535efad2f319 (patch)
tree6d17f0a6ed195d15387627f79d105a15501c96bb /asd2nb/server.php
parent6eff099c73db8d293a9e0e433f66bcfddee7ee3f (diff)
downloadmtk-master.tar.gz
mtk-master.tar.bz2
mtk-master.zip
fixed asd2nbHEADmaster
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");