Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] z IS


Rekomendowane odpowiedzi

Opublikowano

Witam , postanowiłem założyć swoj własny serwer , jak na razie priv ale mam problem z IS na stronie .

 

Przejdźmy do opisu :

 

1. Po zalogowaniu się do is , nie pojawia się on tylko takie komuniakty , których nie potrafie rozwiązać :

 

p35nqo.jpg

 

 

Podsyłam wam pik default.php -->

 

<?php
session_start();
require_once("../includes/config_is.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));
 }
}
?>
<STYLE type=text/css>
td img {display: block;}body,td,th {
 font-family: Tahoma, ËÎĚĺ;
 font-size: 12px;
 color: #000000;
}
body {
 margin-left: 0px;
 margin-top: 0px;
 margin-right: 0px;
 margin-bottom: 0px;
 background-image: url(../images/Page-BgTexture.jpg);
 background-repeat: repeat;
}
a:link {
 color: #A8031E;
 text-decoration: none;
}
a:visited {
 text-decoration: none;
 color: #A8031E;
}
a:hover {
 text-decoration: none;
 color: #A8031E;
}
a:active {
 text-decoration: none;
 color: #A8031E;
}
.style1 {
font-size: 12px;
}
table#itemshop {
border: 1px solid #CFCFCF;
border-collapse: collapse;
}
table#itemshop td {
border: 1px solid #CFCFCF;
padding: 5px;
background-color:#EFEFEF;
}
img {
border:0;
}
</style>
<!DOCTYPE html
 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<meta name="Description" content="Tu wpisz opis zawarto?i strony" />
<meta name="Keywords" content="Tu wpisz wyrazy kluczowe rozdzielone przecinkami" />
<title><?php
include ("../includes/nazwaserwera.php");?> :: ItemShop</title>
<link rel="shortcut icon" href="pliki/favicon0.bmp" type="image/x-icon" />
</head>
<body>

<Center>
<table id="calosc" border="0px" cellspacing="0px">
<tr>
<td>
<img src="enter/img/header.png" width="586" height="125">
</td>
</tr>
<tr>
<td>
								 <p class=wiadomosc><?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)){

}
?></p>
										 <table border="1">
				 <?php
																			 if(isset($_SESSION["UserID"]) && strlen($_SESSION["UserID"])>1){
																			 shop();
																			 }else{login();}
																			 function login(){
																			 ?>
Nie jestes zalogowany! <a href="index.php" class="link"><b>Zaloguj sie</b></a>, a jezeli nie masz konta w grze <A href="../reg.php"><b>Zarejestruj sie</b></a>
<?php
																		 }
																		 function shop(){
																		 echo "<font color=#000000><b>Witaj</font>  ".$_SESSION["UserID"]."!<br/><font color=#000000><b>Smocze Monety:</font>  ".$_SESSION["cash"]."  <Br/><a href=\"Loginout.php\" class=link>Wyloguj</a></p>";
																		 ?>

								 <?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/3))$page=ceil($num/3)-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*20).",20";
				 }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*20).",20";
				 }

			 $result=mysql_query($exec);
	 while($rs=mysql_fetch_array($result)){
				 $i+=1;
					 ?>

<table border="0" id="itemshop">
<tr>
<td width="80" rowspan="20" align="center">

<div><img src="<?=urldecode($rs["img"])?>" border="0" height="83" width="83" /></div></a>

</td>
<td class="header" width="30%"><div align="left"><?=$rs["gb2312name"]?></div></td>
<td class="header" width="300px"><div align="right"><b>Cena:</b> <?=$rs["prices"]?> Smoczych Monet</div></td>
</tr>
<tr>
<td colspan="2" align="right"> <a href="player.php?id=<?=$rs["vnum"]?>" title="Kup Teraz<?=$rs["prices"]?>Kup Teraz" ><img src="przycisk.png"></a></from></td>
</tr>
</table>  
																		 <?
																		 }
																		 ?>		
																		 <center> <a href="?classid=<?=$_GET["classid"]?>&page=<?=($page-1)?>" class="link">Poprzednia</a> |
<a href="?classid=<?=$_GET["classid"]?>&page=<?=($page+1)?>" class="link">Nastepna</a> </center><br/>					
<?php
}
?>

</td>
 </tr>
</table><br/>Copyright 2011 ? by <a href="http://Priv-Metin2.pl" class="link">Priv-Metin2</A> & <a href="http://smudzas-design.tk" class="link">Design</a>.
	 <Br/>
</td>
</tr>
</table>
</center>
</body>
</html>

 

 

 

 

A tutaj index.php :

 

<?php
session_start();
require_once("../includes/config_is.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));
    }
   }
?>
<STYLE type=text/css>
img {
border:0;
}
</style>
<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">
<head>
 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
 <meta name="Description" content="airo,mt2,metin2" />	   <meta name="Keywords" content="airo,mt2,metin2" />
 <title><?php
include ("../includes/nazwastrony.php");?> :: ItemShop</title>
</head>
<body>
<center></center>
<div align="center">
<img src="enter/img/header.png" width="586" height="125">
</div>
<?php
																			  if(isset($_SESSION["UserID"]) && strlen($_SESSION["UserID"])>1){
																			  shop();
																			  }else{login();}
																			  function login(){
																			  ?>
																																							  <form id="Login" name="Login" method="post" action="Loginok.php">
<div align="center">
<table>
<tr><td>
<font color="#A8031E" size="2"><b>Login</font>: </b><input name="userid" type="text"  id="userid2" size="20"  onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"/>
</td></tr>
<tr><td>
<font color="#A8031E" size="2"><b>Hasło</font>: </b><input name="password" type="password" autocomplete="off"  id="password2" size="20" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"/>
</td></tr>
<tr><td align="right">
<input type="submit" name="Submit" value="Zaloguj" class="button">
<input type="hidden" name="shop_login" value="login" /> <center>
<br><font color="#A8031E" size="2">Nie masz konta? <a href="../reg.php"><b>Zarejestruj sie</b></a> juz teraz!</font>
<br><font color="#A8031E" size="2"><a href="../index.php"><b>Wroc</b></a> do strony glownej</font></center>
</form>
</td></tr>
</table>
</div>

<?php
																		    }
																		    function shop(){
																		    echo "<p class=dane> <B>ID Konta:</b> ".$_SESSION["UserID"]."<br/><B>ILO?Ć pkt:</b><span style='color:black;'>  ".$_SESSION["cash"]."  </span><Br/><a href=\"Loginout.php\" class=link>Wyloguj</a></p>";
																		    ?>
																																																																														    <script type="text/javascript">
document.location='default.php';
</script>

								    <?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;
			  ?>
																		    <?
																		    }
																		    ?>  
																																						    <?
																		    }
																		    ?>						  
	    <Br/>
</body>
</html>

 

 

Dziękuję za odpowiedź .

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...