[PHP/MYSQL]WP_HASH
#9

How to change this to sha1? this with Whirpool wp_hash i want change it to sha1.
can help? i already try, but dont work

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
[PHP/MYSQL]WP_HASH - by aivarasz - 09.02.2012, 16:17
Re: [PHP/MYSQL]WP_HASH - by Niko_boy - 09.02.2012, 16:20
Re: [PHP/MYSQL]WP_HASH - by [HiC]TheKiller - 09.02.2012, 18:03
Re: [PHP/MYSQL]WP_HASH - by aivarasz - 10.02.2012, 15:19
Re: [PHP/MYSQL]WP_HASH - by aivarasz - 11.02.2012, 12:25
Re: [PHP/MYSQL]WP_HASH - by vital2k - 11.02.2012, 12:39
Re: [PHP/MYSQL]WP_HASH - by aivarasz - 11.02.2012, 14:01
Re: [PHP/MYSQL]WP_HASH - by vital2k - 11.02.2012, 17:01
Re: [PHP/MYSQL]WP_HASH - by DandyCorleone - 04.01.2017, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)