Allerdings kann man dort gepostete Beiträge schon sehene, bevor das Forum geöffnet ist.
Was muss ich noch machen, damit man es außerhalb des Zeitbereiches nicht betreten kann? (so als ob man keine Rechte dafür hätte)
Hier der Code:
Code: Alles auswählen
#
#----------[ OPEN ]-------------------------------------
#
index.php
#
#----------[ FIND ]-------------------------------------
#
if ( $is_auth_ary[$forum_id]['auth_view'] )
#
#----------[ BEFORE, ADD ]------------------------------
#
// close forum by daytime
if ($forum_id == '4')
{
$current_fc_time = date('Gi',time());
if ($current_fc_time <= '1259' || $current_fc_time >= '359')
{
$forum_data[$j]['forum_status'] = FORUM_LOCKED;
}
}
// close forum by daytime
#
#----------[ OPEN ]-------------------------------------
#
posting.php
#
#----------[ FIND ]-------------------------------------
#
if ( $post_info['forum_status'] == FORUM_LOCKED && !$is_auth['auth_mod'])
#
#----------[ BEFORE, ADD ]------------------------------
#
// close forum by daytime
if ($forum_id == '4')
{
$current_fc_time = date('Gi',time());
if ($current_fc_time <= '1259' || $current_fc_time >= '359')
{
$post_info['forum_status'] = FORUM_LOCKED;
}
}
// close forum by daytime
#
#----------[ OPEN ]-------------------------------------
#
viewforum.php
#
#----------[ FIND ]-------------------------------------
#
//
// Dump out the page header and load viewforum template
#
#----------[ BEFORE, ADD ]------------------------------
#
// close forum by daytime
if ($forum_id == '4')
{
$current_fc_time = date('Gi',time());
if ($current_fc_time <= '1259' || $current_fc_time >= '359')
{
$forum_row['forum_status'] = FORUM_LOCKED;
}
}
// close forum by daytime
#
#----------[ OPEN ]-------------------------------------
#
viewtopic.php
#
#----------[ FIND ]-------------------------------------
#
$reply_img = ( $forum_topic_data['forum_status'] == FORUM_LOCKED || $forum_topic_data['topic_status'] == TOPIC_LOCKED ) ? $images['reply_locked'] : $images['reply_new'];
#
#----------[ BEFORE, ADD ]------------------------------
#
// close forum by daytime
if ($forum_id == '4')
{
$current_fc_time = date('Gi',time());
if ($current_fc_time <= '1259' || $current_fc_time >= '359')
{
$forum_topic_data['forum_status'] = FORUM_LOCKED;
}
}
// close forum by daytime
#
#----------[ SAVE AND CLOSE ALL FILES ]-----------------
#
# EoM