Location: PHPKode > projects > Red Squirrel Cam > redsquirrelcam/12up01.php
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 TRANSITIONAL//EN">
<html>

<head>
<?php
$fr = $_GET['from'];
if ($fr =="a"){      //link from automode
$automode = 1;
$vcam = $_GET['cam'];
$vref = $_GET['refr'];
}

if ($fr == "m"){
$pos = $_GET['view'];
$file = "multiconf.txt";
$rf = fopen($file , "r");
$skip = 1;
while ($skip < 27){
$skp = fgets($rf);
$skip = $skip + 1;
}
$matc = 1;
while ($matc < 13){
$cam = fgets($rf);
$refr = fgets($rf);
if ($matc == $pos){
$vcam = $cam;
$vref = $refr;

}
$matc = $matc + 1;
}

fclose($rf);
if ($vcam == "22"){             
$automode = 1;
$vcam = 0;
}

}
if ($fr == "c"){
$vcam = $_GET['cam'];
$vref = $_GET['refr'];
if ($vcam == "22"){             
$automode = 1;
$vcam = 0;
}

}


$confile = "squirrelconfig.txt";
$rc = fopen($confile , "r");
$active = fgets($rc);
if ($automode == "1"){
while ($chk <> "1"){
if ($vcam == 20){
$vcam = 0;
}
$chk = substr($active, $vcam, 1);
$vcam = $vcam + 1;

}
}


$cc = 1;
while ($cc < 23){
$cn = fgets($rc);
$cs1 = fgets($rc);
$cs2 = fgets($rc);
if ($cc == $vcam){
$cname = $cn;
$stream = $cs1;
}
$cc = $cc + 1;
}
fclose($rc);
if ($vcam <= 9){
$camp = "00".$vcam;
}
else {
$camp = "0".$vcam;
}
if ($vref > 0){
echo "<meta http-equiv=\"refresh\" content=\"".$vref;
if ($automode == "1"){

echo ";12up01.php?from=a&cam=".$vcam."&refr=".$vref;
}
echo "\">";
}

?>


<title>12up01</title>
</head>
<body bgcolor="000000">
<table width="100%" celpadding="0" cellspacing="0">
<tr><td align="center">
<?php
echo "<object type=\"video/mp4\" data=\"".$stream."\" width=\"320\" height=\"240\">";
?>
<param name="controller" value="false" >
<param name="autoplay" value="true">
<param name="scale" value="tofit">
<param name="allow_fullscreen" value="true">
  </object>
</td></tr>
<tr><td align="center" valign="top">
<?php
echo "<a href=\"12change.php?refr=".$vref."\"><img src=\"images/cam".$camp."on.png\" border=\"0\"></a>";
echo "<img src=\"images/spacer.gif\" border=\"0\"><a href=\"1up.php?from=c&cam=".$vcam."&refr=".$vref."\" target=\"midframe\"><img src=\"images/1up.png\" border=\"0\"></a>";
echo "<img src=\"images/spacer.gif\" border=\"0\"><a href=\"eventplayer.php?cam=".$vcam."\" target=\"midframe\"><img src=\"images/event.png\" border=\"0\">";
?>

</td></tr></table>


	</body>
</html>
Return current item: Red Squirrel Cam