[Help] HabboPhp

Maihym

Member
Aug 9, 2012
59
2
When a user registers their password is encrypted. How can I change it so it's not encrypted. Or at least tell me the type of encryption used so I can decrypt a password if a user forgot their password.
 

LeChris

John 15:18
Sep 30, 2013
2,786
1,395
When a user registers their password is encrypted. How can I change it so it's not encrypted. Or at least tell me the type of encryption used so I can decrypt a password if a user forgot their password.
I thought HabboPHP has a script for that. Its not safe safe to have the passwords decrypted also. Its MD5 probably
 

Maihym

Member
Aug 9, 2012
59
2
Oh ok thanks i'll try it I just want to know because if a user needs their password changed I can't change it unless I encrypt it.

MD5 doesn't seem to be working what other type of encryption do you think it uses? Or where can I find the file where it says it encrypts it?
 
Last edited by a moderator:

Maihym

Member
Aug 9, 2012
59
2
Badges.php
<?php

#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|
#| #|
#| HABBOPHP - #|
#| Copyright © 2012 Valentin & Robin. All rights reserved. #|
#| #|
#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|#|

require'init.php';

$tpl->assign('groups','shop');
$badgeData = $db->query('SELECT * FROM habbophp_shop_badges',true);

$tpl->assign('token',Tools::generate_token());
$tpl->assign('badges',$badgeData);

$tpl->display('header.tpl');
$tpl->display('badges.tpl');
$tpl->display('footer.tpl');

?>
badges.tpl
<script type="text/javascript" src=" "></script>
<script type="text/javascript" src="{$config->url_site}/web-gallery/js/vip.js"></script>
<script>
jQuery.noConflict();
</script>
<div id="container">
<div id="content" style="position: relative" class="clear fix">
<div>

<div class="habblet-container " id="verif" style="opacity:0;display:none;float:left; width: 770px;">
<div class="cbb clearfix green">
<h2 class="title">{#ConfirmBuy#}</h2>
<div class="box-content">
<span style="font-size:14px;">Je confirme l'achat pour <span id="pricee"></span></span> {$config->moneyname}
<a href="javascript:void(0);" class="new-button red-button" onclick="{literal}jQuery('#verif').animate({opacity:0}).slideUp();{/literal}"><b>Annuler</b><i></i></a>
<a href="javascript:void(0);" id="confirmbb" class="new-button green-button"><b>Je confirme mon achat !</b><i></i></a>
</div>
</div>
</div>

<div class="habblet-container " style="float:left; width: 770px;">
<div class="cbb clearfix settings">
<h2 class="title">{#BadgesShop#}</h2>
<div class="box-content">
<div id="valideok" style="padding:10px;font-size:18px;display:none;opacity:0;background:#60b200;color:white;text-shadow:0 1px 0 #407700;-moz-border-radius:10px;-webkit-border-radius:10px;display:none;opacity:0;border-radius:10px;margin:20px;">{#Success_new_badge#}</div>

<div style="padding:10px;font-size:18px;background:#c40000;color:white;text-shadow:0 1px 0 #990000;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;margin:10px;display:none;opacity:0;" class="error_existe">{#YouHaveBadge#}</div>

<div style="padding:10px;font-size:18px;background:#c40000;color:white;text-shadow:0 1px 0 #990000;-moz-border-radius:10px;-webkit-border-radius:10px;border-radius:10px;margin:10px;display:none;opacity:0;" class="not_enought_money">{#YouHaveNoEnough#} {$config->moneyname}</div>

{foreach from=$badges key=k item=v}
<a href="javascript:void(0);" style="text-decoration:none;" onclick="addBadgeVerif('{$v.idbadge}',{$v.amount})">
<div style="width:60px;padding:10px 7px;" class="ssh">
<center><img src=" " ></img>
<br>
<span style="font-size:15px;color:#000;">{$v.amount}<br /><span style="font-size:10px;">{$config->moneyname}</span></span></a></center>
</div>
{/foreach}
</div>
</div>
</div>
</div>
</div>
{literal}
<script type="text/javascript">
function addBadgeVerif(badge,price){
jQuery('#verif').slideDown().animate({opacity:1});
jQuery('#vbi').html(badge);
jQuery('#pricee').html(price);
jQuery('#confirmbb').attr('onclick',"addBadge('"+badge+"')");
}
function addBadge(badge){
var token = jQuery('#token').val();
if(badge == ""){return false}
jQuery.post('ajax/addBadge.php', { badge:badge,token:token },function(data){
if(data == "11"){
jQuery('#valideok').slideDown('fast',function(){ jQuery('#valideok').animate({opacity:1}); });
setTimeout("jQuery('#valideok').animate({opacity:0}).slideUp('fast');",2000);
}
if(data == "existe"){
jQuery('.error_existe').slideDown('fast',function(){ jQuery('.error_existe').animate({opacity:1}); });
setTimeout("jQuery('.error_existe').animate({opacity:0},'fast',function(){jQuery('.error_existe').slideUp('fast');});",2000);
}
if(data == "nomoney"){
jQuery('.not_enought_money').slideDown('fast',function(){ jQuery('.not_enought_money').animate({opacity:1}); });
setTimeout("jQuery('.not_enought_money').animate({opacity:0},'fast',function(){jQuery('.not_enought_money').slideUp('fast');});",2000);
}
});
}
</script>
{/literal}
 

Users who are viewing this thread

Top