[مجابة] تحديد عدد المواضيع في اليوم
المشرف: alhitary
[?????] ????? ??? ???????? ?? ?????
?? ???? ????? ?????? ??? ???????? ?? ?????? ???? ???? ???????? ?????? ????? ??????? ?? ????? ???? ???? ?? ????? ????? ?????? ????? ????? ????
آخر تعديل بواسطة saleeem في الخميس مارس 16, 2006 12:04 pm، تم التعديل مرتين في المجمل.
ملتقيات ينبع الصناعية
http://www.rcynb.com/php
http://www.rcynb.com/php
?????? ?????
???? ????? ??
??? ???...?? ????
????
??????
???? ????? ??
??? ???...?? ????

??????

لوكان الجهل رجلاً لقتلته
I Hate vBulletin
نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com
البريد والرسائل الخاصه لايعدان السبيل الامثل للدعم الفني 
I Hate vBulletin
نِـثَـارٌ (مدونتي) | | وافــــر >> Wapher.Com || مُفيد.كوم >> MoFFed.Com


?????? ??????
???? AC ??? ????
????? ???? ?? ???? http://www.phpbbhacks.com ??? ??? ??? ??? ??????? ? ???? ?? ???? ??

????? ???? ?? ???? http://www.phpbbhacks.com ??? ??? ??? ??? ??????? ? ???? ?? ???? ??

ملتقيات ينبع الصناعية
http://www.rcynb.com/php
http://www.rcynb.com/php
- magnoon-awy
- عضو جديد
- مشاركات: 6
- اشترك في: الأربعاء يناير 29, 2003 5:16 pm
- اتصال:
??? ???? ?????? ?????? ? ??? ???? .. ?? ?? ???? ..
?? ???? ???? ??????? ?? ???? ??????? ?? ?????? ???????? ..
??????
?? ???? ???? ??????? ?? ???? ??????? ?? ?????? ???????? ..
??????
كود: تحديد الكل
#################################################################
## ????? ?????: ????? ??? ????????? ???????
## ????? ?????: magnoon_awy <wmnasef@khayalworld.com>
## ??? ?????: ????? ???? ?????? ??? ????????? ??????? ????? ???? ???? ?? ?????? ??????? .
## ????? ?????? ?? ??? ????????? ?? ???? ???? ???? ?????? ?????? ?? ? ?? ????? ???????
## ????? ???? ??? ??? . ????? ???? ?? ??????? ??? ? ? ?? ????? ??? ???????? ? ???????
## ?????? ?????: 0,0,1
##
## ????? ???????: ???
## ??? ???????: 5 ?????
## ??????? ??????? ???????:
## includes/functions_post.php
## language/lang_***/lang_main.php
## admin/admin_board.php
## templates/***/admin/board_config_body.tpl
##
## ??????? ???????: ?? ????
##
#################################################################
## ?? ????? ??? ????? ?? ???? ????? ?????? ???????? phpBB ??? ??????? http://www.phpBBArabia.com
## ??? ????? ????? ????? ??? ??????? ???? ?? ??????? ?? ????? ????? ??????? ???? ?? ??????? ????
## ???? ??????? ???? ???????? ???????? phpBB ? ???????. ?? ?????? ???? ?? ???? ??? ????? ?? ?????
## ????? ?????? ???? ?? ?????? ? ?? ????? ?? ?????? ?????? ???????.
#################################################################
## ??? ???? ??? ???? ???????? ?? ???? ??????? ???????? ???? ????? ??? ?????? ??? ?????
#################################################################
#
#-----[ ??? ??? ????? ?? ????? ???????? ]------------------------------------------
#
INSERT INTO phpbb_config (config_name, config_value) VALUES ('daily_posts','12');
#
#-----[ ???? ??? ]------------------------------------------
#
language/lang_***/lang_main.php
#
#-----[ ???? ????? ]------------------------------------------
#
//
// That's all Folks!
// -------------------------------------------------
?>
#
#-----[ ??? ???? ]------------------------------------------
#
// Daily Posts
$lang['Daily_posts'] = '??? ????????? ??????? ?????';
$lang['Daily_posts_exp'] = '????? ?? ???? ?????? ??? ???????/?????? ???? ????? ?? ?????? ?????? ? ?? ??? ??? ??? ?? ??? ???? ?? ???? ????? ???? ???? . ???????? ? ??????? ????? ???????? ???? ???? ????? ??? ?????? ???? ?????';
$lang['Daily_posts_limit'] = "??? ?????? ??? ?????????/???????? ??????? ?? ????? .";
#
#-----[ ???? ??? ]------------------------------------------
#
includes/functions_post.php
#
#-----[ ???? ????? ]------------------------------------------
#
if ($mode == 'newtopic' || $mode == 'reply' || $mode == 'editpost')
{
//
// Flood control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT MAX(post_time) AS last_post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql";
if ($result = $db->sql_query($sql))
{
if ($row = $db->sql_fetchrow($result))
{
if (intval($row['last_post_time']) > 0 && ($current_time - intval($row['last_post_time'])) < intval($board_config['flood_interval']))
{
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
#
#-----[ ??? ???? ]------------------------------------------
#
if ($mode == 'newtopic' || $mode == 'reply' && $userdata['user_level'] <= 0)
{
//
// Daily Posts Control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql
And post_time >= $current_time - 86400";
if ($result = $db->sql_query($sql))
{
$num_rows = $db->sql_numrows($result);
if ($num_rows >= $board_config['daily_posts'] && $board_config['daily_posts'] != 0)
{
message_die(GENERAL_MESSAGE, $lang['Daily_posts_limit']);
}
$num_rows = $db->sql_numrows();
}
}
#
#-----[ ???? ??? ]------------------------------------------
#
admin/admin_board.php
#
#
#-----[ ???? ????? ]------------------------------------------
#
"L_RESET" => $lang['Reset'],
#
#-----[ ??? ???? ]------------------------------------------
#
// Daily Posts
"L_DAILY_POSTS" => $lang['Daily_posts'],
"L_DAILY_POSTS_EXP" => $lang['Daily_posts_exp'],
"DAILY_POSTS" => $new['daily_posts'],
#
#-----[ ???? ??? ]------------------------------------------
#
templates/***/admin/board_config_body.tpl
#
#
#-----[ ???? ????? ]------------------------------------------
#
<tr>
<td class="row1">{L_HOT_THRESHOLD}</td>
<td class="row2"><input class="post" type="text" name="hot_threshold" size="3" maxlength="4" value="{HOT_TOPIC}" /></td>
</tr>
#
#-----[ ??? ???? ]------------------------------------------
#
<tr>
<td class="row1">{L_DAILY_POSTS}<br />{L_DAILY_POSTS_EXP}</td>
<td class="row2"><input class="post" type="text" size="4" maxlength="4" name="daily_posts" value="{DAILY_POSTS}" /></td>
</tr>
#
#-----[ ???? ? ???? ???? ??????? ]------------------------------------------
#
# ?????
عالم الخيال [www.khayalworld.com]
?????? ?????
???? ??? ??????? :
????? ??? ['user_level'] <= 0 ????? ???? ???????? ???????? ????? ?? ??????? .
??? ????? ?????? ?? 3 - ??????? ?? 2 - ?????? ?? 1
???? ???????? ?? ???????? ??????? .

???? ??? ??????? :
كود: تحديد الكل
if ($mode == 'newtopic' || $mode == 'reply' && $userdata['user_level'] <= 0)
{
//
// Daily Posts Control
//
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql
And post_time >= $current_time - 86400";
if ($result = $db->sql_query($sql))
{
$num_rows = $db->sql_numrows($result);
if ($num_rows >= $board_config['daily_posts'] && $board_config['daily_posts'] != 0)
{
message_die(GENERAL_MESSAGE, $lang['Daily_posts_limit']);
}
$num_rows = $db->sql_numrows();
}
}
??? ????? ?????? ?? 3 - ??????? ?? 2 - ?????? ?? 1
???? ???????? ?? ???????? ??????? .

- غريب العراق
- عضو جديد
- مشاركات: 88
- اشترك في: الأحد نوفمبر 30, 2003 7:13 pm
- اتصال:
الموجودون الآن
المتصفحون للمنتدى الآن: GoogleBot و 29 زائرًا