get_application_mode();// initializes state file, sets $GLOBALS['init'] and $GLOBALS['camera_state_arr']['state']=='REBOOT' from both command line and $_GET
get_application_mode();// initializes state file, sets $GLOBALS['init'] and $GLOBALS['camera_state_arr']['state']=='REBOOT' from both command line and $_GET
respond_xml($GLOBALS['camera_state_arr']['state']," Invalid state, valid are: ".implode(',',array_keys($GLOBALS['STOP_AFTER'])));// will exit with error
respond_xml($GLOBALS['camera_state_arr']['state']," Invalid state, valid are: ".implode(',',array_keys($GLOBALS['STOP_AFTER'])));// will exit with error
log_msg("port $port: autocampars.php created a new configuration file $configPath from defaults.".($multisensor?"This port is multiplexed":"").($GLOBALS['camera_state_arr']['is_eyesis']?(' Used Eyesis mode, camera '.$GLOBALS['camera_state_arr']['mode']?:' Used multisensor mode.'):''));\
log_msg("port $port: autocampars.php created a new configuration file $configPath from defaults.".($multisensor?"This port is multiplexed":"").($GLOBALS['camera_state_arr']['is_eyesis']?(' Used Eyesis mode, camera '.$GLOBALS['camera_state_arr']['mode']?:' Used multisensor mode.'):''));\
$str.="<td style='padding:0px 5px 5px 0px;'><button onclick='cancel_sync()' title='cancel sync - when booted from NAND flash the changes will not be saved'><b>CANCEL</b> sync</button></td>\n";