<?xml version="1.0" encoding="ISO-8859-1"?>

<product productid="latest10pm" active="1">
	<title>هاك كشف اخر 10 رسائل مرسلة بين الاعضاء</title>
	<description>يقوم الهاك بعرض أخر 10 رسائل مرسلة بين الاعضاء بداخل لوحة تحكم الادمن )</description>
	<version>1.20</version>
	<url />
	<versioncheckurl />
	<dependencies>
	</dependencies>
	<codes>
	</codes>
	<templates>
	</templates>
	<plugins>
		<plugin active="1" executionorder="5">
			<title>Latest 100 PM Admin Index</title>
			<hookname>admin_index_main1</hookname>
			<phpcode><![CDATA[print_table_start();
 print_table_header("أخر عشرة رسائل مرسلة",3);

echo "<tr valign=\"top\"><td class=\"thead\">من - الى</td><td class=\"thead\" >العنوان</td></tr>";

    $resultpm = $db->query_read("SELECT * FROM " . TABLE_PREFIX . "pmtext ORDER BY dateline DESC LIMIT 0, 100");

require_once(DIR . '/includes/class_bbcode.php');
    $bbcode_parser =& new vB_BbCodeParser($vbulletin, fetch_tag_list());

$aaa = 1;
while ($pmxread = $db->fetch_array($resultpm))
{

$yazi = $bbcode_parser->parse($pmxread['message'], 0, 0,1);

// 	a:1:{s:2:"cc";a:1:{i:12503;s:100:"contrast61";}}

$users = unserialize($pmxread['touserarray']);
// $kim = $pmxread['touserarray'];

    foreach($users AS $key => $item)
    {
        if (is_array($item))
        {
            foreach($item AS $subkey => $subitem)
            {
                $username = $subitem;
                $userid = $subkey;
            }
        }
        else
        {
            $username = $item;
            $userid = $key;
        }
    }
echo "<tr><td class=\"alt$aaa\" nowrap=\"nowrap\" width=\"150\">".$pmxread['fromusername']." => ".$username."</td><td class=\"alt$aaa\"><b>".$pmxread['title']."</b><br />$yazi</td></tr>";
$aaa++;
if ($aaa>2)
{
$aaa = 1;
}
}

print_table_footer(2, '', '', 0);]]></phpcode>
		</plugin>
	</plugins>
	<phrases>
	</phrases>
	<options>
	</options>
	<helptopics>
	</helptopics>
	<cronentries>
	</cronentries>
	<faqentries>
	</faqentries>
</product>
