projects
/
brisk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
define to disable chat ban added
[brisk.git]
/
web
/
Obj
/
brisk.phh
diff --git
a/web/Obj/brisk.phh
b/web/Obj/brisk.phh
index
af2a901
..
41524d2
100644
(file)
--- a/
web/Obj/brisk.phh
+++ b/
web/Obj/brisk.phh
@@
-45,6
+45,7
@@
define('COMM_GEN_N', 50);
define('CHAT_N', 3);
define('CHAT_ILL_TIME', 6);
define('CHAT_N', 3);
define('CHAT_ILL_TIME', 6);
+define('CHAT_ENABLED', TRUE);
define('SESS_LEN', 13);
define('STREAM_TIMEOUT', 60);
define('SESS_LEN', 13);
define('STREAM_TIMEOUT', 60);
@@
-1478,7
+1479,7
@@
class Room {
else { // normal chat line
$is_normchat = TRUE;
else { // normal chat line
$is_normchat = TRUE;
- if ($curtime < ($user->chat_ban + $user->chat_dlt)) {
+ if (
CHAT_ENABLED &&
$curtime < ($user->chat_ban + $user->chat_dlt)) {
$only_you = TRUE;
$user->chat_dlt = $user->chat_dlt * 2;
if ($user->chat_dlt > 120)
$only_you = TRUE;
$user->chat_dlt = $user->chat_dlt * 2;
if ($user->chat_dlt > 120)
@@
-1486,7
+1487,7
@@
class Room {
}
else if ($user->chat_lst == $msg)
$only_you = TRUE;
}
else if ($user->chat_lst == $msg)
$only_you = TRUE;
- else if ($curtime - $user->chattime[($user->chat_cur + 1) % CHAT_N] < CHAT_ILL_TIME) {
+ else if (
CHAT_ENABLED &&
$curtime - $user->chattime[($user->chat_cur + 1) % CHAT_N] < CHAT_ILL_TIME) {
$user->chat_ban = $curtime;
$user->chat_dlt = 5;
$only_you = TRUE;
$user->chat_ban = $curtime;
$user->chat_dlt = 5;
$only_you = TRUE;
@@
-2178,6
+2179,8
@@
class Room {
{
printf("NEW_SOCKET (root): %d\n", intval($new_socket));
{
printf("NEW_SOCKET (root): %d\n", intval($new_socket));
+ force_no_cache($header_out);
+
switch ($path) {
case "":
case "index.php":
switch ($path) {
case "":
case "index.php":
@@
-2186,8
+2189,6
@@
class Room {
$content = ob_get_contents();
ob_end_clean();
$content = ob_get_contents();
ob_end_clean();
- force_no_cache($header_out);
-
$s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content);
return TRUE;
$s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content);
return TRUE;
@@
-2198,8
+2199,6
@@
class Room {
$content = ob_get_contents();
ob_end_clean();
$content = ob_get_contents();
ob_end_clean();
- force_no_cache($header_out);
-
$s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content);
return TRUE;
$s_a_p->pgflush_try_add($new_socket, 20, $header_out, $content);
return TRUE;