projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
start banlist
[brisk.git]
/
web
/
index.php
diff --git
a/web/index.php
b/web/index.php
index
090f960
..
425dfea
100644
(file)
--- a/
web/index.php
+++ b/
web/index.php
@@
-31,12
+31,12
@@
log_load($sess, "LOAD: index.php");
function main()
{
function main()
{
- GLOBAL $sess, $name, $BRISK_
DEBUG
;
-
+ GLOBAL $sess, $name, $BRISK_
SHOWHTML, $_SERVER
;
+
$body = "";
$ACTION = "login";
$body = "";
$ACTION = "login";
- if (isset($BRISK_
DEBUG
) == FALSE) {
+ if (isset($BRISK_
SHOWHTML
) == FALSE) {
$is_table = false;
$sem = lock_data();
$bri = &load_data();
$is_table = false;
$sem = lock_data();
$bri = &load_data();
@@
-57,7
+57,7
@@
function main()
if ($ACTION == "login" && isset($name)) {
$bri->garbage_manager(TRUE);
/* try login */
if ($ACTION == "login" && isset($name)) {
$bri->garbage_manager(TRUE);
/* try login */
- if (($user = &$bri->add_user(&$sess, &$idx, $name)) != FALSE) {
+ if (($user = &$bri->add_user(&$sess, &$idx, $name
, $_SERVER['REMOTE_ADDR']
)) != FALSE) {
$ACTION = "room";
// setcookie ("sess", "", time() + 180);
$ACTION = "room";
// setcookie ("sess", "", time() + 180);
@@
-82,10
+82,10
@@
function main()
}
/* Rendering. */
}
/* Rendering. */
- if ($BRISK_
DEBUG
== "debugtable") {
+ if ($BRISK_
SHOWHTML
== "debugtable") {
$ACTION = "room";
}
$ACTION = "room";
}
- else if ($BRISK_
DEBUG
== "debuglogin") {
+ else if ($BRISK_
SHOWHTML
== "debuglogin") {
$ACTION = "login";
}
$ACTION = "login";
}
@@
-126,6
+126,10
@@
function main()
$altout_propag[$randval]['content']);
$altout_propag[$randval]['content']);
+ $brisk_donate = file_get_contents(FTOK_PATH."/brisk_donate.txt");
+ if ($brisk_donate == FALSE)
+ $brisk_donate = "";
+
$brisk_header_form = '<div class="container">
<!-- =========== header =========== -->
<div id="header" class="header">
$brisk_header_form = '<div class="container">
<!-- =========== header =========== -->
<div id="header" class="header">
@@
-144,6
+148,7
@@
supported by:<br><br>
<div id="proflashext" class="proflashext"><div id="proflash" class="proflash">
</div><br><br></div>
%s
<div id="proflashext" class="proflashext"><div id="proflash" class="proflash">
</div><br><br></div>
%s
+%s
</div>';
/* Templates. */
</div>';
/* Templates. */
@@
-177,7
+182,7
@@
supported by:<br><br>
}
</SCRIPT>
<?php
}
</SCRIPT>
<?php
- printf($brisk_header_form, '');
+ printf($brisk_header_form, ''
, ''
);
?>
<!-- =========== tables =========== -->
?>
<!-- =========== tables =========== -->
@@
-238,7
+243,7
@@
Digita il tuo nickname per accedere ai tavoli della briscola.<br><br>
var myfrom = "index_php";
window.onload = function() {
<?php
var myfrom = "index_php";
window.onload = function() {
<?php
-if ($BRISK_
DEBUG
== "debugtable") {
+if ($BRISK_
SHOWHTML
== "debugtable") {
?>
room_checkspace(12,8,50);
<?php
?>
room_checkspace(12,8,50);
<?php
@@
-267,7
+272,8
@@
else {
</SCRIPT>
<?php
</SCRIPT>
<?php
- printf($brisk_header_form, '<input type="button" class="button" name="xhelp" value="Help." onclick="act_help();"><br><br><input type="button" class="button" name="xabout" value="About." onclick="act_about();"><br><br><br>');
+ printf($brisk_header_form, '<input type="button" class="button" name="xhelp" value="Help." onclick="act_help();"><br><br><input type="button" class="button" name="xabout" value="About." onclick="act_about();"><br><br><br>',
+ $brisk_donate);
?>
<!-- =========== tables =========== -->
<div id="tables" class="tables">
?>
<!-- =========== tables =========== -->
<div id="tables" class="tables">