access < ADMIN) die("Access Denied: You are not Admin!"); $uid = $_POST['uid']; $topic = $_POST['topic']; $message = $_POST['message']; $time = time(); $query = "INSERT INTO ".TB_PREFIX."mdata (target, owner, topic, message, viewed, time) VALUES ('$uid', 1, '$topic', '$message', 0, '$time')"; mysql_query($query); header("Location: ../../../Admin/admin.php?p=Newmessage&uid=".$uid."&msg=ok"); ?>