Jump to content

[Problem] ingame itemshop autologin fail


Recommended Posts

i need help i got this error ingame

4u5OrB1.png


and this is the index.php  ( a part of it, if u want the full part , just tell me)

 

 

 

<?php

 

session_name("m2hp"); 

 

session_start();

require './includes/php/config.php';
require './includes/php/funzioni.inc.php';

$dc = '';
$dm = '';

$page_title = "Itemshop - $servername!";
?>
<?php require 'includes/php/header.php'; ?>
  <?php 
  if ((isset($_GET['pid'])) && (isset($_GET['sas']))) {

    //SAS Confirmed
    $pid = mysqli_real_escape_string($_GET['pid']);
    $sas = mysqli_real_escape_string($_GET['sas']);

    if ((strlen($_GET['pid'])) == (strlen(mysqli_real_escape_string($pid))) &&  (strlen($_GET['sas'])) == (strlen(mysqli_real_escape_string($sas))))  // SQL INJECT PARAMETRI GET FIX
    { 
    
    $convalida = mysqli_query($conn, "SELECT account_id FROM ".$_CONFIG['db_player'].".player WHERE id = '".$pid."' LIMIT 1");
    while ($data = mysqli_fetch_array($convalida))

    { 
    $account_id = $data['account_id'];
    }





Please help me

 

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

    //SAS Confirmed
    $pid = mysqli_real_escape_string($conn, $_GET['pid']);
    $sas = mysqli_real_escape_string($conn, $_GET['sas']);

    if ((strlen($_GET['pid'])) == (strlen(mysqli_real_escape_string($conn, $pid))) &&  (strlen($_GET['sas'])) == (strlen(mysqli_real_escape_string($conn, $sas))))  // SQL INJECT PARAMETRI GET FIX

  • Love 1
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.