antiblock
diamwall
  • Chatbox

    Did you check out our Discord? https://discord.gg/FFdvMjk9xA
    You don't have permission to chat.
    Load More
Yu2P

Ajuda item_shop

4 posts in this topic

Alguém da comunidade me pode ajudar a alterar, o is invés de ir para o armazém de artigos ir para o inventário in game logo direto!?
Obrigado
Deixo aqui os códigos PHP

 

item_shop.php:

    <section id="content">

 

         <div class="container_24">    

 

        <div class="wrapper">

 

        <h3 align="center">Item Shop</h3>

<div class="push_1" align="center">

 

<style type="text/css">

 

.input_r, .select_r{

 

background: url(images/input_bg.gif);

 

font:Verdana, Geneva, sans-serif;

 

height:26px;

 

color: #FFF;

 

vertical-align:middle;

 

border:none;

 

    border-radius:3px 3px 3px 3px;

 

    -moz-border-radius:3px 3px 3px 3px;

 

    -webkit-border-radius:3px 3px 3px 3px;

 

}

 

tr {

 

    height:30px;    

 

}

 

</style>

 

<?PHP

 

 

 

  if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {

 

    if(isset($_GET['k']) && checkInt($_GET['k'])) {

 

      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items WHERE kategorie_id='".$_GET['k']."' ORDER BY id DESC";

 

    }

 

    else {

 

      $sqlCmdS="SELECT * FROM ".SQL_HP_DB.".is_items ORDER BY id DESC";

 

    }

 

  ?>

 

 

 

   <?PHP

 

 $sqlCmd = "SELECT * FROM ".SQL_HP_DB.".is_kategorien ORDER BY titel ASC;";

 

 $sqlQry = mysql_query($sqlCmd,$sqlHp);

 

 while ($getKats = mysql_fetch_object($sqlQry)) {

 

echo'<a href="index.php?s=item_shop&k='.$getKats->id.'"><input type="submit" value="'.$getKats->titel.'" class="input_r" /></a> ';

 

}

 

      ?>

</div>

<br />

    <?PHP

 

      $sqlQry=mysql_query($sqlCmdS,$sqlHp);

 

      while($getItems=mysql_fetch_object($sqlQry)) {

 

        $aktItem = compareItems($getItems->vnum);

 

        $itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';

 

        ?>

<div class="grid_8">

 

<div class="box">

 

<p class="p2">

 

<div style="border:solid #333 1px; border-radius:5px; background:#CCC; padding:10px;">

<table width="200">

<tr>

<td><strong style="color:#000;">Item:</strong></td>

<td width="150"><strong style="color:#06F"><?PHP echo $aktItem['item'].$itemStufe; ?></strong></td>

  </tr>

 

  <tr>

    <td width="84px" height="84px"><?PHP

 

              if(!empty($getItems->bild)) echo'<img src="http://old2pt.esy.es/site/images/gif/'.$getItems->bild.'" title="'.$aktItem['item'].'" alt="'.$aktItem['item'].'" style="float:left;"/>';

 

            ?></td>

    <td><?PHP echo '<div>'.$getItems->Descrição.'</div>'; ?></td>

  </tr>

  <tr>

 <td>Pre&ccedil;o:</td>

 <td><strong style="color:#060"><?PHP echo $getItems->preis; ?></strong> Gold</td>

 </tr>

 <tr>

 <td>&nbsp;

 

 </td>

 <td>

<script language="Javascript">

function confirmacao(id) {

        var resposta = confirm("Deseja comprar este Item?");

 

     if (resposta == true) {

          location.href = "index.php?s=comprar&id="+id;

     }

}

</script>

<a href="#" onclick="confirmacao('<?PHP echo $getItems->id; ?>')"><img src="images/comprar.png" /></a>

 </td>

 </tr>

</table>

</div>

</p>

</div>

</div>

 

        <?PHP

 

      }

 

    ?>

  <?PHP

 

  }

 

  else {

 

    echo'<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><script type="text/javascript" language="javascript"> alert("Ops Você precisa estar logado para acessar esta área!");

 

    document.location.href = "index.php"; </script>';

 

  }

 

?>

 

        </div>

 

        </div>

 

    </section>













itemsuche.php:

<?PHP
  if($_SESSION['user_admin']>=$adminRights['itemsuche']) {
    if(isset($_GET['char']) && !empty($_GET['char'])) $_SESSION['search_char']=$_GET['char'];
?>
<h2>Admin - Hesaplarda item Arama</h2>
  <p>Buradan seçtiğiniz arama kriterlerine göre karakterlerin üzerindeki itemleri görebilirsiniz.(Hesap/Karakter/Yer).</p>
  <form action="index.php?s=admin&a=itemsuche" method="POST">
  <table>
    <tr>
      <th class="topLine" rowspan="2">Item (Listeden item seçin yada vnum girin)</th>
      <td class="topLine">
        <?PHP
          listItems();
        ?>
        <select name="itemgrad">
          <option value="0">+0</option>
          <option value="1">+1</option>
          <option value="2">+2</option>
          <option value="3">+3</option>
          <option value="4">+4</option>
          <option value="5">+5</option>
          <option value="6">+6</option>
          <option value="7">+7</option>
          <option value="8">+8</option>
          <option value="9">+9</option>
        </select>
        &nbsp;
        <input type="checkbox" name="ugroesser" value="1"/> Tümünü göster
      </td>
      <td class="topLine" rowspan="2"><input type="submit" name="submit" value="Bul"/></td>
    </tr>
    <tr>
      <td class="topLine">
        <input type="text" name="vnum" size="11" maxlength="11"/> (vnum)
      </td>
    </tr>
  </table>
  </form>
 
  <?PHP
 
    if(isset($_POST['submit']) && $_POST['submit']="Bul") {
      if(!empty($_POST['itemtyp'])) {
        $getItemInput = compareItems($_POST['itemtyp']);
        if($getItemInput['maxStufe']==0) {
          $_POST['itemgrad']=0;
          $_POST['ugroesser']="";
        }
        if($_POST['ugroesser']==1 AND $_POST['itemgrad']<9) {
          $suchVNUM = $_POST['itemtyp']+$_POST['itemgrad'];
          $endVNUM = $_POST['itemtyp']+9;
          $sqlCmd="SELECT item.*,player.name,player.account_id,account.login
          FROM player.item
          INNER JOIN player.player
          ON player.id=item.owner_id
          INNER JOIN account.account
          ON account.id=player.account_id
          WHERE item.vnum BETWEEN '".$suchVNUM."' AND '".$endVNUM."'
          AND (window='INVENTORY' OR window='EQUIPMENT')";
          $sqlCmd2="SELECT item.*,account.id AS account_id,account.login
          FROM player.item
          INNER JOIN account.account
          ON account.id=item.owner_id
          WHERE item.vnum BETWEEN '".$suchVNUM."' AND '".$endVNUM."'
          AND window='SAFEBOX'";
        }
        else {
          $suchVNUM = $_POST['itemtyp']+$_POST['itemgrad'];
          $sqlCmd="SELECT item.*,player.name,player.account_id,account.login
          FROM player.item
          INNER JOIN player.player
          ON player.id=item.owner_id
          INNER JOIN account.account
          ON account.id=player.account_id
          WHERE item.vnum='".$suchVNUM."'
          AND (window='INVENTORY' OR window='EQUIPMENT')";
          $sqlCmd2="SELECT item.*,account.id AS account_id,account.login
          FROM player.item
          INNER JOIN account.account
          ON account.id=item.owner_id
          WHERE item.vnum='".$suchVNUM."'
          AND window='SAFEBOX'";
        }
      }
      else {
        $sqlCmd="SELECT item.*,player.name,player.account_id,account.login
        FROM player.item
        INNER JOIN player.player
        ON player.id=item.owner_id
        INNER JOIN account.account
        ON account.id=player.account_id
        WHERE item.vnum='".$_POST['vnum']."'
        AND (window='INVENTORY' OR window='EQUIPMENT')";
        $sqlCmd2="SELECT item.*,account.id AS account_id,account.login
        FROM player.item
        INNER JOIN account.account
        ON account.id=item.owner_id
        WHERE item.vnum='".$_POST['vnum']."'
        AND window='SAFEBOX'";
      }
      echo'<table class="itemlist">';
      echo'<tr>';
      echo'<th class="topLine">Karakter</th>';
      echo'<th class="topLine">Hesap</th>';
      echo'<th class="topLine">İsim</th>';
      echo'<th class="topLine">Nerede</th>';
      echo'<th class="topLine">Taşlar</th>';
      echo'<th class="topLine">Efsunlar</th>';
      echo'</tr>';
      
      $sqlQry=mysql_query($sqlCmd,$sqlServ);
      $x=0;
      while($getItem=mysql_fetch_object($sqlQry)) {
        $zF = (($x%2)==0) ? "tdunkel" : "thell";
        echo'<tr>';
        echo'<td class="'.$zF.'"><a href="index.php?s=admin&a=char&id='.$getItem->owner_id.'">'.$getItem->name.'</a></td>';
        echo'<td class="'.$zF.'"><a href="index.php?s=admin&a=users&acc='.$getItem->account_id.'">'.$getItem->login.'</a></td>';
        echo'<td class="'.$zF.'">';
        $getName = compareItems($getItem->vnum);
        $itemStufe = (checkInt($getName['stufe'])) ? "+".$getName['stufe'] : '';
        echo $getName['item'].$itemStufe;
        echo'</td>';
        echo'<td class="'.$zF.'">'.$getItem->window.'</td>';
        echo'<td class="'.$zF.'">';
        for($i=0;$i<6;$i++) {
            if($i==0) { $akSocket = $getItem->socket0; }
            if($i==1) { $akSocket = $getItem->socket1; }
            if($i==2) { $akSocket = $getItem->socket2; }
            if($i==3) { $akSocket = $getItem->socket3; }
            if($i==4) { $akSocket = $getItem->socket4; }
            if($i==5) { $akSocket = $getItem->socket5; }
            echo'#'.($i+1).'&nbsp;';
            if(isset($itemSteine[$akSocket])) {
              echo $itemSteine[$akSocket];
            }
            else {
              echo $akSocket;
            }
            echo'<br/>';
          
          }
        echo'</td>';
        echo'<td class="'.$zF.'">';
        for($i=0;$i<7;$i++) {
            if($i==0) { $akBoni = $getItem->attrtype0; $akWert = $getItem->attrvalue0; }
            if($i==1) { $akBoni = $getItem->attrtype1; $akWert = $getItem->attrvalue1; }
            if($i==2) { $akBoni = $getItem->attrtype2; $akWert = $getItem->attrvalue2; }
            if($i==3) { $akBoni = $getItem->attrtype3; $akWert = $getItem->attrvalue3; }
            if($i==4) { $akBoni = $getItem->attrtype4; $akWert = $getItem->attrvalue4; }
            if($i==5) { $akBoni = $getItem->attrtype5; $akWert = $getItem->attrvalue5; }
            if($i==6) { $akBoni = $getItem->attrtype6; $akWert = $getItem->attrvalue6; }
            echo'#'.($i+1).'&nbsp;';
            if(isset($itemBoni[$akBoni])) {
              echo $itemBoni[$akBoni];
            }
            else {
              echo $akBoni;
            }
            echo':&nbsp;'.$akWert;
            echo'<br/>';
          
        }
        echo'</td>';
        echo'</tr>';
        $x++;
      }
      echo'</table>';
      echo'<h2><font color=red>Depoda</font></h2>';
      echo'<table class="itemlist">';
      echo'<tr>';
      echo'<th class="topLine">Hesap</th>';
      echo'<th class="topLine">Silah</th>';
      echo'<th class="topLine">Yer</th>';
      echo'<th class="topLine">Taşlar</th>';
      echo'<th class="topLine">Efsun</th>';
      echo'</tr>';
      
      $sqlQry2=mysql_query($sqlCmd2,$sqlServ);
      $x=0;
      while($getItem=mysql_fetch_object($sqlQry2)) {
        $zF = (($x%2)==0) ? "tdunkel" : "thell";
        echo'<tr>';
        echo'<td class="'.$zF.'"><a href="index.php?s=admin&a=users&acc='.$getItem->owner_id.'">'.$getItem->login.'</a></td>';
        echo'<td class="'.$zF.'">';
        $getName = compareItems($getItem->vnum);
        $itemStufe = (checkInt($getName['stufe'])) ? "+".$getName['stufe'] : '';
        echo $getName['item'].$itemStufe;
        echo'</td>';
        echo'<td class="'.$zF.'">'.$getItem->window.'</td>';
        echo'<td class="'.$zF.'">';
        for($i=0;$i<6;$i++) {
            if($i==0) { $akSocket = $getItem->socket0; }
            if($i==1) { $akSocket = $getItem->socket1; }
            if($i==2) { $akSocket = $getItem->socket2; }
            if($i==3) { $akSocket = $getItem->socket3; }
            if($i==4) { $akSocket = $getItem->socket4; }
            if($i==5) { $akSocket = $getItem->socket5; }
            echo'#'.($i+1).'&nbsp;';
            if(isset($itemSteine[$akSocket])) {
              echo $itemSteine[$akSocket];
            }
            else {
              echo $akSocket;
            }
            echo'<br/>';
          
          }
        echo'</td>';
        echo'<td class="'.$zF.'">';
        for($i=0;$i<7;$i++) {
            if($i==0) { $akBoni = $getItem->attrtype0; $akWert = $getItem->attrvalue0; }
            if($i==1) { $akBoni = $getItem->attrtype1; $akWert = $getItem->attrvalue1; }
            if($i==2) { $akBoni = $getItem->attrtype2; $akWert = $getItem->attrvalue2; }
            if($i==3) { $akBoni = $getItem->attrtype3; $akWert = $getItem->attrvalue3; }
            if($i==4) { $akBoni = $getItem->attrtype4; $akWert = $getItem->attrvalue4; }
            if($i==5) { $akBoni = $getItem->attrtype5; $akWert = $getItem->attrvalue5; }
            if($i==6) { $akBoni = $getItem->attrtype6; $akWert = $getItem->attrvalue6; }
            echo'#'.($i+1).'&nbsp;';
            if(isset($itemBoni[$akBoni])) {
              echo $itemBoni[$akBoni];
            }
            else {
              echo $akBoni;
            }
            echo':&nbsp;'.$akWert;
            echo'<br/>';
          
        }
        echo'</td>';
        echo'</tr>';
        $x++;
      }
      echo'</table>';
      
    }
 
 
  ?>
<?PHP
  }
  else {
    echo'<p class="meldung">Bu bölüme giriş yetkiniz yok!</p>';
  }
?>
 

Share this post


Link to post
Share on other sites
antiblock
https://i.imgur.com/aJ17bf7.gif

O item_suche é para procurar itens.  E o primeiro não está lá o código php para efectuar a compra. Normalmente é o is_buy.php

Share this post


Link to post
Share on other sites

<?PHP
  if($_SESSION['user_admin']>=$adminRights['is_items']) {
    $maxDateiGr = 100;  //KByte
    $maxDateix = 100;   //Pixel X-Achse
    $maxDateiy = 100;   //Pixel Y-Achse
    echo'<h2>Yönetim - Market itemleri</h2>';
    echo'<p>Bu bölümden market itemleri üzerinde işlem yapabilirsiniz.</p>';
    
      if(isset($_POST['submit']) && $_POST['submit']=="eintragen") {
        if(!empty($_POST['itemtyp']) && checkInt($_POST['itemgrad']) && checkInt($_POST['preis']) && checkInt($_POST['kategorie'])) {
          $bildDatei=imageUpload('bildupload',$maxDateiGr,$maxDateix,$maxDateiy);
          if(!$bildDatei) $bildDatei='';
          
          $getStufen = compareItems($_POST['itemtyp']);
          if($_POST['itemgrad']<=$getStufen['maxStufe']) {
            $inVnum = $_POST['itemtyp']+$_POST['itemgrad'];
          }
          else {
            $inVnum = $_POST['itemtyp'];
          }
          
          $socket0 = (checkInt($_POST['socket0'])) ? $_POST['socket0'] : '0';
          $socket1 = (checkInt($_POST['socket1'])) ? $_POST['socket1'] : '0';
          $socket2 = (checkInt($_POST['socket2'])) ? $_POST['socket2'] : '0';
          $boni0 = ($_POST['boni0']>=0 && $_POST['boni0']<=255) ? $_POST['boni0'] : '0';
          $boni1 = ($_POST['boni1']>=0 && $_POST['boni1']<=255) ? $_POST['boni1'] : '0';
          $boni2 = ($_POST['boni2']>=0 && $_POST['boni2']<=255) ? $_POST['boni2'] : '0';
          $boni3 = ($_POST['boni3']>=0 && $_POST['boni3']<=255) ? $_POST['boni3'] : '0';
          $boni4 = ($_POST['boni4']>=0 && $_POST['boni4']<=255) ? $_POST['boni4'] : '0';
          $boni5 = ($_POST['boni5']>=0 && $_POST['boni5']<=255) ? $_POST['boni5'] : '0';
          $boni6 = ($_POST['boni6']>=0 && $_POST['boni6']<=255) ? $_POST['boni6'] : '0';
          $boniv0 = ($_POST['boniv0']>=(-32767) && $_POST['boniv0']<=32767) ? $_POST['boniv0'] : '0';
          $boniv1 = ($_POST['boniv1']>=(-32767) && $_POST['boniv1']<=32767) ? $_POST['boniv1'] : '0';
          $boniv2 = ($_POST['boniv2']>=(-32767) && $_POST['boniv2']<=32767) ? $_POST['boniv2'] : '0';
          $boniv3 = ($_POST['boniv3']>=(-32767) && $_POST['boniv3']<=32767) ? $_POST['boniv3'] : '0';
          $boniv4 = ($_POST['boniv4']>=(-32767) && $_POST['boniv4']<=32767) ? $_POST['boniv4'] : '0';
          $boniv5 = ($_POST['boniv5']>=(-32767) && $_POST['boniv5']<=32767) ? $_POST['boniv5'] : '0';
          $boniv6 = ($_POST['boniv6']>=(-32767) && $_POST['boniv6']<=32767) ? $_POST['boniv6'] : '0';
          
          
          
          $inPreis = $_POST['preis'];
          $inKategorie = $_POST['kategorie'];
          $inBeschreibung = mysql_real_escape_string($_POST['beschreibung']);
          $inAnzeigen = ($_POST['anzeigen']=="J") ? "J" : "N";
          
          $sqlCmd="INSERT INTO ".SQL_HP_DB.".is_items
          (vnum, kategorie_id, bild, beschreibung, preis, anzeigen, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2)
          VALUES
          ('".$inVnum."','".$inKategorie."','".$bildDatei."','".$inBeschreibung."','".$inPreis."','".$inAnzeigen."','".$boni0."', '".$boniv0."', '".$boni1."', '".$boniv1."', '".$boni2."', '".$boniv2."', '".$boni3."', '".$boniv3."', '".$boni4."', '".$boni4."', '".$boni5."', '".$boniv5."', '".$boni6."', '".$boniv6."', '".$socket0."', '".$socket1."', '".$socket1."')";
          $inSql = mysql_query($sqlCmd,$sqlHp);
          if($inSql) echo'<p class="meldung">Item erfolgreich in den Itemshop eingef&uuml;gt.</p>';
        }
      }
      elseif(isset($_POST['submit']) && $_POST['submit']=="bearbeiten") {
        if(!empty($_POST['itemtyp']) && checkInt($_POST['itemgrad']) && checkInt($_POST['preis']) && checkInt($_POST['kategorie']) && checkInt($_POST['iid'])) {
          $bildDatei=imageUpload('bildupload',$maxDateiGr,$maxDateix,$maxDateiy);
          if(!$bildDatei) $aktIMG=$_POST['bildAlt'];
          else $aktIMG=$bildDatei;
          $opDeleted=false;
          if((isset($_POST['loeschen']) && $_POST['loeschen']=='loeschen') || !empty($bildDatei)) {
            if(!empty($_POST['bildAlt'])) {
              if(unlink('./is_img/'.$_POST['bildAlt']))
              {
                echo'<p class="meldung"><center><font color=green><b>Eski resim başarıyla silindi.</b></font></center></p>';
                $opDeleted=true;
              }
            }
          }
          
          if((empty($_POST['bildAlt']) && !$bildDatei) || ($opDeleted==true && !$bildDatei)) {
            $aktIMG='';
          }
          
          $getStufen = compareItems($_POST['itemtyp']);
          if($_POST['itemgrad']<=$getStufen['maxStufe']) {
            $inVnum = $_POST['itemtyp']+$_POST['itemgrad'];
          }
          else {
            $inVnum = $_POST['itemtyp'];
          }
          
          $socket0 = (checkInt($_POST['socket0'])) ? $_POST['socket0'] : '0';
          $socket1 = (checkInt($_POST['socket1'])) ? $_POST['socket1'] : '0';
          $socket2 = (checkInt($_POST['socket2'])) ? $_POST['socket2'] : '0';
          $boni0 = ($_POST['boni0']>=0 && $_POST['boni0']<=255) ? $_POST['boni0'] : '0';
          $boni1 = ($_POST['boni1']>=0 && $_POST['boni1']<=255) ? $_POST['boni1'] : '0';
          $boni2 = ($_POST['boni2']>=0 && $_POST['boni2']<=255) ? $_POST['boni2'] : '0';
          $boni3 = ($_POST['boni3']>=0 && $_POST['boni3']<=255) ? $_POST['boni3'] : '0';
          $boni4 = ($_POST['boni4']>=0 && $_POST['boni4']<=255) ? $_POST['boni4'] : '0';
          $boni5 = ($_POST['boni5']>=0 && $_POST['boni5']<=255) ? $_POST['boni5'] : '0';
          $boni6 = ($_POST['boni6']>=0 && $_POST['boni6']<=255) ? $_POST['boni6'] : '0';
          $boniv0 = ($_POST['boniv0']>=(-32767) && $_POST['boniv0']<=32767) ? $_POST['boniv0'] : '0';
          $boniv1 = ($_POST['boniv1']>=(-32767) && $_POST['boniv1']<=32767) ? $_POST['boniv1'] : '0';
          $boniv2 = ($_POST['boniv2']>=(-32767) && $_POST['boniv2']<=32767) ? $_POST['boniv2'] : '0';
          $boniv3 = ($_POST['boniv3']>=(-32767) && $_POST['boniv3']<=32767) ? $_POST['boniv3'] : '0';
          $boniv4 = ($_POST['boniv4']>=(-32767) && $_POST['boniv4']<=32767) ? $_POST['boniv4'] : '0';
          $boniv5 = ($_POST['boniv5']>=(-32767) && $_POST['boniv5']<=32767) ? $_POST['boniv5'] : '0';
          $boniv6 = ($_POST['boniv6']>=(-32767) && $_POST['boniv6']<=32767) ? $_POST['boniv6'] : '0';
          
          $inPreis = $_POST['preis'];
          $inKategorie = $_POST['kategorie'];
          $inBeschreibung = mysql_real_escape_string($_POST['beschreibung']);
          $inAnzeigen = ($_POST['anzeigen']=="J") ? "J" : "N";
          
          $sqlCmd="UPDATE ".SQL_HP_DB.".is_items
            SET vnum='".$inVnum."', kategorie_id='".$inKategorie."', bild='".$aktIMG."', beschreibung='".$inBeschreibung."', preis='".$inPreis."', anzeigen='".$inAnzeigen."' ,attrtype0='".$boni0."', attrvalue0='".$boniv0."', attrtype1='".$boni1."', attrvalue1='".$boniv1."', attrtype2='".$boni2."', attrvalue2='".$boniv2."', attrtype3='".$boni3."', attrvalue3='".$boniv3."', attrtype4='".$boni4."', attrvalue4='".$boniv4."', attrtype5='".$boni5."', attrvalue5='".$boniv5."', attrtype6='".$boni6."', attrvalue6='".$boniv6."', socket0='".$socket0."', socket1='".$socket1."', socket2='".$socket2."'
            WHERE id='".$_POST['iid']."'";
            echo $sqlCmd;
          $inSql = mysql_query($sqlCmd,$sqlHp) or die(mysql_error());
          if($inSql) echo'<p class="meldung"><center><font color=green><b>Güncelleme başarılı.</b></font></center></p>';
        }
      }
      
      if(isset($_GET['do']) && $_GET['do']=="add") {
        include("./pages/admin/is_item_add.inc.php");
      }
      elseif(isset($_GET['do']) && $_GET['do']=="edit") {
        include("./pages/admin/is_item_edit.inc.php");
      }
      elseif(isset($_GET['do']) && $_GET['do']=="delete") {
        include("./pages/admin/is_item_delete.inc.php");
      }
    
    ?>
      <p><a href="index.php?s=admin&a=is_items&do=add"><font color=fushe>Yeni item ekle</font></a></p>
      <table>
        <tr>
          <th class="topLine">Market-ID</th>
          <th class="topLine">Item/Vnum</th>
          <th class="topLine">Resim</th>
          <th class="topLine">Kategori</th>
          <th class="topLine">Fiyat</th>
          <th class="topLine">Özellikler</th>
          <th class="topLine">İşlem</th>
        </tr>
        <?PHP
          $sqlCmd="SELECT is_items.*,is_kategorien.titel AS kat_titel FROM ".SQL_HP_DB.".is_items
          INNER JOIN ".SQL_HP_DB.".is_kategorien
          ON is_kategorien.id=is_items.kategorie_id
          ORDER BY is_items.kategorie_id ASC";
          $sqlQry=mysql_query($sqlCmd,$sqlHp);
          $x=0;
          while($getIS=mysql_fetch_object($sqlQry)) {
            $aktItem = compareItems($getIS->vnum);
            $itemStufe = (checkInt($aktItem['stufe'])) ? "+".$aktItem['stufe'] : '';
            $zF=($x%2==0) ? "tdunkel" : "thell";
            $zBild = (!empty($getIS->bild)) ? "success.gif" : "fail.gif";
            echo'<tr>
              <td class="'.$zF.'">'.$getIS->id.'</td>
              <td class="'.$zF.'">'.$aktItem['item'].$itemStufe.'</td>
              <td class="'.$zF.'"><img src="./img/'.$zBild.'"/></td>
              <td class="'.$zF.'">'.$getIS->kat_titel.'</td>
              <td class="'.$zF.'">'.$getIS->preis.'</td>
              <td class="'.$zF.'">'.$getIS->beschreibung.'</td>
              <td class="'.$zF.'">[<a href="index.php?s=admin&a=is_items&do=edit&id='.$getIS->id.'"><font color=green>Düzenle</font></a>]&nbsp;[<a href="index.php?s=admin&a=is_items&do=delete&id='.$getIS->id.'"><font color=red>Sil</font></a>]</td>
            </tr>';
            $x++;
          }
        ?>
      </table>
    
    <?PHP
  }
  else {
    echo'<p class="meldung">Bu bölüme giriş yetkiniz yok!</p>';
  }
?>

Share this post


Link to post
Share on other sites

Não vejo nada aí mete no pastebin todos os arquivos que tens sobre a item shop

 

Eu aqui tenho assim estas linhas

 

 $possiblePos = findPos($belPos['islager'],$getGroesse['groesse']);

islager é o armazém de itens 

 

$sqlItem="INSERT INTO player.item
(owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2)
VALUES
('".mysql_real_escape_string($_SESSION['user_id'])."','MALL','".$possiblePos[0]."','1','".$getItem->vnum."','".$getItem->attrtype0."', '".$getItem->attrvalue0."', '".$getItem->attrtype1."', '".$getItem->attrvalue1."', '".$getItem->attrtype2."', '".$getItem->attrvalue2."', '".$getItem->attrtype3."', '".$getItem->attrvalue3."', '".$getItem->attrtype4."', '".$getItem->attrvalue4."', '".$getItem->attrtype5."', '".$getItem->attrvalue5."', '".$getItem->attrtype6."', '".$getItem->attrvalue6."', '".$getItem->socket0."', '".$getItem->socket1."', '".$getItem->socket2."')";
$qryItem=mysql_query($sqlItem,$sqlServ) or die(mysql_error());

E o MALL aqui também, mas não vejo nada parecido aí

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now