Changeset 14232 for trunk/FACT++/www/smartfact/index.php
- Timestamp:
- 06/25/12 22:17:38 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/www/smartfact/index.php
r14226 r14232 142 142 { 143 143 // Filename 144 $ args= '"scripts/'.$_GET['start'].'"';144 $script = '"scripts/'.$_GET['start'].'"'; 145 145 146 146 unset($_GET['start']); … … 157 157 { 158 158 if ($_GET['label']>=0) 159 $ args.= ":".$_GET['label'];159 $script .= ":".$_GET['label']; 160 160 unset($_GET['label']); 161 161 } … … 170 170 171 171 // Arguments 172 foreach ($_GET as $key => $value) 173 $args .= ' --arg:"'.$key.'='.escape($value).'"'; 174 175 if (!empty($args) && empty($msg)) 176 { 172 if (!empty($script) && empty($msg)) 173 { 174 //foreach ($_GET as $key => $value) 175 // $args .= ' --arg:"'.$key.'='.escape($value).'"'; 176 177 $args = ""; 178 foreach ($_GET as $key => $value) 179 $args .= ' '.$key.'="'.escape($value).'"'; 180 177 181 // $args = "filename":label --arg:"key1=value" --arg:"key2=value" 178 $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'" --start '.$args;182 $cmd = $path.'/dimctrl --user "'.$_SERVER['PHP_AUTH_USER'].'" --start "'.$script.escape($args).'"'; 179 183 180 184 // Execute
Note:
See TracChangeset
for help on using the changeset viewer.