صفحة 1 من 1

??? ????? ????? ???????? ??? ??????? ?? ???? ????? ???

مرسل: الخميس إبريل 16, 2009 10:19 pm
بواسطة (M)
?????? ????? ????? ???? ???????

?????? ???? ??? ????? ????? ???????? ??????? : 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':
??? ???:

كود: تحديد الكل

      // 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
????: language/ar/mcp.php

???? ??:

كود: تحديد الكل

));

?>
??? ???:

كود: تحديد الكل

   'CHANGE_POST_TIME'         => '????? ????? ????????',
   'CHANGE_POST_TIME_FORMAT'   => '?????? ??? ????? ??????? ??????: MM-DD-YYYY HH:MM:SS',
????: styles/subsilver2/template/mcp_post.html


???? ??:

كود: تحديد الكل

      <!-- IF S_CAN_CHGPOSTER -->
??? ???:

كود: تحديد الكل

         <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>
????: styles/prosilver/template/mcp_post.html

???? ??:

كود: تحديد الكل

         <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]

??? ????? ????? ???????? ??? ??????? ?? ???? ????? ???

مرسل: الجمعة إبريل 17, 2009 5:45 am
بواسطة مهند قمرة
?????? ??????? ?? ???? ???? ???
????? ???? ????? ???? ????? ????? ???????
?? ?????? ???? ??????? ?? ??????
Untitled-3.gif
Untitled-3.gif (12.76 KiB) تمت المشاهدة 2725 مرةً