other changes and fixes from beta site
[brisk.git] / web / briskin5 / explain.php
1 <?php
2 /*
3  *  brisk - statadm.php
4  *
5  *  Copyright (C) 2009-2012 Matteo Nastasi
6  *                          mailto: nastasi@alternativeoutput.it 
7  *                                  matteo.nastasi@milug.org
8  *                          web: http://www.alternativeoutput.it
9  *
10  * This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version.
14  *
15  * This program is distributed in the hope that it will be useful, but
16  * WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABLILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * General Public License for more details. You should have received a
19  * copy of the GNU General Public License along with this program; if
20  * not, write to the Free Software Foundation, Inc, 59 Temple Place -
21  * Suite 330, Boston, MA 02111-1307, USA.
22  *
23  */
24
25 /*
26   line example:
27 1246428948|492e4e9e856b0|N|tre|172.22.1.90|STAT:BRISKIN5:FINISH_GAME|4a4afd4983039|6|3|tre|1|due|2|uno|-1|
28    
29 */
30
31 foreach (array("HTTP_HOST", "DOCUMENT_ROOT") as $i) {
32     if (isset($_SERVER[$i])) {
33         $$i = $_SERVER[$i];
34         }
35     }
36
37 $G_base = "../";
38
39 ini_set("max_execution_time",  "240");
40
41 require_once("../Obj/brisk.phh");
42 require_once("../Obj/user.phh");
43 require_once("../Obj/auth.phh");
44 require_once("../Obj/dbase_${G_dbasetype}.phh");
45 require_once("Obj/briskin5.phh");
46 require_once("Obj/placing.phh");
47
48 function main() {
49     $ret = "";
50     if (file_exists(LEGAL_PATH."/explain.log")) {
51         $ret .= file_get_contents(LEGAL_PATH."/explain.log");
52     }
53     echo "$ret";
54 }
55 ?>
56 <html>
57 <head>
58 <title>Brisk: partite di ieri</title>
59 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
60 <link rel="stylesheet" type="text/css" href="../brisk.css">
61 <link rel="stylesheet" type="text/css" href="../room.css">
62 </head>
63 <body class="explain">
64 <div style="text-align: center;">
65 <?php 
66 main();
67 ?>
68 </div>
69 </body>
70 </html>