багом не является [English] Few Problems / Bugs

Reitak

Пользователь
Another bug

When you disable all forum / topics for guest (you have registered hidden only), so they see only login and you have enabled Latest and network news on index, guest can click on that news and after he can browse all board as guest.
Please fix this bug, make it, when he click on that news, login page show him, thanks
 

Reitak

Пользователь
can you tell me please, where how fix time?

I am from Slovakia, we have now 10:10
All guest have time 5:10
All registered have time 12:10
Server time on putty (date) I have 10:10 so its OK.
 

Reitak

Пользователь
timezone php is Default timezone Europe/Bratislava, its ok

what is same string?

in index data i have

case 'change_tz':
$tz = (int) $this->request['tz'];
if ($tz < -12) $tz = -12;
if ($tz > 13) $tz = 13;
if ($tz != $bb_cfg['board_timezone'])
{
// Set current user timezone
DB()->query("UPDATE ". BB_USERS ." SET user_timezone = $tz WHERE user_id = ". $userdata['user_id'] ." LIMIT 1");
$bb_cfg['board_timezone'] = $tz;
cache_rm_user_sessions ($userdata['user_id']);
}
break;

in header

<!-- IF LOGGED_IN -->
<script type="text/javascript">
ajax.index_data = function(tz) {
ajax.exec({
action : 'index_data',
mode : 'change_tz',
tz : tz
});
};
ajax.callback.index_data = function(data) {};
$(document).ready(function() {
x = new Date();
tz = -x.getTimezoneOffset()/60;
if (tz != {BOARD_TIMEZONE})
{
ajax.index_data(tz);
}
});
</script>
 
Сверху