Register for your free account! | Forgot your password?

Go Back   elitepvpers > Metin2 > Metin2 PServer - Discussions / Questions
You last visited: Today at 17:58

  • Please register to post and access all features, it's quick, easy and FREE!

 

php Problem..Riesiege scheie >.<

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2009
Posts: 395
Received Thanks: 79
php Problem..Riesiege scheie >.<

So leute da Downi mir bisschn hinweis gegeben hat bei meinem php fehler hab ich geguckt aber nichts gefunden..war ja klar..
Ich finds nur selber pershnlich 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 wre....
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>ssA{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">&nbsp;</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>nJt</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>Cb</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>bKX</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="eX" 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ХnJ</font></b>
<br>
&nbsp;<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>&nbsp;</td>
                </tr>
                <tr align="left" valign="top">
                  <td>&nbsp;</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;">ss**</a>&nbsp;|&nbsp;<a href="http://shop.************/default.php" style="color:#FFFFFF;">ssӫ</a>&nbsp;|&nbsp;<a href="http://www.************/down.html" style="color:#FFFFFF;">{U</a>&nbsp;|&nbsp;<a href="http://shop.************/default.php" style="color:#FFFFFF;">R*</a>&nbsp;|&nbsp;<a href="http://shop.************/regist.php" style="color:#FFFFFF;">bU</a>&nbsp;|&nbsp;<a href="http://www.************/bbs" style="color:#FFFFFF;">ss׾</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">&nbsp;</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">&nbsp;</td>
        </tr>
    </table>
    </td>
    <td>&nbsp;</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"]."GwnAz٦<span style='color:black;'>&nbsp;&nbsp;".$_SESSION["cash"]."&nbsp;&nbsp;</span>ӫ&nbsp;&nbsp;<a href=\"Loginout.php\">hX</a></div><div><a href='../ChangePSD.php'>KX*ק</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>&nbsp;</td>
                </tr>
                <tr align="left" valign="top">
                  <td>&nbsp;</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;">ss**</a>&nbsp;|&nbsp;<a href="http://shop.************/test_/default.php" style="color:#FFFFFF;">ssӫ</a>&nbsp;|&nbsp;<a href="http://www.************/down.html" style="color:#FFFFFF;">{U</a>&nbsp;|&nbsp;<a href="http://shop.************/test_/default.php" style="color:#FFFFFF;">R*</a>&nbsp;|&nbsp;<a href="http://shop.************/regist.php" style="color:#FFFFFF;">bU</a>&nbsp;|&nbsp;<a href="http://www.************/bbs" style="color:#FFFFFF;">ss׾</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">&nbsp;</td>
            </tr>
</table></td>
      </tr>
      <tr>
        <td align="left"><h2>ӫ&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="enter/entermoney.php" style="color:#0000FF;">ӫR*ȤJf</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="IdݹϤ"><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"]?>AIʶR" >IʶR</a></td>
    </tr>
</table>






										<?
										}
										?>
</div>
</div>                                
<div style="clear:both;" align="center">&nbsp;&nbsp;
<a href="?classid=<?=$_GET["classid"]?>&page=0">Ĥ@*</a>&nbsp;&nbsp;
<a href="?classid=<?=$_GET["classid"]?>&page=<?=($page-1)?>">W@*</a>&nbsp;&nbsp;
<a href="?classid=<?=$_GET["classid"]?>&page=<?=($page+1)?>">U@*</a>&nbsp;&nbsp;
<a href="?classid=<?=$_GET["classid"]?>&page=<?=ceil($num/16)-1?>">̫@*</a>&nbsp;&nbsp;
</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">&nbsp;</td>
        </tr>
    </table></td>
    <td>&nbsp;</td>
  </tr>
</table>
<div id="footer">

</div>
</body>
</html>
<!---footer end --->



xXSeyXx is offline  
Old   #2

 
elite*gold: 0
Join Date: Sep 2009
Posts: 422
Received Thanks: 703
Ohweia.... .... ....

trenne mal html von php. schaue berall nach ob du ein php tag nicht geschlossen hast oder of du eine so { oder } klammer vergessen hast ... ich blick dort selbst nicht durch..
schau mal selbst nach ansonsten schaue ich mir das aus fun heute nacht noch an

mfg


.ǷrΘ is offline  
Thanks
1 User
Old   #3
 
elite*gold: 151
Join Date: Jan 2009
Posts: 919
Received Thanks: 163
2 Fragen

Ersten warum postest du das in Metin2 auch wenn es vllt ne Hp etc fr Metin2 wird hat es jetzt noch nichts damit zu tuhn

Zweitens schau mal ob du alles zu hast was aber nicht das Problem sein kann da dein letzter Befehl erst 5 Zeilen vorher war naja kenne mich damit noch nicht so gut aus aber naja
.ReX is online now  
Old   #4
 
elite*gold: 0
Join Date: Oct 2009
Posts: 395
Received Thanks: 79
Ich kann das ehrlich gesagt wirklich nicht gut deswegen wre nett wenn du es machen wrdest....Lucy_Girl
danke schonmal


xXSeyXx is offline  
Old   #5
 
elite*gold: 0
Join Date: Jan 2008
Posts: 3,027
Received Thanks: 4,504
schciksmir inerhalb von 3min,ich fixx es dir xD

EHM das geht doch O_O,wie wrs mit php 5.2.9?..xD
Daunenjacke is offline  
Thanks
1 User
Old   #6
 
elite*gold: 0
Join Date: Oct 2009
Posts: 395
Received Thanks: 79
das kann natrlich drann liegen weil ich fande es schon komisch das es bei anderen geht aber bei mir nicht <.<
ok probiere es mal aus^^
danke downi
werden dann mal sagen obs geklappt hat

nein hat leider nicht geklappt....
geht immernoch nicht.
aber habe einen kleinen fehler bei der installation gehabt das er die httpd.conf oder so nicht benutzen konnte oder so und das ich die manuelle bearbeiten soll >.<
xXSeyXx is offline  
Old   #7

 
elite*gold: 138
Join Date: Jan 2009
Posts: 2,216
Received Thanks: 6,009
Quote:
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\test_\default.php on line 456
Guckst du Zeile 456? oO


X0R0N is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
scheie!!!!!!!!!
ich war gerade hier im forum am arbeiten und habe einen guide erstellt. als ich nach ca. 3 1/2 stunden schon sehr, sehr viel geschafft habe strzte...
4 Replies - Technical Support



All times are GMT +1. The time now is 17:58.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.