21-01-2008, 04:40
رقم المشاركة :
1 (permalink )
هاك الأطلاع على الرسائل الخاصة
السلام عليكم ورحمة الله وبركاتة وظيفة الهاك : الأطلاع على الرسائل الخاصة : يعمل على النسخ : 2.2 + 2.3 مبرمج الهاك : Dean & Logan طريقة تركيب الهاك
أولاً قم برفع الملفات :
/mod_install/pmlogs.xml /skin_acp/IPB2_Standard/images/attachicon.gif /sources/components_acp/pmlogs.php ثم .. أفتح ملف sources\lib\func_msg.php : أبحث عن : اقتباس
//-----------------------------------------
// loop....
//-----------------------------------------
أضف فوقة : اقتباس
//-----------------------------------------
// D22-PM Logs
//-----------------------------------------
$pmtids = array();
$this->ipsclass->DB->do_insert('pm_logs', array('pm_mtxt_id' => $msg_id, 'pm_subject' => $this->msg_title, 'pm_content' => $this->ipsclass->remove_tags($this->msg_post), 'pm_date' => time(), 'pm_from_id' => $this->from_member['id'], 'pm_to_id' => $this->send_to_member['id'], 'pm_cc_ttl' => count($cc_array), 'pm_cc_ids' => (count($cc_array)) ? implode(',', array_keys($cc_array)) : ''));
$pmlogid = $this->ipsclass->DB->get_insert_id();
أبحث عن : اقتباس
//-----------------------------------------
// Update profile
//-----------------------------------------
أضف فوقة : اقتباس
//-----------------------------------------
// D22-PM Logs
//-----------------------------------------
$pmtids[] = $mt_id;
أبحث عن : اقتباس
//-----------------------------------------
// Add the data to the current members DB if we are
// adding it to our "sent items" folder
//-----------------------------------------
أضف فوقة : اقتباس
//-----------------------------------------
// D22-PM Logs
//-----------------------------------------
$this->ipsclass->DB->do_update('pm_logs', array('pm_msg_ids' => implode(',', $pmtids)), 'pm_id='.$pmlogid);
أبحث عن : اقتباس
$sent_count = $this->_get_dir_count( $this->from_member['vdirs'], 'sent' );
$this->rebuild_dir_count( $this->from_member['id'],
"",
'sent',
$sent_count + 1,
'save',
"msg_total=msg_total+1"
);
$this->ipsclass->DB->do_insert( 'message_topics', array(
'mt_msg_id' => $msg_id,
'mt_date' => time(),
'mt_title' => $this->msg_title,
'mt_from_id' => $this->from_member['id'],
'mt_to_id' => $this->send_to_member['id'],
'mt_vid_folder' => 'sent',
'mt_tracking' => 0,
'mt_addtosent' => 0,
'mt_hasattach' => intval($no_attachments),
'mt_owner_id' => $this->from_member['id'],
'mt_hide_cc' => $this->hide_cc,
) );
أضف تحته : اقتباس
//-----------------------------------------
// D22-PM Logs
//-----------------------------------------
$this->ipsclass->DB->do_update('pm_logs', array('pm_sent_copy' => $this->ipsclass->DB->get_insert_id()), 'pm_id='.$pmlogid);
ثم قم بتنصيب الهاك عبر المود أنستول
الهاك مع الشرح فى المرفقات