Can't view a message through php? -
okay, have php code mail.php, if current user id doesn't match or id, show error message, tested out , use can view message, here's code :
if (!$mail['to_id'] == $account['id'] && !$mail['from_id'] == $account['id']) { $system->message(l_error, l_mail_error_permission, './?area=forum&s=mail', l_continue); }
but when added != instead of ==, shows error message everyone, including people sent message. know how can fix problems?
use code instead.
if ($mail['to_id'] != $account['id'] && $mail['from_id'] != $account['id']) { $system->message(l_error, l_mail_error_permission, './?area=forum&s=mail', l_continue); }
Comments
Post a Comment