phpBB2
:



:



##############################################################
## :
##
## :
## : 7-9
##
## - 5
##
## posting.php,
## admin/admin_board.php,
## language/lang_english/lang_main.php,
## language/lang_bulgarian/lang_admin.php,
## templates/subSilver/admin/board_config_body.tpl
##
## :
##
##
##############################################################
## Back Up
##############################################################
#
#-----[ SQL ]-------------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('edit_time', '0')

#
#-----[ ]------------------------------------------------
#
posting.php

#
#-----[ ]------------------------------------------------
#
$select_sql = (!$submit) ? ', t.topic_title, p.enable_bbcode, p.enable_html, p.enable_smilies, p.enable_sig, p.post_username, pt.post_subject, pt.post_text, pt.bbcode_uid, u.username, u.user_id, u.user_sig, u.user_sig_bbcode_uid' : '';

#
#-----[ ]----------------------------------------
#
p.post_username,

#
#-----[ ]------------------------------------------
#
p.post_time,

#
#-----[ ]------------------------------------------------
#
else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod'])
{
message_die(GENERAL_MESSAGE, $lang['Topic_locked']);
}

#
#-----[ ]------------------------------------------
#
//
// BEGIN - Limited post edit time MOD
//
if ( $mode == 'editpost' && !$is_auth['auth_mod'] && $board_config['edit_time'] != '0' && !$submit)
{
$current_time = time();
$difference_sec = $current_time - $post_info['post_time'] ;
$difference_min = ($current_time - $post_info['post_time']) / 60;
if ($difference_min > $board_config['edit_time'] )
{
$message = sprintf($lang['edit_time_past'], $board_config['edit_time']) . '<br /><br />' . sprintf($lang['Click_view_message'], '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id . '">', '</a>') . '<br /><br />' . sprintf($lang['Click_return_forum'], '<a href="' . append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id") . '">', '</a>');
message_die(GENERAL_MESSAGE, $message);
}
}

//
// END - Limited post edit time MOD
//

#
#-----[ ]------------------------------------------------
#
admin/admin_board.php

#
#-----[ ]------------------------------------------------
#
"L_ENABLE_PRUNE" => $lang['Enable_prune'],

#
#-----[ ]------------------------------------------
#
"L_EDIT_TIME" => $lang['edit_time'],
"L_EDIT_TIME_EXPLAIN" => $lang['edit_time_explain'],

#
#-----[ ]------------------------------------------------
#
"PRUNE_NO" => $prune_no,

#
#-----[ ]------------------------------------------
#
"EDIT_TIME" => $new['edit_time'],

#
#-----[ ]------------------------------------------------
#
language/lang_bulgarian/lang_admin.php

#
#-----[ ]------------------------------------------------
#
//
// That's all Folks!

#
#-----[ ]-----------------------------------------
#
//limited post edit time MOD
$lang['edit_time'] = ' ';
$lang['edit_time_explain'] = ' ( ) . , .';

#
#-----[ ]------------------------------------------------
#
language/lang_bulgarian/lang_main.php

#
#-----[ ]------------------------------------------------
#
//
// That's all, Folks!

#
#-----[ ]-----------------------------------------
#
//limited post edit time MOD
$lang['edit_time_past'] = ' <b>%d</b> , .';

#
#-----[ ]------------------------------------------------
#
templates/SubSilver/admin/board_config_body.tpl

#
#-----[ ]------------------------------------------------
#
<td class="row2"><input type="radio" name="prune_enable" value="1" {PRUNE_YES} /> {L_YES}<input type="radio" name="prune_enable" value="0" {PRUNE_NO} /> {L_NO}</td>
</tr>

#
#-----[ ]------------------------------------------
#
<tr>
<td class="row1">{L_EDIT_TIME}<br /><span class="gensmall">{L_EDIT_TIME_EXPLAIN}</span></td>
<td class="row2"><input type="text" size="4" maxlength="4" name="edit_time" value="{EDIT_TIME}" /></td>
</tr>

#
#-----[ ]--------------------------------
#

- . .



/ /