UberCMS Stable Edit

Page 4 of 5 FirstFirst 12345 LastLast
Results 46 to 60 of 65
  1. #46
    I'm back! iJay is offline
    MemberRank
    Nov 2008 Join Date
    Down Under ;)Location
    602Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by PowahAlert View Post
    ON TOPIC: Sean not that stable, but yeah atleast you've released something.


    OFF TOPIC:



    Jay, that was age's ago, and anyway's, you might not remember but I actually asked you age's ago when you closed it, can I have the name, and you said yeah. and You mike Stfu, you don't even know me do you?

    Jay, we're mate's now, but anyway's if you can't remember sorry "for taking your hotel name" (But I did ask)

    - |ivar
    Okay, No dramas mate, Chill out

  2. #47
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by iJay View Post
    Okay, No dramas mate, Chill out
    Yeah, ok, Jay alright now, but does that Mike guy know me? He need's shut his mouth before he types.

  3. #48
    Account Upgraded | Title Enabled! robertm3363 is offline
    MemberRank
    Aug 2010 Join Date
    ukLocation
    308Posts

    Re: UberCMS Stable Edit

    hey, found this, ty for it the index page works perfect... no other pages work, they fail...(also how do i change the green part across the top?)

  4. #49
    sexiess is a sin. Subway is offline
    MemberRank
    Jun 2010 Join Date
    2,491Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by robertm3363 View Post
    hey, found this, ty for it the index page works perfect... no other pages work, they fail...(also how do i change the green part across the top?)
    just replace all the inc >> tpl files with these one's from regualr uberCMS release

    2shared - download UberCMS r51.rar

    And just edit the pages to your extent etc.

    Thank me if you want

  5. #50
    Member BlackRock is offline
    MemberRank
    Nov 2010 Join Date
    54Posts

    Re: UberCMS Stable Edit

    Thankz :D

  6. #51
    Account Upgraded | Title Enabled! GrandCoder is offline
    MemberRank
    Jul 2010 Join Date
    BramptonLocation
    413Posts

    Re: UberCMS Stable Edit

    All the Pages Work. You Just Simply Need To Update Your Web-Build. Heres Mines 100 % working until habbo updates, duhh.
    PHP Code:
    <?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. 
    \======================================================================*/ 

    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''62_b816f54e68901358926b378dbc1adbd7/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/%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/visual.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/embeddedregistration.css''stylesheet')); 
                    
    $this->AddIncludeFile(new IncludeFile('text/javascript''http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/simpleregistration.js')); 
                    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 
    '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 '" />'
            } 
        } 


    ?>
    Replace your class.tpl with this. thank me if it helped.

  7. #52
    hoi ik ben cool Merijn is offline
    MemberRank
    Dec 2009 Join Date
    The NetherlandsLocation
    492Posts

    Re: UberCMS Stable Edit

    UberCMS is never 'stable' there must be some bugs.

  8. #53
    Account Upgraded | Title Enabled! No0b is offline
    MemberRank
    Jul 2010 Join Date
    Michigan, USLocation
    1,426Posts

    Re: UberCMS Stable Edit

    Thanks GrandCoder :D I don't whole class.php folder all I needed was the webbuild but thanks anyways :D

  9. #54
    Account Upgraded | Title Enabled! robertm3363 is offline
    MemberRank
    Aug 2010 Join Date
    ukLocation
    308Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by GrandCoder View Post
    All the Pages Work. You Just Simply Need To Update Your Web-Build. Heres Mines 100 % working until habbo updates, duhh.
    PHP Code:
    <?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. 
    \======================================================================*/ 

    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''62_b816f54e68901358926b378dbc1adbd7/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/%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/visual.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/embeddedregistration.css''stylesheet')); 
                    
    $this->AddIncludeFile(new IncludeFile('text/javascript''http://images.habbo.com/habboweb/%web_build%/web-gallery/static/js/simpleregistration.js')); 
                    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 
    '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 '" />'
            } 
        } 


    ?>
    Replace your class.tpl with this. thank me if it helped.
    WOW! thanks soo much xD! my hotels called RDM hotel xD!

  10. #55
    Apprentice Justinco12 is offline
    MemberRank
    Nov 2010 Join Date
    24Posts

    Re: UberCMS Stable Edit

    Srry mate, this is totally fucked xD

  11. #56
    Novice Tunes is offline
    MemberRank
    Oct 2009 Join Date
    4Posts

    Re: UberCMS Stable Edit

    I use it for my Hotel but the Client does not work can you help me??

    Here are Screens of my Hotel

    http://myphb.bplaced.net/unbenannt/Unbenannt.png

    http://myphb.bplaced.net/unbenannt/Unbenannt1.png

    http://myphb.bplaced.net/unbenannt/Unbenannt2.png

    http://myphb.bplaced.net/unbenannt/Unbenannt3.png

    http://myphb.bplaced.net/unbenannt/Unbenannt4.png

    http://myphb.bplaced.net/unbenannt/Unbenannt5.png

    I Love it :D

  12. #57
    Account Upgraded | Title Enabled! robertm3363 is offline
    MemberRank
    Aug 2010 Join Date
    ukLocation
    308Posts

    Re: UberCMS Stable Edit

    hey, you need an emulator and swf's try searching it on google xD

  13. #58
    Novice Tunes is offline
    MemberRank
    Oct 2009 Join Date
    4Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by robertm3363 View Post
    hey, you need an emulator and swf's try searching it on google xD
    I know i use the UberEmulator edited by Slaxxer V3 but i need help with the client...

  14. #59
    swagggggg Livar is offline
    MemberRank
    Oct 2008 Join Date
    United KingdomLocation
    2,272Posts

    Re: UberCMS Stable Edit

    STOP, bumping for *censored* sake! Go make yourself an Help thread. MOD's There is no use in this thread, atleast close?

  15. #60
    ☮TAKU???? seanrom is offline
    MemberRank
    Nov 2009 Join Date
    1,004Posts

    Re: UberCMS Stable Edit

    Quote Originally Posted by winterpartys View Post
    Index page looks ugleh
    Agree. its the normal version off ubercms, just some added codes that its quitly simple



Page 4 of 5 FirstFirst 12345 LastLast

Advertisement