Habbek Fórum
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.
Entrar

Esqueci-me da senha

Procurar
 
 

Resultados por:
 


Rechercher Pesquisa avançada

Últimos assuntos
» como Fazer sing modelada
Desbugando cms , bugadas. EmptyQua Set 07, 2011 9:34 am por Lift

» Los Hunts swf.
Desbugando cms , bugadas. EmptySáb Jul 02, 2011 7:50 pm por Lift

» Instalando Uber CMs e uber Emulador
Desbugando cms , bugadas. EmptySeg maio 23, 2011 5:39 pm por Stifler

» COMO CRIAR UM HABBO V65 SEM BUG BY iNeox
Desbugando cms , bugadas. EmptyDom maio 22, 2011 10:40 am por Lift

» The Sims 3 – Dicas, cheats, manhas, códigos, truques e macetes!
Desbugando cms , bugadas. EmptyTer Abr 26, 2011 5:24 pm por Stifler

» The Sims 3 - Não Envelhecer
Desbugando cms , bugadas. EmptyTer Abr 26, 2011 5:22 pm por Stifler

» Separando Hc e vip no catalogo.
Desbugando cms , bugadas. EmptyTer Abr 26, 2011 8:29 am por Lift

» Alterando a quantidade inicial de moedas e pixels no seu hotel.
Desbugando cms , bugadas. EmptyTer Abr 26, 2011 8:29 am por Lift

» Adicionando mobis em seu catalogo.
Desbugando cms , bugadas. EmptyTer Abr 26, 2011 8:24 am por Lift

» {Jogo} Continue A História
Desbugando cms , bugadas. EmptySeg Abr 25, 2011 8:55 pm por Stifler

Votação
Top dos mais postadores
Stifler (19)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
Isabella (14)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
Lift (13)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
iNeox (6)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
Myke (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
▒▒ Nick Star ▒▒ (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
Y.Bruno.Dark.Y (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
endreo2011 (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
thaliaguedes (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 
CappuccinowFodinha (1)
Desbugando cms , bugadas. I_vote_lcapDesbugando cms , bugadas. I_voting_barDesbugando cms , bugadas. I_vote_rcap 

Parceiros
Habbek Radio

Desbugando cms , bugadas.

2 participantes

Ir para baixo

Desbugando cms , bugadas. Empty Desbugando cms , bugadas.

Mensagem por Isabella Seg Abr 11, 2011 6:47 pm

Olá, como vocês perceberam nestes dias aconteceu um erro bem chato o caso é as cms que ficaram bugadas.
Muita gente fez o seu comentario postando o que acham e quem fez este estrago, teve muitas respostas umas pessoas dizem que foi a sulake que derrubou cms , outras disem que foi a sulake que atualizou as imagens e tals , teves muitos comentarios mais na verdade ninguem sabe o que aconteceu so sabemos que as imagems bugaram.
Bom para arrumar as imagems é bem simples fassa o seguinte.
Abra o vertrigo / www folder / inc / Class.tpl.
Deleta tudo que tem na pasta Class.tpl e cole este codigo aqui:



Código:
<?php
/*=======================================================================
| HabbleCMS - Baseado em UberCMS, por Method (Renouut CSHP)
| #######################################################################
| Copyright (c) 2011, Method(Renouut CSHP)
\======================================================================*/

class uberTpl
{
  private $outputData;
  private $params = Array();
  private $includeFiles = Array();
 
  public function Init()
  {
      global $core, $users;
          $this->SetParam('hotelName', 'Habble-X');
      $this->SetParam('page_title', 'Habble-X Hotel - ');
      $this->SetParam('body_id', '');
      $this->SetParam('password', 'vertrigo');
      $this->SetParam('database', 'beta');
 
    $this->SetParam('HabboID', '<b><img src="' . WWW .
'/images/id.png" style="vertical-align: middle;"> ' .
$users->GetUserVar(USER_ID, 'mail') . '</b>');
      $this->SetParam('vipimage', '<img src="' . 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 - J.J.P.');
      $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="vertical-align: middle;"></b>');
      }
      else
      {
        $this->SetParam('habboLoggedIn', 'false');
        $this->SetParam('habboName', 'null');
      }
  }
 
  public function AddIncludeSet($set)
  {
      switch (strtolower($set))
      {
        case "frontpage":
       
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/landing.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/frontpage.css',
 'stylesheet'));       
            break;
           
        case "register":

 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
   
            $this->AddIncludeFile(new
IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
   
            $this->AddIncludeFile(new
IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css',
 'stylesheet'));     
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/changepassword.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/forcedemaillogin.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/quickregister.css',
 'stylesheet'));
            break;
     
        case "process-template":
       
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css',
 'stylesheet'));     
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/process.css',
 'stylesheet')); 
            break;
           
        case 'myhabbo':
       
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css',
 'stylesheet'));     
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css',
 'stylesheet'));           
            $this->AddIncludeFile(new
 IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/myhabbo.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/skins.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/dialogs.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/buttons.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/control.textarea.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/styles/myhabbo/boxes.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/myhabbo.css',
 'stylesheet'));
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://www.habbo.co.uk/myhabbo/styles/assets.css', 'stylesheet'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/homeview.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/lightwindow.css',
 'stylesheet'));
            break;


        case 'identity':
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css',
 'stylesheet'));     
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css',
 'stylesheet')); 
            break;
       
        case 'default':
        default:
       
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs2.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/visual.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/libs.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/common.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/javascript',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/fullcontent.js'));
 
          $this->AddIncludeFile(new IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/style.css',
 'stylesheet'));     
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/buttons.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/boxes.css',
 'stylesheet')); 
            $this->AddIncludeFile(new
IncludeFile('text/css',
'http://images.habbo.com/habboweb/%web_build%/web-gallery/v2/styles/tooltips.css',
 'stylesheet'));     
            break;
      }
  }
 
  public function AddGeneric($tplName)
  {
      $tpl = new Template($tplName);
      $this->outputData .= $tpl->GetHtml();
  }
 
  public function AddTemplate($tpl)
  {
      $this->outputData .= $tpl->GetHtml();
  }
 
  public function SetParam($param, $value)
  {
      $this->params[$param] = is_object($value) ? $value->fetch() : $value;
  }
 
  public function UnsetParam($param)
  {
      unset($this->params[$param]);
  }
 
  public function AddIncludeFile($incFile)
  {
      $this->includeFiles[] = $incFile;
  }
 
  public function WriteIncludeFiles()
  {
      foreach ($this->includeFiles as $f)
      {
        $this->Write($f->GetHtml() . LB);
      }
  }
 
  public function Write($str)
  {
      $this->outputData .= $str;
  }
 
  public function FilterParams($str)
  {
      foreach ($this->params as $param => $value)
      {
        $str = str_ireplace('%' . $param . '%', $value, $str);
      }
     
      return $str;
  }
 
  public function Output()
  {
      global $core;
 
 
    $this->Write(LB . LB . '<!-- uberCMS: Took ' .
(microtime(true) - $core->execStart) . ' to output this page -->' .
 LB . LB);
     
      echo $this->FilterParams($this->outputData);
  }
}

class Template
{
  private $params = Array();
  private $tplName = '';
 
  public function Template($tplName)
  {
      $this->tplName = $tplName;
  }
 
  public function GetHtml()
  {
      global $users;
 
      extract($this->params);
 
      $file = CWD . 'inc/tpl/' . $this->tplName . '.tpl';
 
      if (!file_exists($file))
      {
        uberCore::SystemError('Template system error', 'Could not load template: ' . $this->tplName);
      }
     
      ob_start();
      include($file);
      $data = ob_get_contents();
      ob_end_clean(); 
     
      return $this->FilterParams($data);
  }
 
  public function FilterParams($str)
  {
      foreach ($this->params as $param => $value)
      {
        if (is_object($value))
        {
            continue;
        }
     
        $str = str_ireplace('%' . $param . '%', $value, $str);
      }
     
      return $str;
  }
 
  public function SetParam($param, $value)
  {
      $this->params[$param] = $value;
  }
 
  public function UnsetParam($param)
  {
      unset($this->params[$param]);
  }     
}

class IncludeFile
{
  private $type;
  private $src;
  private $rel;
  private $name;

  public function IncludeFile($type, $src, $rel = '', $name = '')
  {
      global $tpl;
 
      $this->type = $type;
      $this->src = $src;
      $this->rel = $rel;
      $this->name = $name;
  }
 
  public function GetHtml()
  {
      switch ($this->type)
      {
        case 'application/rss+xml':
       
 
          return '<link rel="' . $this->rel . '" type="' .
$this->type . '" title="' . $this->name . '" href="' .
$this->src . '" />';
     
        case 'text/javascript':
       
            return '<script src="' . $this->src . '" type="text/javascript"></script>';
           
        case 'text/css':
        default:
       
            return '<link rel="' . $this->rel . '" href="' . $this->src . '" type="' . $this->type . '" />';
      }
  }
}

?>

Ta ai é so testa aqui funcionou !

Obs: Não funciona com toda cms, apenas com algumas.

Creditos:
Isabella (pelo tutorial)
Renouut (pelo codigo)
Isabella
Isabella
Admin
Admin

Mensagens Mensagens : 14
Data de inscrição : 31/03/2011
Localização : No Habbek

Ir para o topo Ir para baixo

Desbugando cms , bugadas. Empty Re: Desbugando cms , bugadas.

Mensagem por Stifler Ter Abr 12, 2011 10:52 pm

Good Tópic, gostei vou passa para meus amigos
Stifler
Stifler
Admin
Admin

Mensagens Mensagens : 19
Data de inscrição : 07/04/2011

Ir para o topo Ir para baixo

Ir para o topo


 
Permissões neste sub-fórum
Não podes responder a tópicos