示例#1
0
文件: User.class.php 项目: Klym/flame
 function escape()
 {
     unset($_SESSION['email']);
     $url = explode("?", $_SERVER['HTTP_REFERER']);
     if ($url[0] == "http://" . $_SERVER['HTTP_HOST'] . "/page.php" || $url[0] == "http://" . $_SERVER['HTTP_HOST'] . "/edit.php" || $url[0] == "http://" . $_SERVER['HTTP_HOST'] . "/friends.php" || $url[0] == "http://" . $_SERVER['HTTP_HOST'] . "/im.php") {
         $url = "/";
     } else {
         $url = $_SERVER['HTTP_REFERER'];
     }
     $online = new Online($this->id, null, $this->db);
     $online->del();
     die("<html><head>\n\t\t<meta http-equiv='refresh' content='0; url=" . $url . "'>\n\t\t</head>\n\t\t</html>");
 }