Agora o habbo.com e .com.br atualizou as imagens, e infelizmente todas as cms's bugaram as imagens.
Então pensei que se eu divulga-se este código aqui poderia ajudar muitas pessoas que gostam de habbo pirata.
Confira abaixo:
Primeiramente entra na pasta aonde está os arquivos da CMS
Xampp: htdocs | Vertrigo: www
Quando estiver nos arquivos da CMS entre na pasta "inc" procure pelo arquivo "class.tpl.php " abra-o com o bloco de notas e apague tudo, depois copie o código abaixo e cole no lugar do antigo código e salve.
- CÓDIGO:
<? Php
/*================================================ =======================
| www.FerramentasHP.com - Tudo o que você precisa está lá!
| ################################################# ######################
| Copyright (c) 2011, Todos os direitos reservados a Ferramentas HP.
\ ================================================= =====================*/
uberTpl classe
{
private $ OutputData;
privadas $ params = array ();
privado includeFiles $ = Array ();
Init função pública ()
{
núcleo global, $ utilizadores;
$ This-> setParam ('hotelName', 'Habble-X');
SetParam $ this-> ('PAGE_TITLE', 'X-Habble Hotel -');
$ This-> setParam ('body_id','');
$ This-> setParam ('password', 'vertrigo');
$ This-> setParam ('dados', 'beta');
$ This-> setParam ('HabboID', '<b> src="' <img. WWW.'/images/id.png" Style="vertical-align: middle;">. $ Users-> GetUserVar ( . USER_ID '</ b>', 'email'));
$ This-> setParam ('vipimage', 'src="' <img WWW'/images/vipcoin.gif" style="vertical-align: middle;">..');
$ This-> setParam ('StaffEmail','');
$ This-> setParam ('twitter','');
$ This-> setParam ('', 'Holo');
$ This-> setParam ('body_id','');
$ This-> setParam ('PAGE_TITLE', '');
$ This-> setParam ('flash_build', 'flash_63_9');
$ This-> setParam ('web_build, '63_1dc60c6d6ea6e089c6893ab4e0541ee0 / 198');
$ This-> setParam ('web_build_str', '63-BUILD - - Novic - JJP??);
$ This-> setParam ('req_path, WWW);
$ This-> setParam ('www', WWW);
$ This-> setParam ('hotel_status_fig, uberCore: GetSystemStatusString (true));
$ This-> setParam ('hotel_status, uberCore: GetSystemStatusString (false));
$ This-> setParam ('contador','');
if (logged_in)
{
$ This-> setParam ('habboLoggedIn', 'true');
$ This-> setParam ('habboName, USER_NAME);
$ This-> setParam ('vipbalance', '<b>. $ Users-> GetUserVar (USER_ID' vip_points ').' <Img src = "'. WWW. / Images / vipcoin.gif" style = " ;"></ meio b> '); vertical-align
}
mais
{
$ This-> setParam ('habboLoggedIn', 'false');
$ This-> setParam ('habboName', 'nulo');
}
}
função pública AddIncludeSet ($ set)
{
switch (strtolower ($ set))
{
"Frontpage" caso:
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/landing.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/frontpage.css', 'estilo')) ;
break;
caso "registo":
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/visual.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/common.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/style.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/tooltips.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/changepassword.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/forcedemaillogin.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/quickregister.css', 'estilo')) ;
break;
caso "modelo de processo":
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/visual.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/common.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/fullcontent.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/style.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/tooltips.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/process.css', 'estilo')) ;
break;
"Myhabbo 'caso:
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/visual.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/common.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/fullcontent.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/style.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/tooltips.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/myhabbo.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/skins.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/dialogs.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/control.textarea.css', 'estilo', ));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/styles/myhabbo/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/myhabbo.css', 'estilo')) ;
$ This-> AddIncludeFile (novo IncludeFile ("text / css ',' http://www.habbo.co.uk/myhabbo/styles/assets.css ',' estilo '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/homeview.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/lightwindow.css', 'estilo')) ;
break;
'Identidade' caso:
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/visual.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/common.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/fullcontent.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/style.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/tooltips.css', 'estilo')) ;
break;
'Default' caso:
default:
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs2.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/visual.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/libs.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/common.js%% / web_build '));
$ This-> AddIncludeFile (novo IncludeFile ("text / javascript", "http://images.habbo.com/habboweb/ web-gallery/static/js/fullcontent.js%% / web_build '));
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/style.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/buttons.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/boxes.css', 'estilo')) ;
$ This-> AddIncludeFile (IncludeFile novo ("text / css '%% http://images.habbo.com/habboweb/ web_build / web-gallery/v2/styles/tooltips.css', 'estilo')) ;
break;
}
}
função pública AddGeneric ($ tplName)
{
$ Tpl = new Template ($ tplName);
OutputData $ this-> .= $ tpl-> GetHtml ();
}
AddTemplate função pública ($ tpl)
{
OutputData $ this-> .= $ tpl-> GetHtml ();
}
função pública setParam ($ param, $ value)
{
$ This-> params [$ param] is_object = ($ valor)? $ Value-> fetch (): $ valor;
}
função pública UnsetParam ($ param)
{
unset ($ this-> params [$ param]);
}
função pública AddIncludeFile ($ incFile)
{
includeFiles $ this-> [] = $ incFile;
}
WriteIncludeFiles função pública ()
{
foreach (includeFiles $ this-> US $ f)
{
$ This-> Write ($ f-> GetHtml () LB.);
}
}
função pública Write ($ str)
{
OutputData $ this-> .= $ str;
}
FilterParams função pública ($ str)
{
foreach ($ params this-> US $ param => $ value)
{
$ Str str_ireplace = ('%' $ param '%', $ value, $ str..);
}
return $ str;
}
Saída da função pública ()
{
global $ fundamentais;
$ This-> Write (LB LB'<!-- uberCMS: «.... (Microtime (true) - $-core> execStart).. Peguei a saída esta página ->" LB LB);
echo $ this-> FilterParams ($ this-> OutputData);
}
}
Modelo de classe
{
privadas $ params = array ();
private $ tplName ='';
Modelo de função pública ($ tplName)
{
$ This-> tplName = $ tplName;
}
GetHtml função pública ()
{
global $ utilizadores;
extract ($ this-> params);
$ File = CWD. "Inc / tpl / '. $ This-> tplName. 'Tpl'.;
if (! file_exists ($ arquivo))
{
uberCore: SystemError ('erro do sistema Modelo', 'Não foi possível carregar o tema:' tplName $ this->.);
}
ob_start ();
include ($ arquivo);
$ Data = ob_get_contents ();
função ob_end_flush ();
return $ this-> FilterParams ($ dados);
}
FilterParams função pública ($ str)
{
foreach ($ params this-> US $ param => $ value)
{
if (is_object ($ valor))
{
continuar;
}
$ Str str_ireplace = ('%' $ param '%', $ value, $ str..);
}
return $ str;
}
função pública setParam ($ param, $ value)
{
$ This-> params [$ param] = $ valor;
}
função pública UnsetParam ($ param)
{
unset ($ this-> params [$ param]);
}
}
IncludeFile classe
{
private $ tipo;
private $ src;
privada $ rel;
private $ nome;
função pública IncludeFile ($ tipo, $ src, rel $ ='', $ name ='')
{
global $ tpl;
$ This-> tipo = $ tipo;
$ This-> src = $ src;
$ This-> rel = $ rel;
$ This-> nome = $ nome;
}
GetHtml função pública ()
{
switch ($ this-> tipo)
{
'Application / rss + xml' caso:
"Rel="' <link. $this-> Rel." Regresso "type =" '. Tipo $ this->. "Title =" ". Nome $ this->." Href = "". $ This - src> "/> ';.
'Text / javascript "caso:
"Src="' <script $this-> src.." Regresso "type =" text / javascript "> </ script> ';
'Text / css' caso:
default:
"Rel="' <link $this-> rel.." Regresso "href =" "type =" "/> 'src $ this->.'. 'Tipo $ this->..';
}
}
}
?>
Após salvar, entre no seu hotel e estará consertado! Se o Código parar de funcionar ou não funcionou no seu hotel, contate-nos!











0 comentários:
Postar um comentário