summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config.php12
-rw-r--r--index.php4
2 files changed, 15 insertions, 1 deletions
diff --git a/config.php b/config.php
index 3c08ee4..d7c0035 100644
--- a/config.php
+++ b/config.php
@@ -84,12 +84,24 @@ $SERVER_LIST = array(
"macs" => array("00:25:90:da:82:58", "00:25:90:da:82:59"),
"eth" => array("enp9s0", "enp10s0"),
)),
+ "ipecamera0" => array_merge($CAMERA_SERVERS, array(
+ "macs" => array("bc:5f:f4:ad:96:e3", "bc:5f:f4:ad:96:eb"),
+ "eth" => array("enp20s0", "enp21s0"),
+ )),
"ipecamera3" => array_merge($CAMERA_SERVERS, array(
"macs" => array("0c:c4:7a:32:72:20", "0c:c4:7a:32:72:21"),
)),
"ipecamera4" => array_merge($CAMERA_SERVERS, array(
"macs" => array("0c:c4:7a:32:72:1e", "0c:c4:7a:32:72:1f"),
)),
+ "ipecamera5" => array_merge($CAMERA_SERVERS, array(
+ "macs" => array("14:dd:a9:d5:76:31", "14:dd:a9:d5:76:32"),
+ "eth" => array("eno1", "enp14s0"),
+ )),
+ "ipecamera6" => array_merge($CAMERA_SERVERS, array(
+ "macs" => array("38:d5:47:02:d1:4b", "38:d5:47:02:d1:4c"),
+ "eth" => array("enp14s0", "eno1"),
+ )),
"ipecluster6" => array_merge($STUDENT_SERVERS, array(
"macs" => array("74:D0:2B:97:F3:2A", "74:D0:2B:97:F3:2B"),
)),
diff --git a/index.php b/index.php
index 61f4650..4e1bf17 100644
--- a/index.php
+++ b/index.php
@@ -152,13 +152,14 @@ $server = find_server();
$f = fopen("/srv/www/htdocs/ands/logs/kickstart.log", "a+");
if ($f) {
- fprintf($f, "%s %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-"));
+ fprintf($f, "%s %s at %s\n", $_SERVER["REMOTE_ADDR"], ($server?$server["fqdn"]:"-"), date(DATE_ISO8601));
fclose($f);
}
if (!$server) {
$f = fopen("/srv/www/htdocs/ands/logs/kickstart-new.log", "a+");
if ($f) {
+ fwrite($f, "%s\n", date(DATE_ISO8601));
fwrite($f, print_r($_SERVER, true));
fwrite($f, print_r(getallheaders(), true));
fclose($f);
@@ -210,6 +211,7 @@ if ($VERBOSE) {
$f = fopen("/srv/www/htdocs/ands/logs/kickstart-verbose.log", "a+");
if ($f) {
fwrite($f, "-----------------------------------------------------\n");
+ fwrite($f, "%s\n", date(DATE_ISO8601));
fwrite($f, print_r($server, true));
fwrite($f, print_r($_SERVER, true));
fwrite($f, print_r(getallheaders(), true));