'; switch ($admin_message['admin_type']) { case 0: echo $admin_message['admin_text']; break; case 1: echo 'Your '.($admin_message['is_reply'] == 0 ? 'post' : 'reply').' was identified as spam, so it was removed. Continued violations may result in restrictions on your use of Cedar.'; break; case 2: echo 'Your '.($admin_message['is_reply'] == 0 ? 'post' : 'reply').' contained sexually explicit content, so it was removed. Continued violations may result in restrictions on your use of Cedar.'; break; } echo '
Messages Exchanged with Cedar Administration
';
$get_admin_messages = $dbc->prepare('SELECT * FROM admin_messages WHERE admin_to = ? ORDER BY admin_date DESC LIMIT 50');
$get_admin_messages->bind_param('i', $_SESSION['user_id']);
$get_admin_messages->execute();
$admin_messages_result = $get_admin_messages->get_result();
while ($admin_message = $admin_messages_result->fetch_array()) {
echo '
';
}
$dbc->query('UPDATE admin_messages SET admin_read = 1 WHERE admin_to = '.$_SESSION['user_id'].'');
'.humanTiming(strtotime($admin_message['admin_date'])).'