-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.php
executable file
·50 lines (43 loc) · 1.89 KB
/
settings.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<?php
#################################################
#################################################
#### pMotions settings.php file ####
#### Here we process any changes the user ####
#### needs to make in either motion.conf ####
#### or camera#.conf ####
#################################################
#################################################
$Options = array("pMotion",
$CONF['MotionConf']);
// Adds any camera#.conf files to list of options
for($i = 0; $i <count($Motion['SysProc']['camera']); $i++){$Options[] = $Motion['SysProc']['camera'][$i];}
echo "<table id='center'>\n";
echo "<tr><td>Subsystem: </td><td> <select onChange=\"document.location=this.value\" value=\"GO\">";
echo "<option value=''> </option>";
for ($i = 0; $i < count($Options); $i++){
echo "<option value=\"./?settings&page=".$Options[$i]."\"";
if(isset($_GET['page']) && $_GET['page'] == $Options[$i]){echo "selected";}
echo ">".$Options[$i]."</option>\n";
}
echo "</select></td></tr></table>\n";
echo "<br />";
if(isset($_GET['page'])){
if($_GET['page'] == 'pMotion'){@include_once("./includes/setup.php");} // Basic Setup
else{
for($i = 0; $i < count($Options); $i++){
if($_GET['page'] == $Options[$i]){ // Validates that it's something allowed to edit
if($_GET['page'] == $CONF['MotionConf']){$CameraID = "NONE";}
else{$CameraID = $_GET['page'];}
f_mConfPage($Motion, $CameraID);
#print_r($Motion);
}
}
}
}
//if(isset($_GET['pMotionSettings'])){@include_once("./includes/setup.php");} // Basic Setup
//elseif(isset($_GET['cameraID'])){f_mConfPage($Motion, $_GET['CameraID']);}
//else{f_mConfPage($Motion, "NONE");}
echo "<h2 class='notice'>".$LANG['ConfOverride1']."</h2>";
echo "<h3 class='notice'>".$LANG['ConfOverride2']."</h3>";
echo "<h3 class='notice'>".$LANG['ConfOverride3']."</h3>";
?>