//----------------------------------------------------------------------------------------------------------------------
$_config=@parse_ini_file('./conf/eventServer.ini');
$timeout_auto_play='setTimeout(function(){ window.location = "urgent.php";}, '.$_config[timeout_auto_play].'*1000*60);';
if($_config[debug]==1){ echo "in this file urgent.ini, at [server] debug=1 ";}
//----------------------------------------------------------------------------------------------------------------------
switch($_REQUEST[op]){
case "movie":
include("movie.htm");
break;
case "urgent":
$brand=$_config['urgent_brand'];
$model=$_config['urgent_model'];
$ip=$_config['urgent_cam_ip'];
$port=$_config['urgent_cam_port'];
$title=$_config['urgent_title'];
break;
case "general":
$brand=$_config['general_brand'];
$model=$_config['general_model'];
$ip=$_config['general_cam_ip'];
$port=$_config['general_cam_port'];
$title=$_config['general_title'];
break;
default:
include("movie.htm");
break;
}
if($brand && $model && $ip)
{
$live="\n";
$live.="\n";
echo $live;
}
?>