All pastes #812935 Raw Edit

Unnamed

public php v1 · immutable
·published 2007-12-12 03:03 UTC
rendered paste body
<?php		  		     $control = 1;			 $x = 1;			 while($control == 1){			 	$filename = "co/".$x.".PNG";			 			 	if (file_exists($filename)) {			 		$x++;			 		$filename = "co/".$x.".PNG";			 	}			 	else{	    	 		$x--;			 		$control=2;									}							 }		     $filename = "co/".$x.".PNG";		      		   		  if ($_GET['post'] == "") {          echo "<img src=\"$filename.\">";		  }		  		  		  if(is_numeric($_GET['post'])){ echo "<img src=\"co/".$_GET['post'].".png\">";}		  /* else {echo "error";} */		  	?><?php		if(is_numeric($_GET['post'])){ 			$link = $_GET['post']; 		}		else if ($_GET['post'] == ""){			$link = $x ;		}		else{			echo " error " ;		}				$prev = $link - 1;		$next = $link + 1;				if( $prev > 0){			echo "<a href=\"?post=$prev\"><img src=\"image/previous.gif\" border=\"0\"></a>";          }		else{			echo "<img src=\"image/previous.gif\" border=\"0\">";		}				$filenameb = "co/".$next.".PNG";		if (file_exists($filenameb)) {			echo "<a href=\"?post=$next\"><img src=\"image/next.gif\" border=\"0\"></a>";				}		else{			echo "<img src=\"image/next.gif\" border=\"0\">";		} ?><?php 		$rant = "rant/".$link.".php";		if (file_exists($rant)) {			include($rant);			}		else{			include("rant/norant.php");		} 					?>