Index: /trunk/FACT++/www/smartfact/index.php
===================================================================
--- /trunk/FACT++/www/smartfact/index.php	(revision 14784)
+++ /trunk/FACT++/www/smartfact/index.php	(revision 14785)
@@ -135,5 +135,26 @@
 
     return;
-
+}
+
+if (isset($_GET['source']) && isset($_GET['time']))
+{
+    // $args = "filename":label --arg:"key1=value" --arg:"key2=value"
+    $cmd = $path.'/makedata '.escapeshellarg($_GET['source']).' '.escapeshellarg($_GET['time']);
+
+    // Execute
+    passthru($cmd, $str);
+
+    // Logging (mainly for debugging)
+    $d = date("Y/m");
+    $path = "log/".$d;
+    if (!file_exists($path))
+        mkdir($path, 0777, true);
+    $file = fopen($path."/exec.log", "a");
+    fwrite($file, $cmd."\n".$str."\n\n");
+    fclose($file);
+
+    print_r($str);
+
+    return;
 }
 
