All pastes #534345 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-03 19:18 UTC
rendered paste body
<?php
  ob_start();
  session_start();
	$filu=file("kavijat.dat");
	$ip=$_SERVER['REMOTE_ADDR'];
	$maara=count($filu);
		for ($x=1; $x < $maara; $x++)
		{
			$exp=explode("<||>",$filu[$x]);
			if ($ip == $exp[0])
				$loyty=1;
			else;
		}
	if ($loyty != 1)
	{
		$fopen=fopen("kavijat.dat", "a");
		fwrite($fopen, "$ip<||>\n");
		fclose($fopen);
	}
	$ihq=file("loadit.dat");
	if ($ihq[0] > 1) {
		$loadit=$ihq[0] + 1;
		$ouppen=fopen("loadit.dat", "w");
		fwrite($ouppen, $loadit);
		fclose($ouppen);
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title>Clan Hillbillies</title>
		<link rel="stylesheet" type="text/css" href="tyylit.css">
	</head>
	<body>
		<div id="structure">
			<div id="logo"></div>
			<div id="navi">
				<div id="navicont">
				<br /><a href="?page=news">News</a> ¤ 
				<a href="?page=matches">Matches</a> ¤ 
				<a href="?page=members">Members</a> ¤ 
				<a href="?page=info">Info</a>
				</div>
			</div>
			<div id="content">
				<?php
					$pg=$_GET["page"];
					if ($pg && file_exists("page/$pg.php"))
						include("page/$pg.php");
					else
						include("page/news.php");
				?>
			</div>
			<div id="copy"><i>&copy; so0le 2007 - All rights reserved. | <a href="?page=login">Admin</a></i></div>
		</div>
	</body>
</html>
<?php ob_flush(); ?>