function main()
{
- GLOBAL $sess, $name, $BRISK_DEBUG;
-
+ GLOBAL $sess, $name, $BRISK_SHOWHTML, $_SERVER;
+
$body = "";
$ACTION = "login";
- if (isset($BRISK_DEBUG) == FALSE) {
+ if (isset($BRISK_SHOWHTML) == FALSE) {
$is_table = false;
$sem = lock_data();
$bri = &load_data();
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);
}
/* Rendering. */
- if ($BRISK_DEBUG == "debugtable") {
+ if ($BRISK_SHOWHTML == "debugtable") {
$ACTION = "room";
}
- else if ($BRISK_DEBUG == "debuglogin") {
+ else if ($BRISK_SHOWHTML == "debuglogin") {
$ACTION = "login";
}
$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">
<div id="proflashext" class="proflashext"><div id="proflash" class="proflash">
</div><br><br></div>
%s
+%s
</div>';
/* Templates. */
}
</SCRIPT>
<?php
- printf($brisk_header_form, '');
+ printf($brisk_header_form, '', '');
?>
<!-- =========== tables =========== -->
var myfrom = "index_php";
window.onload = function() {
<?php
-if ($BRISK_DEBUG == "debugtable") {
+if ($BRISK_SHOWHTML == "debugtable") {
?>
room_checkspace(12,8,50);
<?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">