$value) $args .= " --arg:".$key."=".$value; $str = exec($path."/dimctrl --exec ".$args, $out, $rc); */ if (isset($_GET['label'])) { if ($_GET['label']>=0) $args .= ":".$_GET['label']; unset($_GET['label']); } foreach ($_GET as $key => $value) $args .= ' \"'.$key.'='.$value.'\"'; $str = exec($path.'/dimctrl --start "'.$args.'"', $out, $rc); } if ($rc!=1 && $rc!=2) return header('HTTP/1.0 500 Execution failed [rc='.$rc."]"); print($rc); if (isset($_GET['debug'])) { print("\n"); print_r($out); } ?>