Every second I get such a message in the ZM log:
- DATE/TIME
COMPONENT SERVER PID LEVEL MESSAGE FILE LINE
2016-02-11 20:32:48.328269 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:47.181114 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:46.036268 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:44.890822 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:43.751215 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:42.603329 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:41.465664 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:40.317698 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
2016-02-11 20:32:38.157946 web_php 1480 WAR http://192.168.1.250:30080 is not found in servers list. /usr/local/share/zoneminder/www/includes/functions.php 111
Code: Select all
function CORSHeaders() {
if ( isset( $_SERVER['HTTP_ORIGIN'] ) ) {
# The following is left for future reference/use.
$valid = false;
$servers = dbFetchAll( 'SELECT * FROM Servers' );
if ( sizeof($servers) <= 1 ) {
# Only need CORSHeaders in the event that there are multiple servers in use.
return;
}
foreach( dbFetchAll( 'SELECT * FROM Servers' ) as $row ) {
$Server = new Server( $row );
if ( $_SERVER['HTTP_ORIGIN'] == $Server->Url() ) {
$valid = true;
header("Access-Control-Allow-Origin: " . $Server->Url() );
header("Access-Control-Allow-Headers: x-requested-with,x-request");
}
}
if ( ! $valid ) {
[b]Warning( $_SERVER['HTTP_ORIGIN'] . " is not found in servers list." );[/b]
}
}
}
So, can anybody give me a clue how to get my 192.168.1.250:30080 in this DB table?
Thx a bunch!