<?php $basedir = dirname(__FILE__) . "../../"; include $basedir . '/include/actionHeader.php'; if ($_GET['type'] == 'stared') { $msg_id = $_GET['msg']; if ($_GET['action'] == 'not_a_stared') { $affected = inbox::update_msg_status('starred', $msg_id, 1); } if ($_GET['action'] == 'all_ready_stared') { $affected = inbox::update_msg_status('starred', $msg_id, 0); } $res_inbox = inbox::select_msg_by_id($msg_id); while ($mesg = mysql_fetch_assoc($res_inbox)) { $on_which_reply_did = inbox::select_msg_by_id($mesg['replied_on_id']); $checkacepteddeniedPost_res = user::checkRentStatus($mesg['reservation_id']); $checkRentStatusOfUSer = mysql_fetch_assoc($checkacepteddeniedPost_res); $frnd_user = user::user_profile($mesg['sender_id']); //print_r($frnd_user); ?> <div class="picdiv"> <?php if (!empty($frnd_user['user_picture'])) { ?> <img src="<?php echo $URL_SITE; ?> /classes/show_image.php?filename=../images/profile/<?php echo $frnd_user['user_picture'];