<?xml version="1.0" encoding="iso-8859-1"?>
<product productid="Last 100 messages" active="1">
    <title>أخر 100 رساله خاصة في لوحة التحكم</title>
    <description> هاك كشف اخر 100 رساله للعضو </description>
    <version>1.0</version>
    <url>http://www.glb07.com/vb</url>
    <versioncheckurl />
    <dependencies>
    </dependencies>
    <codes>
    </codes>
    <templates>
    </templates>
    <plugins>
        <plugin active="1" executionorder="5">
            <title>آخر عشرة رسائل خاصة في لوحة التحكم</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:10:"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>
