get_application_mode();// initializes state file, sets $GLOBALS['init'] and $GLOBALS['camera_state_arr']['state']=='REBOOT' from both command line and $_GET
// Add sensor port if it is not specified but only one exists
respond_xml($GLOBALS['camera_state_arr']['state']," Invalid state, valid are: ".implode(',',array_keys($GLOBALS['STOP_AFTER'])));// will exit with error
...
...
@@ -1750,10 +1760,25 @@ function processGet($port) {
// if ($GLOBALS['sensor_port']<0){
if($port<0){
$warn=<<<WARN_PORT
<center><h4>Sensor port (sensor_port) is not specified</h4></center>
<p>Only one sensor port parameters can be edited currently. You may add
'sensor_port=value' to the request URL to fix this problem.</p>
<p>Sensor port (sensor_port parameter) is not specified</p>
<p>Only one sensor port parameters can be edited. Below are the links to the individual camera ports parameters.</p>