Scripts

Lumines Drawer

Oorspronkelijk was dit bedoeld om de puzzle mode van een spel gemakkelijker te maken, maar het is ook een handig voorbeeld van de mogelijkheden van PHP en CSS. Er worden multidimensionale arrays gebruikt, deze worden opgeslagen in een bestand en weer uitgelezen, en de informatie erin wordt gebruikt en aangepast. Input wordt uit GET variabelen gehaald. Ook laat dit script zien hoe je met CSS makkelijk mooie tabellen kan maken met weinig code. Het script en zijn output zijn beide overzichtelijk geordend. De output is altijd valid. Edit: Werkt voorlopig alleen in PHP5 (vandaar ook dat ik nog geen voorbeeld kan meegeven.) Morgen wordt dit veranderd en werkt het ook in meer gangbare versies.

lumines-drawer
[CODE]<?php

	//Lumines Drawer is made for PHP5. It will not work in lower versions.
	//To make it compatible, you must change all occurences of PHP_EOL to "\n\r"
	//and also replace file_get_contents() and file_put_contents with their
	//lower version equivalents.
	
	//I will do this myself tomorrow to make it compatible.

if (file_exists('lumines.dat')) { 
	//If the field has been saved, open it.
	$row = unserialize(file_get_contents('lumines.dat')) or die('lumines.dat file unreadable. Please use lumines.php?clear'); 
} else {
	//If not, create the array that holds the field info.
	$block = array('1' => '#FFFFFF', '2' => '#FFFFFF', '3' => '#FFFFFF', '4' => '#FFFFFF'); //abcd
	$col = array('1' => $block, '2' => $block, '3' => $block, '4' => $block, '5' => $block, '6' => $block, '7' => $block, '8' => $block);
	$row = array('1' => $col, '2' => $col, '3' => $col, '4' => $col, '5' => $col); //abcde
}

if (isset($_GET['invert'])) { //If the user clicked a cell
	
	$invert = explode('_', $_GET['invert']); //Split the GET-input into row, col, and cell.

		//Convert the row letters to numbers
		if ($invert[0] == 'a') { $invrow = 1; } elseif ($invert[0] == 'b') { $invrow = 2; } elseif ($invert[0] == 'c') { $invrow = 3; } elseif ($invert[0] == 'd') { $invrow = 4; } elseif ($invert[0] == 'e') { $invrow = 5; }
		
		//Convert the cell letters to numbers
		if ($invert[2] == 'a') { $invcell = 1; } elseif ($invert[2] == 'b') { $invcell = 2; } elseif ($invert[2] == 'c') { $invcell = 3; } elseif ($invert[2] == 'd') { $invcell = 4; } 
	
	//Get the cell we need and change the color setting
	$cell = $row[$invrow][$invert[1]][$invcell];
	if ($cell == '#FFFFFF') { $cell = '#555555'; } else { $cell = '#FFFFFF'; }
	$row[$invrow][$invert[1]][$invcell] = $cell;
	
	//Put the info in a file to save it for later. If it doesn't work, return an error.
	file_put_contents('lumines.dat', serialize($row)) or die("Lumines.dat file write problem. Please ensure the script has write permission");

} elseif (isset($_GET['invertall'])) { //If the user wants to invert all the cells

	for ($aa = 1; $aa <= 5; $aa++) { //Loop through all the rows
				
		for ($bb = 1; $bb <= 8; $bb++) { //Loop through all the cols
		
			for ($cc = 1; $cc <= 4; $cc++) { //Loop through all the cells
	
				//Get the cell we need and change the color setting.
				//This is done for all cells in all cols in all rows (every cell)
				$cell = $row[$aa][$bb][$cc];
				if ($cell == '#FFFFFF') { $cell = '#555555'; } else { $cell = '#FFFFFF'; }
				$row[$aa][$bb][$cc] = $cell;
	
			}
		}
	}
	
	//Put the info in a file to save it for later. If it doesn't work, return an error.
	file_put_contents('lumines.dat', serialize($row)) or die("lumines.dat file write problem. Please ensure the script has write permission");

} elseif (isset($_GET['clear'])) { //If the user wants to clear the field

	//If the field data file exists
	if (file_exists('lumines.dat')) {
		unlink('lumines.dat') or die("Unable to delete lumines.dat file."); //Destroy it. If that doesn't work, return an error.
		header("Location: ?"); //Refresh the page to clear the field
	} 

} elseif (isset($_GET['credits'])) { //If the user wants to display info

	$showcredits = 1; //Save this for later

} elseif (isset($_GET['download'])) { //If the user wants to download this file

	//Check to see if the file is actually still named lumines.php
	if (file_exists('lumines.php')) { 
		//This code sends the file to the user instead of opening it in the browser.
		header('Content-type: application/php');
		header('Content-Disposition: attachment; filename=lumines.php');
		readfile('lumines.php');
	} else { 
		//If the script is renamed, return an error
		die('The script has been renamed, unable to download for safety precautions. Line 77.'); 
	}

}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--

	Script, layout and all coding made by Ge64. See about for more info.

-->
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
		<title>Lumines Drawer</title>
		<style type="text/css">
			/*	This is CSS. Using CSS code, the properties of the HTML tags are set. 
				This way, you don't have to set the properties for each individual tag,
				you can set them once for every tag of a certain type. */
			body { font-family: "Courier New", Courier, monospace; font-size: 9pt; text-align: center; }
			
			table { padding: 0px; margin: 0px; border: 0; border-spacing: 0px; }
			table.field { width: 680px; height: 560px; }
			table.block { width: 80px; height: 80px; }
			
			td { border-spacing: 0px; padding: 0px; margin: 0px; }			
			td.header { background-color: #EEEEEE; border: 1px solid #AAAAAA; }
			td.function { background-color: #EEEEEE; border: 1px solid #DDDDDD;}
			td.block { border: 1px solid #AAAAAA; width: 80px; height: 80px; }
			td.banner { border: 0px; text-align: left; margin: 0px; padding-left: <?php echo rand(30,350); ?>px; width: 300px; height: 80px; }
			
			h1 { font-size: 24pt; text-shadow:#000000; color: #<?php echo dechex(rand(0,16777215)); ?>; }
			h2 { font-size: 18pt; color: #CA2622; }
			h3 { font-size: 8pt; color: #888888; width: 500px; }
			
			p { font-size: 12pt; color: #000000; width: 500px; }
			p.small { font-size: 10pt; color: #000000; width: 500px; }
			
<?php
			
			//This code will write the CSS code used to display the background color of each cell.
			
			for ($aa = 1; $aa <= 5; $aa++) { //Loop through all the rows
				
				//Convert the row numbers to letters
				if ($aa == 1) { $aanum = 'a'; } elseif ($aa == 2) { $aanum = 'b'; } elseif ($aa == 3) { $aanum = 'c'; } elseif ($aa == 4) { $aanum = 'd'; } elseif ($aa == 5) { $aanum = 'e'; }
						
				for ($bb = 1; $bb <= 8; $bb++) { //Loop through all the cols
				
					for ($cc = 1; $cc <= 4; $cc++) { //Loop through all the cells
					
					//Convert the cell numbers to letters
					if ($cc == 1) { $ccnum = 'a'; } elseif ($cc == 2) { $ccnum = 'b'; } elseif ($cc == 3) { $ccnum = 'c'; } elseif ($cc == 4) { $ccnum = 'd'; }
					
					//Send the CSS code for this cell to the browser. This is done for every cell.
					echo "\t\t\t" . 'td.cell_' . $aanum . $bb . '_' . $ccnum . '{ border: 1px solid #DDDDDD; width: 40px; height: 40px; background-color: '
						 . $row[$aa][$bb][$cc] . '; }' . "\n\r";
					}
				}
			}
			
			?>
			
		</style>
	</head>
	<body>
		<table width="250" class="field">
		  <tr>
			<td colspan="9" class="banner"><h1>Lumines Drawer</h1></td>
		  </tr>
		  <tr>
			 <td class="header">A</td>
			 <td class="block"><table class="block"><tr><td class="cell_a1_a" onClick="window.location = '?invert=a_1_a';"></td><td class="cell_a1_b" onClick="window.location = '?invert=a_1_b';"></td></tr><tr><td class="cell_a1_c" onClick="window.location = '?invert=a_1_c';"></td><td class="cell_a1_d" onClick="window.location = '?invert=a_1_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a2_a" onClick="window.location = '?invert=a_2_a';"></td><td class="cell_a2_b" onClick="window.location = '?invert=a_2_b';"></td></tr><tr><td class="cell_a2_c" onClick="window.location = '?invert=a_2_c';"></td><td class="cell_a2_d" onClick="window.location = '?invert=a_2_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a3_a" onClick="window.location = '?invert=a_3_a';"></td><td class="cell_a3_b" onClick="window.location = '?invert=a_3_b';"></td></tr><tr><td class="cell_a3_c" onClick="window.location = '?invert=a_3_c';"></td><td class="cell_a3_d" onClick="window.location = '?invert=a_3_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a4_a" onClick="window.location = '?invert=a_4_a';"></td><td class="cell_a4_b" onClick="window.location = '?invert=a_4_b';"></td></tr><tr><td class="cell_a4_c" onClick="window.location = '?invert=a_4_c';"></td><td class="cell_a4_d" onClick="window.location = '?invert=a_4_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a5_a" onClick="window.location = '?invert=a_5_a';"></td><td class="cell_a5_b" onClick="window.location = '?invert=a_5_b';"></td></tr><tr><td class="cell_a5_c" onClick="window.location = '?invert=a_5_c';"></td><td class="cell_a5_d" onClick="window.location = '?invert=a_5_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a6_a" onClick="window.location = '?invert=a_6_a';"></td><td class="cell_a6_b" onClick="window.location = '?invert=a_6_b';"></td></tr><tr><td class="cell_a6_c" onClick="window.location = '?invert=a_6_c';"></td><td class="cell_a6_d" onClick="window.location = '?invert=a_6_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a7_a" onClick="window.location = '?invert=a_7_a';"></td><td class="cell_a7_b" onClick="window.location = '?invert=a_7_b';"></td></tr><tr><td class="cell_a7_c" onClick="window.location = '?invert=a_7_c';"></td><td class="cell_a7_d" onClick="window.location = '?invert=a_7_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_a8_a" onClick="window.location = '?invert=a_8_a';"></td><td class="cell_a8_b" onClick="window.location = '?invert=a_8_b';"></td></tr><tr><td class="cell_a8_c" onClick="window.location = '?invert=a_8_c';"></td><td class="cell_a8_d" onClick="window.location = '?invert=a_8_d';"></td></tr></table></td>
		  </tr>
		  <tr>
			<td class="header">B</td>
			 <td class="block"><table class="block"><tr><td class="cell_b1_a" onClick="window.location = '?invert=b_1_a';"></td><td class="cell_b1_b" onClick="window.location = '?invert=b_1_b';"></td></tr><tr><td class="cell_b1_c" onClick="window.location = '?invert=b_1_c';"></td><td class="cell_b1_d" onClick="window.location = '?invert=b_1_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b2_a" onClick="window.location = '?invert=b_2_a';"></td><td class="cell_b2_b" onClick="window.location = '?invert=b_2_b';"></td></tr><tr><td class="cell_b2_c" onClick="window.location = '?invert=b_2_c';"></td><td class="cell_b2_d" onClick="window.location = '?invert=b_2_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b3_a" onClick="window.location = '?invert=b_3_a';"></td><td class="cell_b3_b" onClick="window.location = '?invert=b_3_b';"></td></tr><tr><td class="cell_b3_c" onClick="window.location = '?invert=b_3_c';"></td><td class="cell_b3_d" onClick="window.location = '?invert=b_3_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b4_a" onClick="window.location = '?invert=b_4_a';"></td><td class="cell_b4_b" onClick="window.location = '?invert=b_4_b';"></td></tr><tr><td class="cell_b4_c" onClick="window.location = '?invert=b_4_c';"></td><td class="cell_b4_d" onClick="window.location = '?invert=b_4_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b5_a" onClick="window.location = '?invert=b_5_a';"></td><td class="cell_b5_b" onClick="window.location = '?invert=b_5_b';"></td></tr><tr><td class="cell_b5_c" onClick="window.location = '?invert=b_5_c';"></td><td class="cell_b5_d" onClick="window.location = '?invert=b_5_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b6_a" onClick="window.location = '?invert=b_6_a';"></td><td class="cell_b6_b" onClick="window.location = '?invert=b_6_b';"></td></tr><tr><td class="cell_b6_c" onClick="window.location = '?invert=b_6_c';"></td><td class="cell_b6_d" onClick="window.location = '?invert=b_6_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b7_a" onClick="window.location = '?invert=b_7_a';"></td><td class="cell_b7_b" onClick="window.location = '?invert=b_7_b';"></td></tr><tr><td class="cell_b7_c" onClick="window.location = '?invert=b_7_c';"></td><td class="cell_b7_d" onClick="window.location = '?invert=b_7_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_b8_a" onClick="window.location = '?invert=b_8_a';"></td><td class="cell_b8_b" onClick="window.location = '?invert=b_8_b';"></td></tr><tr><td class="cell_b8_c" onClick="window.location = '?invert=b_8_c';"></td><td class="cell_b8_d" onClick="window.location = '?invert=b_8_d';"></td></tr></table></td>
		  </tr>
		  <tr>
			<td class="header">C</td>
			 <td class="block"><table class="block"><tr><td class="cell_c1_a" onClick="window.location = '?invert=c_1_a';"></td><td class="cell_c1_b" onClick="window.location = '?invert=c_1_b';"></td></tr><tr><td class="cell_c1_c" onClick="window.location = '?invert=c_1_c';"></td><td class="cell_c1_d" onClick="window.location = '?invert=c_1_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c2_a" onClick="window.location = '?invert=c_2_a';"></td><td class="cell_c2_b" onClick="window.location = '?invert=c_2_b';"></td></tr><tr><td class="cell_c2_c" onClick="window.location = '?invert=c_2_c';"></td><td class="cell_c2_d" onClick="window.location = '?invert=c_2_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c3_a" onClick="window.location = '?invert=c_3_a';"></td><td class="cell_c3_b" onClick="window.location = '?invert=c_3_b';"></td></tr><tr><td class="cell_c3_c" onClick="window.location = '?invert=c_3_c';"></td><td class="cell_c3_d" onClick="window.location = '?invert=c_3_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c4_a" onClick="window.location = '?invert=c_4_a';"></td><td class="cell_c4_b" onClick="window.location = '?invert=c_4_b';"></td></tr><tr><td class="cell_c4_c" onClick="window.location = '?invert=c_4_c';"></td><td class="cell_c4_d" onClick="window.location = '?invert=c_4_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c5_a" onClick="window.location = '?invert=c_5_a';"></td><td class="cell_c5_b" onClick="window.location = '?invert=c_5_b';"></td></tr><tr><td class="cell_c5_c" onClick="window.location = '?invert=c_5_c';"></td><td class="cell_c5_d" onClick="window.location = '?invert=c_5_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c6_a" onClick="window.location = '?invert=c_6_a';"></td><td class="cell_c6_b" onClick="window.location = '?invert=c_6_b';"></td></tr><tr><td class="cell_c6_c" onClick="window.location = '?invert=c_6_c';"></td><td class="cell_c6_d" onClick="window.location = '?invert=c_6_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c7_a" onClick="window.location = '?invert=c_7_a';"></td><td class="cell_c7_b" onClick="window.location = '?invert=c_7_b';"></td></tr><tr><td class="cell_c7_c" onClick="window.location = '?invert=c_7_c';"></td><td class="cell_c7_d" onClick="window.location = '?invert=c_7_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_c8_a" onClick="window.location = '?invert=c_8_a';"></td><td class="cell_c8_b" onClick="window.location = '?invert=c_8_b';"></td></tr><tr><td class="cell_c8_c" onClick="window.location = '?invert=c_8_c';"></td><td class="cell_c8_d" onClick="window.location = '?invert=c_8_d';"></td></tr></table></td>
		  </tr>
		  <tr>
			<td class="header">D</td>
			 <td class="block"><table class="block"><tr><td class="cell_d1_a" onClick="window.location = '?invert=d_1_a';"></td><td class="cell_d1_b" onClick="window.location = '?invert=d_1_b';"></td></tr><tr><td class="cell_d1_c" onClick="window.location = '?invert=d_1_c';"></td><td class="cell_d1_d" onClick="window.location = '?invert=d_1_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d2_a" onClick="window.location = '?invert=d_2_a';"></td><td class="cell_d2_b" onClick="window.location = '?invert=d_2_b';"></td></tr><tr><td class="cell_d2_c" onClick="window.location = '?invert=d_2_c';"></td><td class="cell_d2_d" onClick="window.location = '?invert=d_2_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d3_a" onClick="window.location = '?invert=d_3_a';"></td><td class="cell_d3_b" onClick="window.location = '?invert=d_3_b';"></td></tr><tr><td class="cell_d3_c" onClick="window.location = '?invert=d_3_c';"></td><td class="cell_d3_d" onClick="window.location = '?invert=d_3_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d4_a" onClick="window.location = '?invert=d_4_a';"></td><td class="cell_d4_b" onClick="window.location = '?invert=d_4_b';"></td></tr><tr><td class="cell_d4_c" onClick="window.location = '?invert=d_4_c';"></td><td class="cell_d4_d" onClick="window.location = '?invert=d_4_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d5_a" onClick="window.location = '?invert=d_5_a';"></td><td class="cell_d5_b" onClick="window.location = '?invert=d_5_b';"></td></tr><tr><td class="cell_d5_c" onClick="window.location = '?invert=d_5_c';"></td><td class="cell_d5_d" onClick="window.location = '?invert=d_5_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d6_a" onClick="window.location = '?invert=d_6_a';"></td><td class="cell_d6_b" onClick="window.location = '?invert=d_6_b';"></td></tr><tr><td class="cell_d6_c" onClick="window.location = '?invert=d_6_c';"></td><td class="cell_d6_d" onClick="window.location = '?invert=d_6_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d7_a" onClick="window.location = '?invert=d_7_a';"></td><td class="cell_d7_b" onClick="window.location = '?invert=d_7_b';"></td></tr><tr><td class="cell_d7_c" onClick="window.location = '?invert=d_7_c';"></td><td class="cell_d7_d" onClick="window.location = '?invert=d_7_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_d8_a" onClick="window.location = '?invert=d_8_a';"></td><td class="cell_d8_b" onClick="window.location = '?invert=d_8_b';"></td></tr><tr><td class="cell_d8_c" onClick="window.location = '?invert=d_8_c';"></td><td class="cell_d8_d" onClick="window.location = '?invert=d_8_d';"></td></tr></table></td>
		  </tr>
		  <tr>
			<td class="header">E</td>
			 <td class="block"><table class="block"><tr><td class="cell_e1_a" onClick="window.location = '?invert=e_1_a';"></td><td class="cell_e1_b" onClick="window.location = '?invert=e_1_b';"></td></tr><tr><td class="cell_e1_c" onClick="window.location = '?invert=e_1_c';"></td><td class="cell_e1_d" onClick="window.location = '?invert=e_1_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e2_a" onClick="window.location = '?invert=e_2_a';"></td><td class="cell_e2_b" onClick="window.location = '?invert=e_2_b';"></td></tr><tr><td class="cell_e2_c" onClick="window.location = '?invert=e_2_c';"></td><td class="cell_e2_d" onClick="window.location = '?invert=e_2_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e3_a" onClick="window.location = '?invert=e_3_a';"></td><td class="cell_e3_b" onClick="window.location = '?invert=e_3_b';"></td></tr><tr><td class="cell_e3_c" onClick="window.location = '?invert=e_3_c';"></td><td class="cell_e3_d" onClick="window.location = '?invert=e_3_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e4_a" onClick="window.location = '?invert=e_4_a';"></td><td class="cell_e4_b" onClick="window.location = '?invert=e_4_b';"></td></tr><tr><td class="cell_e4_c" onClick="window.location = '?invert=e_4_c';"></td><td class="cell_e4_d" onClick="window.location = '?invert=e_4_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e5_a" onClick="window.location = '?invert=e_5_a';"></td><td class="cell_e5_b" onClick="window.location = '?invert=e_5_b';"></td></tr><tr><td class="cell_e5_c" onClick="window.location = '?invert=e_5_c';"></td><td class="cell_e5_d" onClick="window.location = '?invert=e_5_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e6_a" onClick="window.location = '?invert=e_6_a';"></td><td class="cell_e6_b" onClick="window.location = '?invert=e_6_b';"></td></tr><tr><td class="cell_e6_c" onClick="window.location = '?invert=e_6_c';"></td><td class="cell_e6_d" onClick="window.location = '?invert=e_6_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e7_a" onClick="window.location = '?invert=e_7_a';"></td><td class="cell_e7_b" onClick="window.location = '?invert=e_7_b';"></td></tr><tr><td class="cell_e7_c" onClick="window.location = '?invert=e_7_c';"></td><td class="cell_e7_d" onClick="window.location = '?invert=e_7_d';"></td></tr></table></td>
			 <td class="block"><table class="block"><tr><td class="cell_e8_a" onClick="window.location = '?invert=e_8_a';"></td><td class="cell_e8_b" onClick="window.location = '?invert=e_8_b';"></td></tr><tr><td class="cell_e8_c" onClick="window.location = '?invert=e_8_c';"></td><td class="cell_e8_d" onClick="window.location = '?invert=e_8_d';"></td></tr></table></td>
		  </tr>
		  <tr>
			<td class="header">X</td>
			<td class="header">1</td>
			<td class="header">2</td>
			<td class="header">3</td>
			<td class="header">4</td>
			<td class="header">5</td>
			<td class="header">6</td>
			<td class="header">7</td>
			<td class="header">8</td>
		  </tr>
		  <tr>
			<td colspan="9" style="height: 20px;"></td>
		  </tr>
		  <tr>
			<td></td>
			<td colspan="2" class="function" onClick="window.location = '?clear';">Clear</td>
			<td colspan="2" class="function" onClick="window.location = '?invertall';">Invert all</td>
			<td colspan="2" class="function" onClick="window.location = '?download';">Download Source</td>
			<td colspan="2" class="function" onClick="window.location = '?credits';">About</td>
		  </tr>
		</table>
		
		<div <?php if (!isset($showcredits)) { echo 'style="display: none;"'; } //Hides this div unless you want to see the info. ?> align="left">
		
			<h2>Lumines Drawer v0.9 by ge64</h2>
			<h3>All mentioned trademarks are property of their owners. Lumines Drawer is in no way associated with or related to any game every released by anyone for any computer or non-computer related platform.</h4>
		
		</div>
	</body>
</html>

Reacties

0
Nog geen reacties.