Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:41

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

Advertisement



Metin2 ItemShop Autologin

Discussion on Metin2 ItemShop Autologin within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
GATGAT's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 231
Received Thanks: 23
Metin2 ItemShop Autologin

Allso ich bin Beim Itemshop der sol Sich Automatisch Anmelden und Sicher


was isch schon gemacht habe ist


PHP Code:
if (!isset($_SESSION["user"]) && !(isset($_GET["sas"]) && isset($_GET["pid"]) && isset($_GET["sid"]))) exit;
if (!isset(
$_SESSION["user"]) && (!is_numeric($_GET["pid"]) || !is_numeric($_GET["sid"]))) exit;
include(
"lang.inc.php");
include(
$config["path"]["includes"]."common.inc.php");
$db = new database;
if (!isset(
$_SESSION["user"])){
    
$id mysql_fetch_object(mysql_query('SELECT account_id FROM '.$db->gamedb["player"].'.player WHERE id="'.(int)$_GET["pid"].'"',$db->game));
    if (!
$id) exit;
    
$id $id->account_id;
    if (
$_GET["sas"] = md5($_GET["pid"].$id."GF9001")){
        
$res mysql_fetch_object(mysql_query('SELECT login,'.$config["settings"]["coin"].' as coin FROM '.$db->gamedb["account"].'.account WHERE id="'.$id.'"',$db->game));
        
$_SESSION["user"] = $res->login;
        
$_SESSION["coins"] = $res->coin;
        
$_SESSION["id"] = $id;
    }else exit;

Quelle

jetzt ist die Frage kann mir da jemand Bischen Helfen das ich eine Saubere Session bekomme ?

/push
GATGAT is offline  
Old 05/22/2012, 17:10   #2
 
GATGAT's Avatar
 
elite*gold: 0
Join Date: Dec 2007
Posts: 231
Received Thanks: 23
/push
GATGAT is offline  
Reply




All times are GMT +2. The time now is 18:41.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.