michaelpruess.com
 
 
Home   About   Works   Contact

PHP Stuffs - EBCC News Archive Script

<?php 
	include'http://eastbaychess.com/theme/header.php';
	$i = $HTTP_GET_VARS['n'];
	$m = $HTTP_GET_VARS['m'];
	$url = 'http://eastbaychess.com/news/_news'.$i.'.php';
	$j = ($i + 1);
	$p = ($i - 1);
	$next = '<a href="/news.php?m=1&n='.$j.'"> Next: Newsletter '.$j.'</a>';
	$latest = '<a href="/news.php"> Next: Recent News</a>';
	$previous = '<a href="/news.php?m=1&n='.$p.'"> Previous: Newsletter '.$p.'</a>';
	$o = '<div align="center">';
	$c = '</div>';
	include $url; 
	if ($m==1)
	{
		if ($i==0)
	 		{
	 			echo $o.$next.$c;
	 		}
		else
		 {
			if ($i==20)
			{
				echo $o.$previous.' <b>|</b> '.$latest.$c;
			}
			else 
			{
				echo $o.$previous.' <b>|</b> '.$next.$c;
			}
		}
	}
	include'http://eastbaychess.com/theme/footer.php'; 
?>


C
o
n
t
a
c
t