projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
mop_flush modify
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
5fd269d
..
f3b8229
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-236,9
+236,12
@@
function main()
if (isset($BRISK_SHOWHTML) == FALSE) {
$is_table = FALSE;
if (isset($BRISK_SHOWHTML) == FALSE) {
$is_table = FALSE;
- $sem = Room::lock_data();
+ $sem = Room::lock_data(
TRUE
);
log_main("lock Room");
log_main("lock Room");
- $room = &Room::load_data();
+ if (($room = Room::load_data()) == FALSE) {
+ log_crit("load_data failed");
+ exit();
+ }
$curtime = time();
/* Actions */
$curtime = time();
/* Actions */
@@
-280,7
+283,7
@@
function main()
$room->garbage_manager(TRUE);
/* try login */
$room->garbage_manager(TRUE);
/* try login */
- if (($user =
&
$room->add_user(&$sess, &$idx, $name, $pass_private, $_SERVER['REMOTE_ADDR'])) != FALSE) {
+ if (($user = $room->add_user(&$sess, &$idx, $name, $pass_private, $_SERVER['REMOTE_ADDR'])) != FALSE) {
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;
$ACTION = "room";
if ($idx < 0) {
$idx = -$idx - 1;
@@
-307,10
+310,10
@@
function main()
// setcookie ("sess", "", time() + 180);
$room->standup_update(&$user);
// setcookie ("sess", "", time() + 180);
$room->standup_update(&$user);
-
if (Room::save_data(&
$room) == FALSE) {
- echo "ERRORE SALVATAGGIO\n";
- exit;
- }
+
if (Room::save_data(
$room) == FALSE) {
+
echo "ERRORE SALVATAGGIO\n";
+
exit;
+
}
}
else {
/* Login Rendering */
}
else {
/* Login Rendering */