|
|
|
ช่วยดูโค้ดให้ทีค่ะ ไม่รู้จะแก้ยังไงแล้ว ตั้งลิ้งให้มันไปหน้าหนึ่งแต่มันกลับไปโผล่หน้าที่ไม่ได้ตั้งตลอดเลยแก้ยังไงดีคะ |
|
|
|
|
|
|
|
<?php require_once('../Connections/moon.php'); ?>
<?php
// *** Validate request to login to this site.
if (!isset($_SESSION)) {
session_start();
}
$loginFormAction = $_SERVER['PHP_SELF'];
if (isset($_GET['accesscheck'])) {
$_SESSION['PrevUrl'] = $_GET['accesscheck'];
}
if (isset($_POST['user1'])) {
$loginUsername=$_POST['user1'];
$password=$_POST['pass1'];
$MM_fldUserAuthorization = "";
$MM_redirectLoginSuccess = "login.php";
$MM_redirectLoginFailed = "register.php";
$MM_redirecttoReferrer = true;
mysql_select_db($database_moon, $moon);
$LoginRS__query=sprintf("SELECT user, password FROM masonmember WHERE user='%s' AND password='%s'",
get_magic_quotes_gpc() ? $loginUsername : addslashes($loginUsername), get_magic_quotes_gpc() ? $password : addslashes($password));
$LoginRS = mysql_query($LoginRS__query, $moon) or die(mysql_error());
$loginFoundUser = mysql_num_rows($LoginRS);
if ($loginFoundUser) {
$loginStrGroup = "";
//declare two session variables and assign them
$_SESSION['MM_Username'] = $loginUsername;
$_SESSION['MM_UserGroup'] = $loginStrGroup;
if (isset($_SESSION['PrevUrl']) && true) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
header("Location: " . $MM_redirectLoginSuccess );
}
else {
header("Location: ". $MM_redirectLoginFailed );
}
}
?>
<html>
<head>
<title>home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script>
<style type="text/css">
<!--
.style1 {font-size: smaller}
#Layer2 { position:absolute;
left:166px;
top:212px;
width:89px;
height:30px;
z-index:1;
}
.style11 {color: #00CC66; font-family: "Microsoft Sans Serif", "MS Serif", Tahoma; font-size: 80%; }
.style12 {color: #00CC66}
.style3 {color: #99CC66;
font-family: "Microsoft Sans Serif", "MS Serif", Tahoma;
font-size: 80%;
}
-->
</style>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages('../images/home.jpg','Menu/home.jpg','Menu/profile.jpg','Menu/gallery.jpg','Menu/download.jpg','Menu/webboard.jpg','Menu/guestbook.jpg')">
<div align="center">
<!-- ImageReady Slices (home.psd) -->
<table id="Table_01" width="901" height="721" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" rowspan="2">
<img src="images/home_01.jpg" width="184" height="213" alt=""></td>
<td colspan="2">
<img src="images/home_02.jpg" width="166" height="135" alt=""></td>
<td><div align="center"> <script src="http://www.clocklink.com/embed.js"></script>
<script type="text/javascript" language="JavaScript">obj=new Object;obj.clockfile="0031-black.swf";obj.TimeZone="ICT";obj.width=130;obj.height=130;obj.wmode="transparent";showClock(obj);</script></div></td>
<td colspan="2">
<img src="images/home_04.jpg" width="166" height="135" alt=""></td>
<td colspan="2" rowspan="2">
<img src="images/home_05.jpg" width="172" height="213" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="135" alt=""></td>
</tr>
<tr>
<td colspan="5"><img src="home/head.jpg" width="546" height="78"></td>
<td>
<img src="images/spacer.gif" width="1" height="78" alt=""></td>
</tr>
<tr>
<td rowspan="3" valign="top"><a href="home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','../images/home.jpg',1)"></a><a href="home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','Menu/home.jpg',1)"></a><a href="masonhome.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('home','','Menu/home.jpg',1)"><img src="Menu/moonbrothers2.jpg" alt="Home" name="home" width="86" height="162" border="0"></a></td>
<td colspan="7" rowspan="2"><div id="Layer2"><img src="home/log.jpg" width="100" height="32"></div>
<form action="<?php echo $loginFormAction; ?>" method="POST" name="f1" id="f1">
<table width="100%" border="0">
<tr>
<td width="13%"><div align="right">user :</div></td>
<td width="23%"><label>
<input name="user1" type="text" id="user1">
</label></td>
<td width="12%">password : </td>
<td width="23%"><label>
<input name="pass1" type="text" id="pass1">
</label></td>
<td width="12%"><label>
<input type="image" name="imageField" src="home/lo.jpg">
</label></td>
<td width="17%"> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</form>
</td>
<td rowspan="3" valign="top"><a href="download.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('download','','Menu/download.jpg',1)"><img src="Menu/masonmoon22.jpg" alt="Download" name="download" width="86" height="162" border="0"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="81" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="41" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="3"><div align="center"><img src="home/wmts1.jpg" width="103" height="147"></div></td>
<td colspan="3" rowspan="7" valign="top"><div align="center">
<p>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="262" height="231" id="FLVPlayer">
<param name="movie" value="FLVPlayer_Progressive.swf" />
<param name="salign" value="lt" />
<param name="quality" value="high" />
<param name="scale" value="noscale" />
<param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=video/fav&autoPlay=true&autoRewind=true" />
<embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Halo_Skin_3&streamName=video/fav&autoPlay=true&autoRewind=true" quality="high" scale="noscale" width="262" height="231" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</p>
<p align="left" class="style3">YuI</p>
<p> </p>
</div></td>
<td colspan="2" rowspan="3"> </td>
<td>
<img src="images/spacer.gif" width="1" height="40" alt=""></td>
</tr>
<tr>
<td rowspan="3" valign="top"><a href="home.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('profile','','Menu/profile.jpg',1)"><img src="Menu/masonmoon44.jpg" alt="Profile" name="profile" width="86" height="162" border="0"></a></td>
<td rowspan="3" valign="top"><a href="http://moonhome.thai-forum.net/" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('webboard','','Menu/webboard.jpg',1)"><img src="Menu/moonbrothers10.jpg" alt="Webboard" name="webboard" width="86" height="162" border="0"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="81" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="56" alt=""></td>
</tr>
<tr>
<td colspan="2" rowspan="4">
<img src="images/home_19.jpg" width="173" height="178" alt=""></td>
<td colspan="2" rowspan="3">
<img src="images/home_20.jpg" width="173" height="177" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="25" alt=""></td>
</tr>
<tr>
<td rowspan="4" valign="top"><a href="gallery.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('gallery','','Menu/gallery.jpg',1)"><img src="Menu/masonmoon9.jpg" alt="Gallery" name="gallery" width="86" height="162" border="0"></a></td>
<td rowspan="4" valign="top"><a href="http://users.smartgb.com/g/g.php?a=s&i=g18-40445-34" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('guestbook','','Menu/guestbook.jpg',1)"><img src="Menu/moonbrothers20.jpg" alt="Guestbook" name="guestbook" width="86" height="162" border="0"></a></td>
<td>
<img src="images/spacer.gif" width="1" height="81" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="1" height="71" alt=""></td>
</tr>
<tr>
<td colspan="2">
<img src="images/home_25.jpg" width="173" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="1" alt=""></td>
</tr>
<tr>
<td colspan="7" rowspan="2"><div align="center">
<p> </p>
<p class="style1">©2010 About.com, a part of Moon Home .</p>
<p class="style1">All rights reserved.</p>
</div></td>
<td>
<img src="images/spacer.gif" width="1" height="9" alt=""></td>
</tr>
<tr>
<td>
<img src="images/home_27.jpg" width="86" height="21" alt=""></td>
<td>
<img src="images/home_28.jpg" width="86" height="21" alt=""></td>
<td>
<img src="images/spacer.gif" width="1" height="21" alt=""></td>
</tr>
<tr>
<td>
<img src="images/spacer.gif" width="86" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="98" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="75" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="91" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="212" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="79" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="87" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="86" height="1" alt=""></td>
<td>
<img src="images/spacer.gif" width="86" height="1" alt=""></td>
<td></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</div>
</body>
</html>
Tag : - - - -
|
|
|
|
|
|
Date :
2010-03-20 04:48:37 |
By :
ik_cute |
View :
823 |
Reply :
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
มันไปหน้าไหนหรอ
|
|
|
|
|
Date :
2010-03-21 00:53:13 |
By :
onedan |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
แล้วต้องการให้มันไปหน้าไหนอ่ะ ลอกมาทั้งแผ่นเลย น๊าจะตัดเฉพาะส่วน นะ -
|
|
|
|
|
Date :
2010-03-24 16:28:45 |
By :
rakket |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|