Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as PHP by ipcam ( 13 years ago )
<?php
function showCamera(){
$url='http://78.188.221.142';
$port='8000';
$user='admin';
$password='admin';
$class='alignleft';
$width='480';
$refresh='1000';
$results = "";
$results = $results."
<!--[if IE]>";
$results = $results."
[removed]
function reload()
{
setTimeout('reloadImg(\"refresh\")',".$refresh.")
};";
$results = $results."
function reloadImg(id)
{
var obj = document.getElementById(id);
var date = new Date();
obj.src = '".$url.":".$port."/snapshot.cgi?user=".$user."&pwd;=".$password."&t=' + Math.floor(date.getTime()/1000);
}
</script>";
$results = $results."
<img src='".$url.":".$port."/snapshot.cgi?user=".$user."&pwd;=".$password."&t=' name='refresh' id='refresh' class=".$class." onload='reload(this)' onerror='reload(this)' width='".$width."'>";
$results = $results."
<![endif]-->";
$results = $results."
<![if !IE]>";
$results = $results."
<img src='".$url.":".$port."/videostream.cgi?user=".$user."&pwd;=".$password."' class='".$class."' width='".$width."' alt='Live Feed'/>";
$results = $results."
<![endif]>
";
print_r($results);
}
showCamera();
?>
Revise this Paste