<?php $DAlley_Ydo = $_SESSION['MM_DAlley_Select'];
	if ($DAlley_Ydo != ''){
	?>
<div id="L-Story">
			<div id="storyTitle01">The Dark Alley
			</div>
			<div id="themes">
	
<?
/* Config Part --------------------------------------------------------------------------------------------------------------*/

$Lrandom = true;									// if you want random, keep true, set to false if want sequential
$Ldirectory = "/var/www/html/graffiti_wall/";								//  Webserver path to your quote files with / on end!
$Lquotefile = "sitelist.inc";																			//  The Random Quote file
$Lquotecountfile = "displaylink.inc";																	//  The Display Quote file (IF SEQUENTIAL!) 

/* End of Config Part -------------------------------------------------------------------------------------------------------*/

$Lquotes = file($Ldirectory.$Lquotefile);
$Lnumber = count($Lquotes);

if($Lrandom){
	$Lnum = rand(0,$Lnumber-1);
}
else{
	$Lnum = file($Ldirectory.$Lquotecountfile);
	$Lnum = $Lnum[0]+1;
	if($Lnum>$Lnumber-1){ // If ran out of quotes, start again!
		$Lnum=0;	
	}
	if (file_exists($Ldirectory.$Lquotecountfile)) {
		$Lnu = fopen ($Ldirectory.$Lquotecountfile, "w");
		fputs($Lnu,$Lnum);
	}
	else {
		die("Cant Find $Lquotecountfile");
	}
}

// display the quote on the page
?>
<a href="<?php echo($Lquotes[$Lnum]); ?>" target="_blank" title="<?php echo($Lquotes[$Lnum]); ?> - Visit At Your Own Risk!!">Dont Go Down The Dark Alley</a>


			</div>
	   </div>
 <?php }?>