PHP Classes

File: test.php

Recommend this page to a friend!
  Classes of Dave Smith  >  PHP Virtual Slot Machine  >  test.php  >  Download  
File: test.php
Role: Example script
Content type: text/plain
Description: Default slot configuration testing
Class: PHP Virtual Slot Machine
Emulate a slot machine
Author: By
Last change: Added support for testing additional slots and navigation
Date: 6 years ago
Size: 579 bytes
 

Contents

Class file image Download
<?PHP
error_reporting
(E_ALL ^ E_NOTICE);

session_start();

include(
'class.vslot.php');
$vslot = new vslot();

$playSlot = ( !empty($_REQUEST['slot']) ) ? $_REQUEST['slot'] : 0;
include(
'otherslots.php');

?>
<html>
    <head>
        <title>Virtual Slots</title>
    </head>
    <body>
        <div>[<a href="play.php<?PHP echo ( !empty($playSlot) ) ? '?slot='.$playSlot : '';?>">Play this slot</a>]</div>
        <?PHP echo $vslot->checkSettings();?>
<div>[<a href="play.php<?PHP echo ( !empty($playSlot) ) ? '?slot='.$playSlot : '';?>">Play this slot</a>]</div>
    </body>
</html>

For more information send a message to info at phpclasses dot org.