[Plugin] [REL] Encrypt
#18

how to connect with website pcp if i wanna login?

example with whirlpool, use wp_hash
PHP код:
<?php
    session_start
();
    include 
"koneksi.php";
    if(isset(
$_SESSION['playername']))
    {
        
go('index.php''You already logged in.');
    }
    if(!isset(
$_POST['username'], $_POST['password']))
    {
        
go('index.php''Please fillout all required forms.');
    }
    else
    {
        
$query $koneksi->prepare("SELECT `adminlevel`,`name` from `players` where `name` = ? and `pass` = ?");
        
$query->execute(array($_POST['username'], strtoupper(hash("whirlpool"$_POST['password']))));
        if(
$query->rowCount() > 0)
        {
            
$data $query->fetch();
            
go('index.php''Succesfully logged in.');
            
$_SESSION['playername'] = $data['name'];
            
$_SESSION['playerlevel'] = $data['adminlevel'];
        }
        else
        {
            
go('index.php''Wrong username or password.');
        }
    }
Reply


Messages In This Thread
Encrypt - by Fro1sha - 05.06.2010, 12:15
Re: [REL] Encrypt - by king s dm - 05.06.2010, 12:20
Re: [REL] Encrypt - by Woet - 05.06.2010, 14:20
Re: [REL] Encrypt - by Fro1sha - 05.06.2010, 14:41
Re: [REL] Encrypt - by [LDT]LuxurY - 06.07.2010, 15:04
Re: [REL] Encrypt - by JernejL - 31.07.2010, 09:22
[REL] Encrypt - by [NoV]LaZ - 31.07.2010, 09:34
Re: [REL] Encrypt - by JernejL - 09.12.2010, 07:26
Re: [REL] Encrypt - by legodude - 30.12.2010, 19:42
Re: [REL] Encrypt - by FreshDoubleX - 30.12.2010, 19:53
Re: [REL] Encrypt - by Matthewjames1 - 12.05.2011, 00:34
AW: [REL] Encrypt - by The_Godboy - 19.05.2011, 13:41
Re : [REL] Encrypt - by human-product - 23.09.2011, 16:34
Re: [REL] Encrypt - by GangsTa_ - 23.09.2011, 18:00
Re : [REL] Encrypt - by TheBest6 - 07.10.2011, 10:09
Re: [REL] Encrypt - by Stylock - 08.08.2013, 16:32
AW: Re: [REL] Encrypt - by Mellnik - 08.08.2013, 19:10
Re: [REL] Encrypt - by DandyCorleone - 04.01.2017, 02:06
Re: [REL] Encrypt - by BroZeus - 05.01.2017, 12:55
Respuesta: [REL] Encrypt - by DarkChildren - 06.01.2017, 01:18

Forum Jump:


Users browsing this thread: 1 Guest(s)