header("location:success.php?act=login&rst=2"); } else { //登陆成功 $_SESSION["userMsg"] = $userInfo; header("location:success.php?act=login&rst=1"); } } else { //验证码输入错误 header("location:success.php?act=login&rst=3"); } } $newsTypes = NewsTypes::getNewsTypes(); //所有分类 $hotNews = NewsArticles::getHotNews(); //热点要闻 $newsCount = NewsArticles::getNewsCount(); //新闻总数 ?> <html> <head> <title>天天新闻网</title> <meta http-equiv="content-type" content="text/html;charset=utf-8"> <link href="css/news.css" type="text/css" rel="stylesheet" /> <script type="text/javascript"> function changeImg() { document.getElementById("myImg").src = "image.php?id="+new Date(); } function checkLogin() { if(document.frm.userName.value == "")