??? ????? ????? ???????? ??? ??????? ?? ???? ????? ???
مرسل: الخميس إبريل 16, 2009 10:19 pm
?????? ????? ????? ???? ???????
?????? ???? ??? ????? ????? ???????? ??????? : 0.0.2
http://www.samabb.com/community/viewtopic.php?f=6&t=35
??? ?? ???? ???? ????? ???????? ??? ????? ??????? ?????? ???? ???? ??
??????? ?? ????? ?????? ??????
????? ???? ????? ?? ?????? ???????? ???? ????? :
????? ????? ????????
?????? ??? ????? ??????? ??????: MM-DD-YYYY HH:MM:SS
???? ????? ??????? ????? : 2009-30-04 00:00:06
?? ???? ?????? : 04-30-2009 00:00:06
?? ???? : 2009-30-04 06:00:00
?? : 04-30-2009 06:00:00
?? : ??????? ??? ???? ?????
???? ??? ??????? ??? ?????? ??? ???? ????? ???? ????? : 2009-04-30 ???? 30-04-2009
???? ???? ????? : 2009-4-30 ??????: 30-4-2009
?? ??? ????? ???????? ?? ???? ??? ?? ???? ??????? ???? ???? ??? ??? ?????? ???????
???? ???????? ?????? ??? : 1999 ?? 1998 ????? ????? ????? ????? ?????
???? ??? ???? ???? ???? ??? ?????? ??? ??? : 2008
????? ????? ?????? ??????? ????? ?? ??? ????? , ??? ?? ??? ???? ???? ??? ??????? ????? ?? ?????
?? ???? ????? ?? ??? ????? :
??? ????? ??? ???? ??????? ?? ?????? ????? ???? ???? ???? ????? ???????? ???
????? ????????[/b]
?????? ???? ??? ????? ????? ???????? ??????? : 0.0.2
http://www.samabb.com/community/viewtopic.php?f=6&t=35
??? ??????? ????? ??? ??????? ?? ???? ?????????? ?????: ????? ????? ????????
??? ?????:????? ????? ?? ??????? ???????? ???? ?????? ????? ????? ????????.
????? ?????: 0.0.2
????? ?????: A_Jelly_Doughnut
???? ???????: http://www.messageboardlab.com
???? ?????: samaBB
????? ???????:????? ???????:كود: تحديد الكل
includes/mcp/mcp_post.php language/ar/mcp.php styles/subsilver2/template/mcp_post.html styles/prosilver/template/mcp_post.html
????? ???????:كود: تحديد الكل
?? ???? ????? ???????.
????: includes/mcp/mcp_post.php
???? ??:??? ???:كود: تحديد الكل
case 'chgposter':
????: language/ar/mcp.phpكود: تحديد الكل
// MOD: change post time case 'chgposttime': if (!$auth->acl_get('m_chgposter', $post_info['forum_id'])) { trigger_error('NOT_AUTHORISED'); } $match = array(); $newtime = request_var('new_time', ''); preg_match('/\b([0-9]{2})-([0-9]{2})-([0-9]{4}) ([0-9]{2}):([0-9]{2}):([0-9]{2})\b/', $newtime, $match); array_shift($match); // we don't want $match[0], so lop it off, and don't complain about undefined $match[0] list($month, $day, $year, $hour, $minute, $second) = $match; // Time is given in moderator's local time. We must have GMT. // we *subtract* the timezone offsets given by the $user object $hour = $hour - ($user->timezone + $user->dst); $update_time = mktime($hour, $minute, $second, $month, $day, $year); // this could be a complicated dance. Yay for the sync function ! $sql = 'UPDATE ' . POSTS_TABLE . ' SET post_time = ' . (int) $update_time . ' WHERE post_id = ' . (int) $post_id; $db->sql_query($sql); sync('topic', 'topic_id', $post_info['topic_id'], true); sync('forum', 'forum_id', $post_info['forum_id'], true); break; // END MOD
???? ??:
??? ???:كود: تحديد الكل
)); ?>
????: styles/subsilver2/template/mcp_post.htmlكود: تحديد الكل
'CHANGE_POST_TIME' => '????? ????? ????????', 'CHANGE_POST_TIME_FORMAT' => '?????? ??? ????? ??????? ??????: MM-DD-YYYY HH:MM:SS',
???? ??:??? ???:كود: تحديد الكل
<!-- IF S_CAN_CHGPOSTER -->
????: styles/prosilver/template/mcp_post.htmlكود: تحديد الكل
<tr> <form method="post" name="mcp_chgposttime" action="{U_POST_ACTION}"> <td class="row1" valign="top"><b class="gen">{L_CHANGE_POST_TIME}</b><br /><span class="gensmall">{L_CHANGE_POST_TIME_FORMAT}</span></td> <td class="row2"><input class="post" type="text" name="new_time" value="" /> <input class="btnmain" type="submit" value="{L_SUBMIT}" name="action[chgposttime]" /></td> </form> </tr>
???? ??:??? ???:كود: تحديد الكل
<form method="post" id="mcp_chgposter" action="{U_POST_ACTION}">
?????كود: تحديد الكل
<fieldset> <dl> <dt><label>{L_CHANGE_POST_TIME}:</label></dt> <dd style="margin-top:3px;"> <input class="inputbox autowidth" type="text" name="new_time" value="" /> <input type="submit" class="button2" name="action[chgposttime]" value="{L_SUBMIT}" /> <br /> <span>{L_CHANGE_POST_TIME_FORMAT}</span> </dd> </dl> </fieldset>
??? ?? ???? ???? ????? ???????? ??? ????? ??????? ?????? ???? ???? ??
??????? ?? ????? ?????? ??????
????? ???? ????? ?? ?????? ???????? ???? ????? :
????? ????? ????????
?????? ??? ????? ??????? ??????: MM-DD-YYYY HH:MM:SS
???? ????? ??????? ????? : 2009-30-04 00:00:06
?? ???? ?????? : 04-30-2009 00:00:06
?? ???? : 2009-30-04 06:00:00
?? : 04-30-2009 06:00:00
?? : ??????? ??? ???? ?????
???? ??? ??????? ??? ?????? ??? ???? ????? ???? ????? : 2009-04-30 ???? 30-04-2009
???? ???? ????? : 2009-4-30 ??????: 30-4-2009
?? ??? ????? ???????? ?? ???? ??? ?? ???? ??????? ???? ???? ??? ??? ?????? ???????
???? ???????? ?????? ??? : 1999 ?? 1998 ????? ????? ????? ????? ?????
???? ??? ???? ???? ???? ??? ?????? ??? ??? : 2008

????? ????? ?????? ??????? ????? ?? ??? ????? , ??? ?? ??? ???? ???? ??? ??????? ????? ?? ?????
?? ???? ????? ?? ??? ????? :
كود: تحديد الكل
preg_match('/\b([0-9]{2})-([0-9]{2})-([0-9]{4}) ([0-9]{2}):([0-9]{2}):([0-9]{2})\b/', $newtime, $match);
array_shift($match); // we don't want $match[0], so lop it off, and don't complain about undefined $match[0]
????? ????????[/b]