Location: PHPKode > scripts > Bingoware > bingoware/index.php
<? include ("functions.php");
include ("header.php");

?>
<table width="100%" border="0" cellpadding="5">
  <tr>
    <td width="18%" valign="top">
	<? include ("menu.php"); ?>
      </td>
    <td width="82%" valign="top">
    <?
    	if (($action=="generate") || ($action =="regenerate")) {
    		if ($action =="regenerate") {
    			restart(); //clears winners and draws
    			@unlink("set.".$setid.".dat");
   		}
    		if (set_exists()) 
    			echo '(Set ID: '.$setid.')<br><br><font size="4">You already have a set of '.card_number().' cards,<br> would you like to <a href="index.php?action=regenerate&pagetitle='.$pagetitle.'">create a new set</a>?</font>';
    		else include ("generate.php");
    	} else if ($action=="view") {
    		if (set_exists()) 
    			include ("choose.php");
    		 else echo '<font size="4">You do not have a set of cards</font><br><br>(Set ID: '.$setid.')';
    	} else if ($action=="play") {
    		if (set_exists()) include ("play.php");
    		else echo '<font size="4">You do not have a set of cards</font><br><br>(Set ID: '.$setid.')';
    	} else if ($action=="config") {
    		include ("configure.php");
   	} else if (set_exists()) echo "<font size=4>You have ".card_number()." cards in your set</font><br><br>(Set ID: ".$setid.")";
    	else include("generate.php");
    		
    ?>
    </td>
  </tr>
</table>
<? include ("footer.php"); ?>
Return current item: Bingoware