diff options
-rw-r--r-- | config.php | 12 | ||||
-rw-r--r-- | index.php | 4 |
2 files changed, 15 insertions, 1 deletions
@@ -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"), )), @@ -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)); |