summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:34 +0200
committerSuren A. Chilingaryan <csa@suren.me>2018-08-05 06:59:34 +0200
commit12b2ed009050747316afdfb17665a2fafb2836ca (patch)
tree8936215c493eeb40fb53ceed41ebcc0b76929521
parent638d3091662918e893d9fb9edbd7f553e7df8240 (diff)
downloadkickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.gz
kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.bz2
kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.tar.xz
kickstart-12b2ed009050747316afdfb17665a2fafb2836ca.zip
Camera computers
-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));