ProPixel

Participe do fórum, é rápido e fácil

ProPixel
ProPixel
Gostaria de reagir a esta mensagem? Crie uma conta em poucos cliques ou inicie sessão para continuar.

Soluçao para o bug das imagens dos cms v54

+3
Johnnygpi
-Felipinho,
gabrieldias236
7 participantes
Ir para baixo
gabrieldias236
gabrieldias236
Membro Super Raro

<b>Idade</b> Idade : 30
<b>Posts</b> Posts : 598
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 2
We are EvilZ,We are the
bom gente como todos sabem alguns cms estao desorganizados mas eu pela primeira vez dei um jeito primeiro va no diretorio do seu cms e abra o me.php

apage tudo oque esta la e coloque isso
Código:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
| http://www.meth0d.org & http://www.sulake.biz
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

define('TAB_ID', 1);
define('PAGE_ID', 2);

require_once "global.php";

if (!LOGGED_IN)
{
    header("Location: " . WWW . "/");
    exit;
}
else if ($users->GetUserVar(USER_ID, 'newbie_status') == "0")
{
    header("Location: " . WWW . "/register/welcome");
    exit;
}

// Initialize template system
$tpl->Init();

// Initial variables
$tpl->SetParam('page_title', 'Home');

// Generate page header
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('generic');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/personal.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/habboclub.js'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/minimail.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/minimail.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-overrides-generic');
$tpl->AddGeneric('head-bottom');

// Generate generic top/navigation/login box
$tpl->AddGeneric('generic-top');

// Column 1
$tpl->Write('<div id="column1" class="column">');

// Me/infofeed widget
$compMe = new Template('comp-me');
$compMe->SetParam('look', $users->GetUserVar(USER_ID, 'look'));
$compMe->SetParam('motto', $users->GetUserVar(USER_ID, 'motto'));
$compMe->SetParam('creditsBalance', intval($users->GetUserVar(USER_ID, 'credits')));
$compMe->SetParam('pixelsBalance', intval($users->GetUserVar(USER_ID, 'activity_points')));
$compMe->SetParam('lastSignedIn', $users->GetUserVar(USER_ID, 'last_online'));
$compMe->SetParam('clubStatus', ($users->HasClub(USER_ID)) ? '<a href="%www%/credits/uberclub">' . $users->GetClubDays(USER_ID) . '</a> Dias' : '<a href="%www%/credits/uberclub">Entre para o Habbo Club »</a>');
//$compMe->SetParam('clubStatus', '');
$tpl->AddTemplate($compMe);

$tpl->AddGeneric('comp-minimail');
$tpl->AddGeneric('comp-hotcampaigns');

$tpl->Write('</div>');

// Column 2
$tpl->Write('<div id="column2" class="column">');
$tpl->AddGeneric('comp-news');
$tpl->AddGeneric('comp-usertags');
$tpl->AddGeneric('comp-twitter');
$tpl->Write('</div>');

// Column 3
$tpl->AddGeneric('generic-column3');

// Footer
$tpl->AddGeneric('footer');

// Output the page
$tpl->Output();

?>

feito assim feche e salve normalmente

agora va em client.php apague tudo e colo isto
Código:
<?php
/*=======================================================================
| UberCMS - Advanced Website and Content Management System for uberEmu
| #######################################################################
| Copyright (c) 2010, Roy 'Meth0d' and updates by Matthew 'MDK'
| http://www.meth0d.org & http://www.sulake.biz
| #######################################################################
| This program is free software: you can redistribute it and/or modify
| it under the terms of the GNU General Public License as published by
| the Free Software Foundation, either version 3 of the License, or
| (at your option) any later version.
| #######################################################################
| This program is distributed in the hope that it will be useful,
| but WITHOUT ANY WARRANTY; without even the implied warranty of
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
| GNU General Public License for more details.
\======================================================================*/

define('HIDE_FEEDBACK', true);

require_once "global.php";
require_once "inc/class.rooms.php";

if (!LOGGED_IN)
{
    header("Location: " . WWW. "/login_popup");
    exit;
}

$forwardType = 0;
$forwardId = 0;

if ($users->getUserVar(USER_ID, 'newbie_status') == "0")
{
    if (isset($_GET['createRoom']) && is_numeric($_GET['createRoom']))
    {
        $roomId = RoomManager::CreateRoom(USER_NAME . "'s room", USER_NAME, 'model_s');

        switch (intval($_GET['createRoom']))
        {
            default:
            case 0:
           
                RoomManager::PaintRoom($roomId, '1701', '601');
                break;
               
            case 1:
           
                RoomManager::PaintRoom($roomId, '607', '111');
                break;
               
            case 2:
           
                RoomManager::PaintRoom($roomId, '1901', '301');
                break;
               
            case 3:
           
                RoomManager::PaintRoom($roomId, '1801', '110');
                break;
               
            case 4:
           
                RoomManager::PaintRoom($roomId, '503', '104');
                break;
               
            case 5:
           
                RoomManager::PaintRoom($roomId, '804', '107');
                break;
        }

        //die('createRoom Result: ' . $roomId);
        dbquery("UPDATE users SET home_room = '" . $roomId . "', newbie_status = '1' WHERE id = '" . USER_ID . "' LIMIT 1");
       
        //$forwardType = 2;
        //$forwardId = $roomId;
    }
    else
    {
        header("Location: " . WWW . "/client?createRoom=" . rand(0, 5));
        exit;
    }
}
else if (isset($_GET['forwardType']) && isset($_GET['forwardId']) && is_numeric($_GET['forwardType']) && is_numeric($_GET['forwardId']))
{
    $forwardType = intval($_GET['forwardType']);
    $forwardId = intval($_GET['forwardId']);
   
    if ($forwardType >= 3 || $forwardType <= 0)
    {
        return;
    }
}

if ($users->GetUserVar(USER_ID, "newbie_status", false) == "1")
{
    header("Location: " . WWW . "/account/policy-verify");
    exit;
}

$users->CheckSSO(USER_ID);

$tpl->Init();

$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('default');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/habboclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/habboflashclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/habboflashclient.js'));           
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-bottom');

$client = new Template('page-client');
$client->SetParam('page_title', ' ');
$client->SetParam('sso_ticket', $users->GetUserVar(USER_ID, 'auth_ticket', false));
$client->SetParam('flash_base', 'http://images.habbo.com/gordon/55_7110c7122872fa19356f8608c88fa174/');
$client->SetParam('flash_client_url', 'http://images.habbo.com/dcr/r51_none_b4ea29afdff17a13afb841a9811ebf55/');
$client->SetParam('hotel_status', $core->GetUsersOnline() . ' users online now!');
$client->SetParam('forwardType', $forwardType);
$client->SetParam('forwardId', $forwardId);

if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
    $client->SetParam('sso_ticket', $_GET['forceTicket']);
}

$tpl->AddTemplate($client);

$tpl->Output();

?>

salve e va na pasta inc e em class.tpl.php apague tudo e cole isto
Código:
<?php
/*=======================================================================
| WareCMS - Sistema avançado de Administração de CMS
| #######################################################################
| Copyright (c) 2010, Lucas Reis & Dcr-Host
| #######################################################################
| Este programa é um FreeSoftware aonde você pode editar os conteúdos
| com os direitos autorais do editor.
| #######################################################################
| Este programa foi editado traduzido por Lucas Reis, créditos totais
| para Meth0d, autor original do programa.
\======================================================================*/

class uberTpl
{
    private $outputData;
    private $params = Array();
    private $includeFiles = Array();
   
    public function Init()
    {
        global $core, $users;
   
        $this->SetParam('', 'Holo');
        $this->SetParam('body_id', '');
        $this->SetParam('page_title', ' ');
        $this->SetParam('flash_build', 'flash_50_9');
        $this->SetParam('web_build', '53_9bbb1abf58b7fcbd653b098c81f6e9ca/6');
        $this->SetParam('web_build_str', '50-BUILD66 - 06.05.2010 22:28 - Novic');
        $this->SetParam('req_path', WWW);
        $this->SetParam('www', WWW);
        $this->SetParam('hotel_status_fig', uberCore::GetSystemStatusString(true));
        $this->SetParam('hotel_status', uberCore::GetSystemStatusString(false));
       
        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/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/landing.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/frontpage.css', 'stylesheet'));           
                break;
               
            case "register":

                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/common.js'));           
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/tooltips.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/embeddedregistration.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/simpleregistration.js'));
                break;
       
            case "process-template":
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/tooltips.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/process.css', 'stylesheet'));   
                break;
               
            case 'myhabbo':
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/tooltips.css', 'stylesheet'));               
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/myhabbo.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/skins.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/dialogs.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/buttons.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/control.textarea.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/styles/myhabbo/boxes.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/myhabbo.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://www.habbo.com/myhabbo/styles/assets.css', 'stylesheet'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/homeview.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/lightwindow.css', 'stylesheet'));
                break;
           
            case 'default':
            default:
           
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs2.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/visual.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/libs.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/common.js'));
                $this->AddIncludeFile(new IncludeFile('text/javascript', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/static/js/fullcontent.js'));
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/style.css', 'stylesheet'));       
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/buttons.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/web-gallery/v2/styles/boxes.css', 'stylesheet'));   
                $this->AddIncludeFile(new IncludeFile('text/css', 'http://images.habbo.com/habboweb/55_7110c7122872fa19356f8608c88fa174/7/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 . '" />';
        }
    }
}

?>

salve e va em seu site e vc estara tao feliz que vai chorar

Creditos:a mim por fazer o tutorial e descobrir o novo diretorio de imagens
se for postar em outro forum blog ou site poste os creditos


Última edição por gabrieldias236 em Ter 31 Ago 2010, 09:36, editado 2 vez(es)
avatar
Convidad
Convidado
Ótimo , depois testo no meu porque o meu as vezes buga :S .
-Felipinho,
-Felipinho,
Membro

<b>Idade</b> Idade : 31
<b>Posts</b> Posts : 161
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 0
Habboz !
Faz tempo que eu sei disso, penas que não postei um tuto!
Johnnygpi
Johnnygpi
Membro Avançado

<b>Idade</b> Idade : 29
<b>Posts</b> Posts : 317
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 0
Habboz !
Valeu , Consegui arruma esse Bug Infeliz no Meu Hotel !!! Agora ele esta novinho HEHE :D
Coca-COla
Coca-COla
Membro Elevado

<b>Idade</b> Idade : 43
<b>Posts</b> Posts : 295
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : -6
Habboz !
O Habby não tem essa pasta então faz oq ?
A Parte Inc ...
é includes, e en que parte de includes agente substitui ?
gabrieldias236
gabrieldias236
Membro Super Raro

<b>Idade</b> Idade : 30
<b>Posts</b> Posts : 598
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 2
We are EvilZ,We are the
seu cms é v54?
Coca-COla
Coca-COla
Membro Elevado

<b>Idade</b> Idade : 43
<b>Posts</b> Posts : 295
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : -6
Habboz !
é o novo HabbyCMS_r2
gabrieldias236
gabrieldias236
Membro Super Raro

<b>Idade</b> Idade : 30
<b>Posts</b> Posts : 598
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 2
We are EvilZ,We are the
entao é o classes php eu acho
Coca-COla
Coca-COla
Membro Elevado

<b>Idade</b> Idade : 43
<b>Posts</b> Posts : 295
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : -6
Habboz !
Destro de includes só tem as seguintes pastas;
news_headlines
session
core
sso
mutant
version

Qual dos eu eu substituo pelo ultil]mo citado ??
gabrieldias236
gabrieldias236
Membro Super Raro

<b>Idade</b> Idade : 30
<b>Posts</b> Posts : 598
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 2
We are EvilZ,We are the
tenta o core ,mas copia ele antes e coloca em outro lugar ai vc edita se piorar o caso vc pega o que voce copio e cola la devolta
Coca-COla
Coca-COla
Membro Elevado

<b>Idade</b> Idade : 43
<b>Posts</b> Posts : 295
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : -6
Habboz !
velho eu criei meu primeiro Uber... Agora como eu faço para me dar um adm ?
gabrieldias236
gabrieldias236
Membro Super Raro

<b>Idade</b> Idade : 30
<b>Posts</b> Posts : 598
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 2
We are EvilZ,We are the
vai no phpmyadmin entra na sua database vai em users ai vai aparecer os carinhas registrados clica no lapizinho antes do seu nome ai voce acha um lugar escrito rank e na frente onde ta escrito 1 muda pra 7 ai desce a pagina e aperta executar
SandroHc
SandroHc
Membro

<b>Idade</b> Idade : 36
<b>Posts</b> Posts : 27
<b>Créditos</b> Créditos : 0
<b>Respeito</b> Respeito : 0
É o bug das imagens?
Moloch
Moloch
Membro Pro

<b>Posts</b> Posts : 1411
<b>Créditos</b> Créditos : 100
<b>Respeito</b> Respeito : 52
(:
Tenho uma duvida !
Este codigo ai funfa em qualquer Cms que seja v54 ???
# fiGHT.Graph ~
# fiGHT.Graph ~
Membro Lendário

<b>Idade</b> Idade : 26
<b>Posts</b> Posts : 6268
<b>Créditos</b> Créditos : 222
<b>Respeito</b> Respeito : 51
Snack escreveu:Tenho uma duvida !
Este codigo ai funfa em qualquer Cms que seja v54 ???

que feio veio, necropost, na proxima é warning
Conteúdo patrocinado
Ir para o topo
Permissões neste sub-fórum
Não podes responder a tópicos