Your IP : 216.73.216.40


Current Path : /var/www/html/mmishra/iws8/html/indem/
Upload File :
Current File : /var/www/html/mmishra/iws8/html/indem/refresh.php

<html>
<?php
$websites = array(
'http://indem.iiita.ac.in/?pg=celebrity-poll#pg',
'http://indem.iiita.ac.in/?pg=celebrity-poll#pg'
);

$option = $_REQUEST["option"];
$no = $_REQUEST["no"];
if ($no >= count($websites)) $no = 0;
$no++;

switch ($option) {
case "welcome":
	echo "<body>
	<center>
	<marquee direction='left' behavior='alternate' scrolldelay='10' scrollamount='2'>
	<h1 style='color: purple'>Latest Trend - Opinian Poll for Celebrity</h1>
	</marquee>
	</center>
	</body>";
	break;
case "url":
	$no--;
        echo "<body>
        <center>
        <marquee direction='left' behavior='alternate' scrolldelay='10' scrollamount='2'>
        <h1 style='color: red'>Visit above website at $websites[$no]</h1>
        </marquee>
        </center>
        </body>";
        break;
case "www":
	$no--;
        echo "<head>
	<meta http-equiv='refresh' content='10;url=refresh.php?option=www&no=$no'>
	</head>
        <frameset rows='92%,8%' frameborder=0>
        <frame src='$websites[$no]' scrolling=no>
        <frame src='refresh.php?option=url&no=$no' scrolling=no>
        </frameset>";
        break;
default:
        echo "<head><title>Opinian Poll @ IIITA</title>
	<head>
	</head>
	<frameset rows='8%,92%' frameborder=0>
        <frame src='refresh.php?option=welcome' scrolling=no>
        <frame src='refresh.php?option=www&no=0' scrolling=no>
        </frameset>";
        break;
}
?>
</html>