projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
return to index.php DONE
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
e561d68
..
d7d1755
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-21,7
+21,7
@@
*
*/
*
*/
-require_once("brisk.phh");
+require_once("
Obj/
brisk.phh");
if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') {
echo "Debugging time!";
exit;
if (DEBUGGING == "local" && $_SERVER['REMOTE_ADDR'] != '127.0.0.1') {
echo "Debugging time!";
exit;
@@
-40,16
+40,16
@@
function main()
if (isset($BRISK_SHOWHTML) == FALSE) {
$is_table = FALSE;
if (isset($BRISK_SHOWHTML) == FALSE) {
$is_table = FALSE;
- $sem = lock_data();
- $
bri = &
load_data();
+ $sem =
Room::
lock_data();
+ $
room = &Room::
load_data();
/* Actions */
if (validate_sess($sess)) {
/* Actions */
if (validate_sess($sess)) {
- $
bri
->garbage_manager(TRUE);
- if (($user = &$
bri
->get_user($sess, &$idx)) != FALSE) {
+ $
room
->garbage_manager(TRUE);
+ if (($user = &$
room
->get_user($sess, &$idx)) != FALSE) {
if ($user->stat == "table") {
header ("Location: table.php");
if ($user->stat == "table") {
header ("Location: table.php");
- unlock_data($sem);
+
Room::
unlock_data($sem);
exit;
}
$ACTION = "room";
exit;
}
$ACTION = "room";
@@
-57,15
+57,15
@@
function main()
}
if ($ACTION == "login" && isset($name)) {
}
if ($ACTION == "login" && isset($name)) {
- $
bri
->garbage_manager(TRUE);
+ $
room
->garbage_manager(TRUE);
/* try login */
/* try login */
- if (($user = &$
bri
->add_user(&$sess, &$idx, $name, $_SERVER['REMOTE_ADDR'])) != FALSE) {
+ if (($user = &$
room
->add_user(&$sess, &$idx, $name, $_SERVER['REMOTE_ADDR'])) != FALSE) {
$ACTION = "room";
// setcookie ("sess", "", time() + 180);
$ACTION = "room";
// setcookie ("sess", "", time() + 180);
- $
bri
->standup_update(&$user);
+ $
room
->standup_update(&$user);
- if (
save_data(&$bri
) == FALSE) {
+ if (
Room::save_data(&$room
) == FALSE) {
echo "ERRORE SALVATAGGIO\n";
exit;
}
echo "ERRORE SALVATAGGIO\n";
exit;
}
@@
-80,7
+80,7
@@
function main()
$body .= '<div class="urgmsg"><b>Il tuo nickname è già in uso.</b></div>';
}
}
$body .= '<div class="urgmsg"><b>Il tuo nickname è già in uso.</b></div>';
}
}
- unlock_data($sem);
+
Room::
unlock_data($sem);
}
/* Rendering. */
}
/* Rendering. */
@@
-266,7
+266,7
@@
supported by:<br><br>
<body>
<SCRIPT type="text/javascript">
var g_withflash = false;
<body>
<SCRIPT type="text/javascript">
var g_withflash = false;
-
+ var g_is_spawn = 0;
window.onload = function() {
g_withflash = DetectFlashVer(6,0,0);
if (g_withflash == false) {
window.onload = function() {
g_withflash = DetectFlashVer(6,0,0);
if (g_withflash == false) {
@@
-332,6
+332,7
@@
Digita il tuo nickname per accedere ai tavoli della briscola.<br><br>
var stat = "";
var subst = "";
var gst = new globst();
var stat = "";
var subst = "";
var gst = new globst();
+ var g_is_spawn = 0;
var g_withflash = false;
var g_imgct= 0;
var g_withflash = false;
var g_imgct= 0;