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

	<head>
		<title></title>
	</head>
	<body bgcolor=#000000>
<table align="center" valign="middle"><tr>
<td align="center" valign="middle">
<?php
$vref = $_GET['refr'];
$confile = "squirrelconfig.txt";
$rf = fopen($confile, "r");
$active = fgets($rf);
$cf = 0;
while ( $cf < 21 ) {
$camcount = substr($active, $cf, 1);
$cf = $cf + 1;
if ($cf <=9){
$ccf = "00".$cf;
}
else {
$ccf = "0".$cf;
}
if ($camcount == "1") {
echo "<a href=\"12up01.php?from=c&cam=".$cf."&refr=".$vref."\"><img src=\"images/cam".$ccf.".png\" border=\"0\"></a><img src=\"images/spacer.gif\">";
}
else {
echo "<img src=\"images/cam".$ccf."dis.png\" border=\"0\"><img src=\"images/spacer.gif\">";
}
if ($cf == "4"){
echo "<br><img src=\"images/spacer.gif\"><br>";
}
if ($cf == "8"){
echo "<br><img src=\"images/spacer.gif\"><br>";
}
if ($cf == "12"){
echo "<br><img src=\"images/spacer.gif\"><br>";
}
if ($cf == "16"){
echo "<br><img src=\"images/spacer.gif\"><br>";
}
if ($cf == "20"){
echo "<br><img src=\"images/spacer.gif\"><br>";
}
}
echo "<a href=\"12up01.php?from=c&cam=22&refr=".$vref."\"><img src=\"images/cam022";
if ($automode == "1"){
echo "on";
}
echo ".png\" border=\"0\"></a><img src=\"images/spacer.gif\">";
?>
</td></tr></table>

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