Skocz do zawartości

Dołącz do społecznoś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

Item Shop Nie Daje Itemy

Rekomendowane odpowiedzi

Opublikowano

Witam mam problem z is bo nie daje itemów do dozorcy co robić

 

pliki Is

 

 

 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>






 <meta content="text/html; charset=utf-8;charset=utf-8" http-equiv="Content-Type">









 <title>Metin 2 - Die Grotte der Verbannung</title>
 <link href="include/reset000.css" rel="stylesheet" type="text/css" media="all">






 <link rel="stylesheet" type="text/css" href="include/main0000.css">






 <link rel="stylesheet" type="text/css" href="include/reset000.css">






 <link rel="stylesheet" type="text/css" href="include/lytebox0.css">






 <link rel="alternate" type="application/rss+xml" title="RSS" href="http://grotte.metin2.de/main/rss">
<!--[if gte IE 8]>
	<style>
	.content_background {background-position:1px 0;width:707px;}
	.footer_background {background-position:0 0;}
	</style>
<![endif]--><!--[if lte IE 7]>
	<link href="http://grotte.metin2.de/css/style_ie.css" type="text/css" rel="stylesheet"/>
<![endif]--><!--[if lt IE 7]>
	<link href="http://grotte.metin2.de/css/style_ie6.css" type="text/css" rel="stylesheet"/>
<![endif]-->










 <script src="include/lytebox0.js" type="text/javascript"></script>



 <script src="include/flowplay.js" type="text/javascript"></script>




 <script type="text/javascript">
        var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
        document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>



 <script type="text/javascript">
        try {
        var pageTracker = _gat._getTracker("UA-6488330-16");
        pageTracker._trackPageview();
        } catch(err) {}
</script>
</head>


<body style="background: rgb(0, 0, 0) url(http://grotte.metin2.de/img/background_de.jpg) no-repeat scroll 50% top; -moz-background-clip: initial; -moz-background-origin: initial; -moz-background-inline-policy: initial;">




<div id="caution_ie">Der aktuell genutzte Browser ist veraltet. Bitte aktualisiere den Browser auf eine neuere Version: <a href="http://www.microsoft.com/germany/windows/internet-explorer/default.aspx">Internet Explorer</a> oder <a href="http://www.browser1.de/content/view/5/127/">Mozilla Firefox</a>.</div>



<div id="page">

<div id="header">

<div class="play"><a href="http://www.metin2.de/?KID=1-02006-02006-0912-10936100" target="_blank"> </a></div>




<h1><a href="" title="Metin 2 - Die Grotte der Verbannung">Metin 2 - Die Grotte der Verbannung</a></h1>



</div>






<div id="movie">
		<a href="http://dlcl.gfsrv.net/metin2/movies/teaser_long.flv" id="player"> 
			<img src="include/play_lar.png" alt="Metin2">
		</a>
	</div>




<script type="text/javascript">
	flowplayer( 
            "player",  
            "http://grotte.metin2.de/movies/flowplayer-3.1.3.swf", 
            { 
            	clip : {
                	autoPlay: true,
                	autoBuffering: true
            	}, 
				plugins: {
					controls: {
				        bottom:0,
				        backgroundColor: '#12191c',
				        height:20,
				        opacity: 0.8,
				        // controlbar-specific configuration 
				        durationColor: '#5B725D', 
				        timeColor: '#b9dbac', 
				        autoHide: 'never',
				        timeBgColor: null,
				        progressColor: '#6d2a18',
				        bufferColor: '#000000',
				        buttonColor: '#6a2715',
				        buttonOverColor: '#7a572d',
				        // which buttons are visible and which are not? 
				        play:true, 
				        volume:true, 
				        mute:true, 
				        time:true, 
				        stop:false, 
				        playlist:false, 
				        fullscreen:true 
				    }
				}
	    }); 
	</script>


<div class="content_background">

<div id="content">

<div id="navigation">

<ul>



				<li><a href="index.php" class="navi_active">Strona Główna</a></li>



				<li><a href="reg.php">Rejstracja</a></li>



				<li><a href="zhasla.php">Zmiana Hasła</a></li>



				<li><a href="is.php" target="_blank">Item-Shop</a></li>




</ul>



		</div>




<div class="content_left"></div>




<div class="content_right"></div>





<div id="matter">

<div class="images">

<div class="image_1"><img style="width: 194px; height: 127px;" alt="" src="include/image_10.jpg"></div>




<div class="image_2"><img style="width: 194px; height: 127px;" alt="" src="include/image_20.jpg"></div>



</div>




<!-- KOD IS --><?php include('config.php');
$selectdb = mysql_select_db($database);
$ccategory = $_REQUEST['category'];
echo '<a href="?view=list">ItemShop!</a>';
echo '<br>';
if($_REQUEST['view']=='list')
{
	echo '<table style="table-layout: fixed; border: solid 2px; width: 350px">
		<tr style="background-color: #FFDDFF">
			<td>Lp.</td><td>Nazwa</td>
		</tr>';
	$query = mysql_query("SELECT * FROM categores ORDER BY name ASC");
	$i = 1;
	while($item = mysql_fetch_array($query))
	{
		if($i%2)
		{
		echo '
			<tr style="background-color: #CCDDCC">
				<td>'.$i.'</td><td><a href="?view=list&category='.$item['id'].'">'.$item['name'].'</a></td>
			</tr>';
		} else {
		echo '
			<tr style="background-color: #CCFFCC">
				<td>'.$i.'</td><td><a href="?view=list&category='.$item['id'].'">'.$item['name'].'</a></td>
			</tr>';			
		}
	$i++;
	}			
	echo '</table><br><br><br><table style="table-layout: fixed; border: solid 2px; width: 350px">
		<tr style="background-color: #FFDDFF">
			<td>Lp.</td><td>Nazwa</td><td>Info</td><td>Cena</td><td>Wiecej</td>
		</tr>';
	$query = mysql_query("SELECT * FROM items WHERE category='$ccategory' ORDER BY name ASC");
	$lp = 1;
	while($item = mysql_fetch_array($query))
	{
		if($lp%2)
		{
		echo '
			<tr style="background-color: #CCDDCC">
				<td>'.$lp.'</td><td>'.$item['name'].'</td><td>'.substr($item['info'], 0, 5).'...</td><td>'.$item['price'].'</td><td><a href="?view=item&id='.$item['id'].'" title="'.$item['info'].'">Wiecej</a>
			</tr>';
		} else {
		echo '
			<tr style="background-color: #CCFFCC">
				<td>'.$lp.'</td><td>'.$item['name'].'</td><td>'.substr($item['info'], 0, 5).'...</td><td>'.$item['price'].'</td><td><a href="?view=item&id='.$item['id'].'" title="'.$item['info'].'">Wiecej</a>
			</tr>';			
		}
	$lp++;
	}
	echo '</table>';
} elseif($_REQUEST['view']=='item') {
		$citem = $_REQUEST['id'];
		$c_item = mysql_fetch_array(mysql_query("SELECT * FROM items WHERE id='$citem'"));
		?>
		<a href="?view=list&category=<?php echo $c_item['category']; ?>"><< wroc</a><br>




<div style="background-color: rgb(204, 221, 204); width: 400px;"><b><?php echo $c_item['name']; ?></b></div>




<div style="background-color: rgb(204, 255, 204); width: 400px;"><?php echo $c_item['description']; ?></div>




<div style="background-color: rgb(204, 221, 204); width: 400px;"><i><?php echo $c_item['info']; ?></i></div>




<div style="background-color: rgb(204, 255, 204); width: 400px;">Cena: <b><?php echo $c_item['price']; ?></b> Smoczych Monet</div>



		<?php echo '
		<form action="?action=login" method="post">			
		ID: <input type="text" name="login"><br>
		Haslo: <input type="password" name="password"><br>			
		<input type="hidden" name="item" value="'.$c_item['id'].'">
		<input style="width: 70px" type="submit" value="Kup teraz!">
		</form>
		';

}
		if($_REQUEST['action']=='login')
		{
			$db = mysql_select_db("account");
			$login = $_REQUEST['login'];
			$password = $_REQUEST['password'];					
			$itemid = $_REQUEST['item'];
			$db = mysql_select_db($database);
			$item = mysql_fetch_assoc(mysql_query("SELECT * FROM items WHERE id='$itemid'"));
			$db = mysql_select_db("account");
			if(mysql_num_rows(mysql_query("SELECT * FROM account WHERE login='$login' AND password=PASSWORD('$password')")) > 0)
			{					
				$db = mysql_select_db("player");
				$db = mysql_select_db("account");
				$account = mysql_fetch_assoc(mysql_query("SELECT * FROM account WHERE login='$login'"));
				$db = mysql_select_db("player");
					$db = mysql_select_db("account");
					if($account['cash'] >= $item['price'])
					{
						$account_id = $account['id'];
						mysql_select_db('player');
						$insert = mysql_query("INSERT INTO item(`id`, `vnum`, `owner_id`, `window`, `count`, `pos`) VALUES ('', '$itemid', '$account_id','mall','1', '1')") or die(mysql_error());
						echo 'OK! Idz do dozorcu i sprawdz czy dostales item!';
					} else {
						echo 'Niestety, za malo Smoczych Monet masz!';
					}
			} else {
				echo 'Nieprawidlowy login lub haslo!';
			}
		}	
?>

<!-- KONIEC KODU IS -->
</div>



<div id="social_network_index">
       <a href="http://twitter.com/Metin2_de" title="Follow us on Twitter"><br>

</a> 
</div>




	</div>



</div>



</div>




<div id="footer">

<div class="footer_background">

<ul>



			<li class="first">Published by <a href="http://www.gameforge.de/">Gameforge 4D GmbH</a>. Copyright YMIR Co., Ltd. All rights reserved.</li>



			<li><a target="_blank" href="http://agb.gameforge.de/mmog/index.php?lang=de&art=impress_mmog&f_text=A8A9B3&f_text_font=arial&f_bg=000000">Impressum</a></li>



			<li><a target="_blank" href="http://agb.gameforge.de/mmog/index.php?lang=de&art=tac_mmog&f_text=A8A9B3&f_text_font=arial&f_bg=000000">AGB</a></li>




</ul>



	</div>



</div>




<div style="display: none;">
		</div>



</body>
</html>

Opublikowano

coś masz żle ja sie nieznam

xxx5xxx Done

xxx10xxx Done

xxx50xxx Done

xxx91xxx Done

xxx300xxx Done

xxx500xxx Not Done

xxx1000xxx Not Done

Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.

Ostatnio przeglądający 0

  • Brak zarejestrowanych użytkowników przeglądających tę stronę.

Konto

Nawigacja

Skonfiguruj powiadomienia push w przeglądarce

Chrome (Android)
  1. Stuknij ikonę kłódki obok paska adresu.
  2. Stuknij Uprawnienia → Powiadomienia.
  3. Dostosuj swoje ustawienie.
Chrome (Komputer)
  1. Kliknij ikonę kłódki na pasku adresu.
  2. Wybierz Ustawienia witryny.
  3. Znajdź Powiadomienia i dostosuj swoje ustawienie.