Hey there, just like before with the gallery bugs here is a quick fix for mail. First off, in any unfixed version of dolphin and probably AE you will be able to read anyones mail by simply changing the url to the mail id.
Such as, if MY message is:
http://website.com/messages_outbox.php?message=20
or
http://website.com/messages_inbox.php?message=20
All you have to do is change the '20' to a different message number and viola you get to read that message. A rough fix for this is simple enough. One line of code.
In messages_outbox.php look for:
And change the end of it to:Code:function PageCompPageMainCode() { global $site; $messageID = ((int)$_GET['message']); $memberID = ((int)$_COOKIE['memberID']); $sender_sql = "SELECT `Recipient` FROM `Messages` WHERE `Sender` = '$memberID' AND `ID` = '$messageID'"; $sender_arr = db_arr( $sender_sql ); $senderID = $sender_arr['Recipient']; $message_sql= "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Recipient = p.ID WHERE m.`ID` = '$messageID'";
This problem also occurs in messages_inbox.php so open that up and look for:Code:$message_sql= "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Recipient = p.ID WHERE m.`ID` = '$messageID' AND `Sender` = '$memberID'";
And change the end of it to:Code:function PageCompPageMainCode() { global $site; $messageID = (int)$_GET['message']; $memberID = (int)$_COOKIE['memberID']; $sender_sql = "SELECT `Sender` FROM `Messages` WHERE `Recipient` = '$memberID' AND `ID` = '$messageID'"; $sender_arr = db_arr( $sender_sql ); $senderID = (int)$sender_arr['Sender']; $message_sql= "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Sender = p.ID WHERE m.`ID` = '$messageID'";
That doesn't slap their hands for trying or anything but will at least give them a blank message versus being able to read the message. This should be a nice simplistic fix for you all.Code:$message_sql= "SELECT m.`Text`, m.`Subject`, DATE_FORMAT( m.`Date`, '%Y-%m-%d' ) AS `Date`, p.Status FROM `Messages` AS m LEFT JOIN Profiles AS p ON m.Recipient = p.ID WHERE m.`ID` = '$messageID' AND `Recipient` = '$memberID'";
-Lodlock


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks