minor improvements
[anyfivecardpokerhand.git] / index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
 
$folder = dirname(__FILE__);
chdir ($folder);
$appRoot = $folder."/";
 
include ($appRoot."include/init.php");
 
$display = new Display;
 
$page = filter_var ($_GET['page'], FILTER_VALIDATE_INT);
$hand = filter_var ($_GET['hand'], FILTER_VALIDATE_INT);
$card = filter_var ($_GET['card'], FILTER_FLAG_STRIP_HIGH);
$ajax = filter_var ($_GET['ajax'], FILTER_VALIDATE_BOOLEAN);
 
$display->page ($page, $hand, $card, $ajax);
 
?>
comments