Ich finds nur selber persöhnlich komisch das die meisten meinen hinweise zu geben aber keine richtigen antworten..
Ich mein es ist nicht falsch aber wenn ihr ne antwort haben wollt wollt ihr auch keine hinweise haben als ob es ein spielchen wäre....
Also hoffe ich mir hilft diesmal wirklich jemand.
Hier mein problem wenn ich die default.php vom Itemshop öffne:
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\test_\default.php on line 456
Line 456 ist die gaaanz letzte:
Code:
<?php
session_start();
require_once("../conn.php");
mysql_select_db("player");
?>
<?php
function DeCode($string,$operation,$key='')
{
$key=md5($key);
$key_length=strlen($key);
$string=$operation=='D'?base64_decode($string):substr(md5($string.$key),0,8).$string;
$string_length=strlen($string);
$rndkey=$box=array();
$result='';
for($i=0;$i<=255;$i++)
{
$rndkey[$i]=ord($key[$i%$key_length]);
$box[$i]=$i;
}
for($j=$i=0;$i<256;$i++)
{
$j=($j+$box[$i]+$rndkey[$i])%256;
$tmp=$box[$i];
$box[$i]=$box[$j];
$box[$j]=$tmp;
}
for($a=$j=$i=0;$i<$string_length;$i++)
{
$a=($a+1)%256;
$j=($j+$box[$a])%256;
$tmp=$box[$a];
$box[$a]=$box[$j];
$box[$j]=$tmp;
$result.=chr(ord($string[$i])^($box[($box[$a]+$box[$j])%256]));
}
if($operation=='D')
{
if(substr($result,0,8)==substr(md5(substr($result,8).$key),0,8))
{
return substr($result,8);
}
else
{
return'';
}
}
else
{
return str_replace('=','',base64_encode($result));
}
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<!---header start --->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>Às¾s¦A²{©x¤èºô*¶</title>
<link href="../metin2.css" rel="stylesheet" type="text/css">
</head>
<body onload="TimerID2=setTimeout('fLi2()',100)" onunload="clearTimeout(TimerID2)">
<script language="JAVASCRIPT">
colors2 = new Array(6);
colors2[0]="#0000FF";
colors2[1]="#0000FF";
colors2[2]="#665500";
colors2[3]="#997700";
colors2[4]="#3300FF";
colors2[5]="#3300FF";
var i=0;
function fLi2() {
line2.style.visibility = "visible";
if (i<6) {
line2.style.color = colors2[i];
i++;
timerID2 = setTimeout( "fLi2()", 16);
}
else {
i=0;
line2.style.visibility="hidden";
TimerID2=setTimeout("fLi2()",100);
}
}
</script>
<!-- Copyright ?2005. Spidersoft Ltd -->
<style>
A.applink:hover {border: 2px dotted #DCE6F4;padding:2px;background-color:#ffff00;color:green;text-decoration:none}
A.applink {border: 2px dotted #DCE6F4;padding:2px;color:#2F5BFF;background:transparent;text-decoration:none}
A.info {color:#2F5BFF;background:transparent;text-decoration:none}
A.info:hover {color:green;background:transparent;text-decoration:underline}
</style>
<!-- /Copyright ?2005. Spidersoft Ltd -->
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="bg_left"> </td>
<td width="1000" align="center" valign="top" class="bg_main">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="332" height="402" class="bg_header"> </td>
</tr>
<tr>
<td>
<!---header end --->
<!---left banner start --->
<table width="332" border="0" cellpadding="0" cellspacing="0"><tr>
<td width="180" align="right" valign="top"><!---left banner end ---></td>
<td width="152" align="center" valign="top">
<!---left menu start --->
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="left_key">
<tr>
<td align="right" valign="top" bgcolor="#FFFFFF">
<a href="default.php"><h3>°Ó©±¥Ø¿ý</h3></a>
<?php
$exec_class="select classid,classname from shop_class order by classid desc";
$result_class=mysql_query($exec_class);
while($rs_class=mysql_fetch_array($result_class)){
echo "<div><a href=\"?classid=".$rs_class["classid"]."&page=".$_GET['page']."\">".DeCode($rs_class["classname"],'D','daichao')."</a></div>";
}
?>
<h3>µn¤J¨t²Î</h3>
<table width="92%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #693E3E;background-color:#F8F2ED">
<?php
if(isset($_SESSION["UserID"]) && strlen($_SESSION["UserID"])>1){
shop();
}else{login();}
function login(){
?>
<form id="Login" name="Login" method="post" action="Loginok.php">
<tr>
<td>¹CÀ¸±b¸¹</td>
</tr>
<tr>
<td> <input name="userid" type="text" id="userid2" size="20" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" style="width:140px;" /></td>
</tr>
<tr>
<td>±b¸¹±K½X</td>
</tr>
<tr>
<td><input name="password" type="password" autocomplete="off" id="password2" size="20" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" style="width:140px;" /></td>
</tr>
<tr>
<td align="right"><input type="submit" name="Submit" value="°e¥X" class="button">
<input type="reset" name="Submit" value="*«¶ñ" class="button">
<input type="hidden" name="shop_login" value="login" /> </td>
</tr>
</form>
</table>
<b><font color="#FF0000">¡¯Áʪ««e½Ð¥ýµn¤J</font></b>
<br>
<br>
<h3>Áʪ«±Ð¾Ç</h3> </td>
</tr>
<tr>
<td><img src="http://www.elitepvpers.com/forum/images/left_menu2.gif" width="152" height="62"></td>
</tr>
</table>
<!---left menu end ---></td>
</tr>
</table></td>
</tr>
</table>
<!---srever mode start --->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="srever">
<tr>
<td align="right" valign="middle"><table width="200" border="0" cellspacing="0" cellpadding="3">
<tr align="left" valign="top">
<td> </td>
</tr>
<tr align="left" valign="top">
<td> </td>
</tr>
</table>
<!---srever mode end ---></td>
</tr>
</table>
</td>
<!---header menu start --->
<td align="left" valign="top" class="bg_main2">
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" class="bg_header_right">
<div style=" color:#FFFFFF;font-size:20px; margin-top:18px;"><a href="http://www.************/index.html" style="color:#FFFFFF;">Às¾s*º*¶</a> | <a href="http://shop.************/default.php" style="color:#FFFFFF;">Às¾s°Ó«°</a> | <a href="http://www.************/down.html" style="color:#FFFFFF;">µ{¦¡¤U¸ü</a> | <a href="http://shop.************/default.php" style="color:#FFFFFF;">ª÷¹ô¥R*È</a> | <a href="http://shop.************/regist.php" style="color:#FFFFFF;">±b¸¹µù¥U</a> | <a href="http://www.************/bbs" style="color:#FFFFFF;">Às¾s½×¾Â</a></div>
</td>
</tr>
<tr>
<td valign="bottom" class="bg_main1">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="130" colspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="130"><img src="http://www.elitepvpers.com/forum/images/header002.gif" border="0"></td>
<!---header menu end ---><!---top rennab start --->
<td><embed src="../images/600_110.swf" width="600" height="110" wmode="transparent"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="648" align="center" valign="bottom"><div class="roundcorner1"></div>
<div class="roundcorner2"></div>
<div class="roundcorner3"></div>
<div class="roundcorner4"></div>
<div class="roundcorner5"> </div></td>
<td width="20" align="center"></td>
</tr>
<tr align="left" valign="top">
<td colspan="2" id="main" width="635">
<!---top rennab end ---><!---main start --->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="main2">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" id="subtitle">
<tr>
<td align="left" valign="bottom"><img src="http://www.elitepvpers.com/forum/images/title/itemshop.gif" width="115" height="50"></td>
<td align="right" valign="bottom"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="left"><h2>°Ó«°</h2>
</td>
</tr>
</table>
Áʪ««e½Ðµn³°*
<br>
¥R*Ȫ÷¹ô½Ðµn³°*
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<!---main end --->
<!---footer start --->
</td>
</tr>
<tr><td></td>
<td align="left" valign="top" class="bg_main2" style="padding:0 0 10px 20px"> </td>
</tr>
</table>
</td>
<td> </td>
</tr>
</table>
</body>
</html>
<!---footer end --->
<table width="120" border="0" cellspacing="0" cellpadding="2" style="border: 1px solid #693E3E;margin:0px 15px 5px;background-color:#F8F2ED"><tr><td>
<?php
}
function shop(){
echo "<div align='center'>".$_SESSION["UserID"]."¡GÅwªïµn³°¡A±zÁÙ¦³<span style='color:black;'> ".$_SESSION["cash"]." </span>°Ó«°ª÷¹ô <a href=\"Loginout.php\">°h¥X</a></div><div><a href='../ChangePSD.php'>±K½X*×§ï</a></div><div>";
?>
</td></tr></table>
<h3>Áʪ«±Ð¾Ç</h3></td>
</tr>
<tr>
<td><img src="http://www.elitepvpers.com/forum/images/left_menu2.gif" width="152" height="62"></td>
</tr>
</table>
<!---left menu end ---></td>
</tr>
</table></td>
</tr>
</table>
<!---srever mode start --->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="srever">
<tr>
<td align="right" valign="middle"><table width="200" border="0" cellspacing="0" cellpadding="3">
<tr align="left" valign="top">
<td> </td>
</tr>
<tr align="left" valign="top">
<td> </td>
</tr>
</table>
<!---srever mode end ---></td>
</tr>
</table>
</td>
<!---header menu start --->
<td align="left" valign="top" class="bg_main2">
<table width="668" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="left" valign="top" class="bg_header_right"><div style=" color:#FFFFFF;font-size:20px; margin-top:18px;"><a href="http://www.************/index.html" style="color:#FFFFFF;">Às¾s*º*¶</a> | <a href="http://shop.************/test_/default.php" style="color:#FFFFFF;">Às¾s°Ó«°</a> | <a href="http://www.************/down.html" style="color:#FFFFFF;">µ{¦¡¤U¸ü</a> | <a href="http://shop.************/test_/default.php" style="color:#FFFFFF;">ª÷¹ô¥R*È</a> | <a href="http://shop.************/regist.php" style="color:#FFFFFF;">±b¸¹µù¥U</a> | <a href="http://www.************/bbs" style="color:#FFFFFF;">Às¾s½×¾Â</a></div>
</td>
</tr>
<tr>
<td valign="bottom" class="bg_main1">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td height="130" colspan="2" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="130"><img src="http://www.elitepvpers.com/forum/images/header002.gif" border="0"></td>
<!---header menu end ---><!---top rennab start --->
<td><embed src="../images/600_110.swf" width="600" height="110" wmode="transparent"></td>
</tr>
</table></td>
</tr>
<tr>
<td width="648" align="center" valign="bottom"><div class="roundcorner1"></div>
<div class="roundcorner2"></div>
<div class="roundcorner3"></div>
<div class="roundcorner4"></div>
<div class="roundcorner5"> </div></td>
<td width="20" align="center"></td>
</tr>
<tr align="left" valign="top">
<td colspan="2" id="main" width="635">
<!---top rennab end ---><!---main start --->
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="main2">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0" id="subtitle">
<tr>
<td align="left" valign="bottom"><img src="http://www.elitepvpers.com/forum/images/title/itemshop.gif" width="115" height="50"></td>
<td align="right" valign="bottom"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="left"><h2>°Ó«° <a href="enter/entermoney.php" style="color:#0000FF;">°Ó«°ª÷¹ô¥R*ȤJ¤f</a></h2></td>
<?php
$classid=$_GET["classid"];
if($classid<0 || $classid=="" || is_numeric($classid)==false){$classid=0;}
if($classid>0){
$exec="select count(*) from item_proto where vnum in (select vnum from item_proto_shop where classid=$classid)";
}else{
$exec="select count(*) from item_proto where vnum in (select vnum from item_proto_shop)";
}
mysql_query("set names gb2312 ");
mysql_query("set CHARACTER gb2312 ");
$result=mysql_query($exec);
$rs=mysql_fetch_array($result);
$num=$rs[0];
if(empty($_GET['page'])){
$page=0;
}else{
$page=$_GET['page'];
if($page<0)$page=0;
if($page>=ceil($num/16))$page=ceil($num/16)-1;
}
if($classid>0){
$exec="select item_proto.vnum,item_proto.gb2312name,item_proto_shop.img,item_proto_shop.prices,item_proto_shop.content from item_proto,item_proto_shop where item_proto.vnum =item_proto_shop.vnum and item_proto_shop.classid=$classid order by item_proto.vnum desc limit ".($page*16).",16";
}else{
$exec="select item_proto.vnum,item_proto.gb2312name,item_proto_shop.img,item_proto_shop.prices,item_proto_shop.content from item_proto,item_proto_shop where item_proto.vnum =item_proto_shop.vnum order by item_proto.vnum desc limit ".($page*16).",16";
}
$result=mysql_query($exec);
while($rs=mysql_fetch_array($result)){
$i+=1;
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0" id="itemshop_table">
<tr>
<td width="85" rowspan="3" align="center">
<a href="http://www.elitepvpers.com/forum/admin/<?=urldecode($rs["img"])?>" target="_blank" title="ÂIÀ»¬d¬Ý¹Ï¤ù"><div style="margin:0px 10px 0px 10px;"><img src="http://www.elitepvpers.com/forum/admin/<?=urldecode($rs["img"])?>" border="0" height="70" width="70" /></div></a>
</td>
<td class="header" width="30%"><div align="left"><?=$rs["gb2312name"]?></div></td>
<td class="header" width="65%"><div align="left">»ù®æ:<?=$rs["prices"]?>ª÷¹ô</div></td>
</tr>
<tr>
<td height="46" colspan="2"><?=DeCode($rs["content"],'D','daichao');?></td>
</tr>
<tr>
<td colspan="2" align="right"><a href="player.php?id=<?=$rs["vnum"]?>" title="ɲ®æ¡G<?=$rs["prices"]?>¡AÂIÀ»ÁʶR" >ÂIÀ»ÁʶR</a></td>
</tr>
</table>
<?
}
?>
</div>
</div>
<div style="clear:both;" align="center">
<a href="?classid=<?=$_GET["classid"]?>&page=0">²Ä¤@*¶</a>
<a href="?classid=<?=$_GET["classid"]?>&page=<?=($page-1)?>">¤W¤@*¶</a>
<a href="?classid=<?=$_GET["classid"]?>&page=<?=($page+1)?>">¤U¤@*¶</a>
<a href="?classid=<?=$_GET["classid"]?>&page=<?=ceil($num/16)-1?>">³Ì«á¤@*¶</a>
</div>
<?php
}
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
<!---main end --->
<!---footer start --->
</td>
</tr>
<tr><td></td><td align="left" valign="top" class="bg_main2" style="padding:0 0 10px 20px"> </td>
</tr>
</table></td>
<td> </td>
</tr>
</table>
<div id="footer">
</div>
</body>
</html>
<!---footer end --->






