UberCMS Client

rent

Member
Sep 24, 2012
408
67
Hey can anyone explain how to fix my UberCMS client its all white, i did my r63 folder and edited my External_vars but now what ??? please help im offering Admin on my hotel :)
 

Li1M0ST3Rz

I <3 Bianca
Sep 13, 2010
269
166
The EMU is up i edited my VARS and stuff, The Client remains White my Webbuild is up to date. how to fix this?facepalm.jpg
Replace the client with this:
PHP:
<?php
    /*
              |
        .  .|---.,---.,---.
        |  ||  ||---'|        UberCMS 2.0
        `---'`---'`---'`
            UberCMS
            Coded originally by Meth0d (2010-2011)
            Continued by Jonty (2011-now)
           
            Build 2.0.0 SS, Public
    */
 
 
    require_once "global.php";
 
 
if (!LOGGED_IN)
{
    header("Location: " . WWW. "/");
    exit;
}
 
 
if(!isset($_SESSION["has_voted"]) || $_SESSION["has_voted"] == false) {
        if ($voting['thehabbos_enabled'] == true) {
            $hasVoted = true;
        }
        else {
            $hasVoted = false;
        }
}
else {
        $hasVoted = true;
}
 
 
if($hasVoted == false) {
    $_SESSION["has_voted"] = true;
    header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . $voting['thehabbos_returnurl']);
}
 
 
if($site['enable_pincodes'] == true && $users->GetUserVar(USER_ID, 'rank') >= $site['pincode_minrank']) {
    if(!isset($_SESSION["staff_PassAuth"])) {
        header ("Location: " . WWW . "/client_denied");
    }
}
 
 
// **************************************************************************************************************
// **************************************************************************************************************
$users->CheckSSO(USER_ID);
 
 
$checkExists = dbquery("SELECT userid FROM user_tickets WHERE userid = '" . USER_ID . "'");
$userTicket = $users->GetUserVar(USER_ID, 'auth_ticket');
 
 
if($server['butterfly_sso'] == true) {
    if(mysql_num_rows($checkExists)) {
        dbquery("UPDATE user_tickets SET sessionticket = '" . $userTicket . "', ipaddress = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE userid = '" . USER_ID . "'");
    }
    else {
        dbquery("INSERT INTO user_tickets (userid,sessionticket,ipaddress) VALUES ('" . USER_ID . "', '" . $userTicket . "', '" . $_SERVER["REMOTE_ADDR"] . "')");
    }
}
else if($server['phoenix_secure_sessions'] == true) {
    dbquery("UPDATE `users` SET `auth_ticket` = '" . $users->GetUserVar(USER_ID, "auth_ticket") . "' WHERE id = '" . USER_ID . "'");
}
 
 
 
 
$forwardType = 0;
$forwardId = 0;
 
 
// Due to an issue with most servers, tags have been disabled in the CMS by default.
 
 
if (mysql_num_rows(dbquery("SELECT * FROM user_tags WHERE user_id = '" . USER_ID . "' LIMIT 1"))) {
    dbquery("DELETE FROM user_tags WHERE user_id = '" . USER_ID . "'");
}
 
 
if ($users->getUserVar(USER_ID, 'newbie_status') == "2") {   
    // Run POST-REGISTRATION checks
    dbquery("UPDATE `users` SET
                `motto` = '" . $server['default_motto'] . "',
                `credits` = '" . $server['default_credits'] . "',
                `activity_points` = '" . $server['default_pixels'] . "',
                `look` = '" . $server['default_look'] . "',
                `home_room` = '" . $server['default_room'] . "',
                `rank` = '" . $server['default_rank'] . "',
                `newbie_status` = '3'
                WHERE `id` = '" . USER_ID . "'");
}
 
 
 
 
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '".USER_NAME."'");
 
 
$tpl->Init();
 
 
$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://127.0.0.1/r63/');
$client->SetParam('flash_client_url', 'http://127.0.0.1/r63/');
$client->SetParam('hotel_status', $core->GetUsersOnline() . ' users online now!');
$client->SetParam('forwardType', $forwardType);
$client->SetParam('forwardId', $forwardId);
 
 
 
 
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('default');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboflashclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://%cdn%/%hotel%/%web_build%/web-gallery/static/js/habboflashclient.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-bottom');
 
 
 
 
if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
    $client->SetParam('sso_ticket', $_GET['forceTicket']);
}
 
 
$tpl->AddTemplate($client);
 
 
$tpl->Output();
 
 
?>
 

rent

Member
Sep 24, 2012
408
67
Replace the client with this:
PHP:
<?php
    /*
              |
        .  .|---.,---.,---.
        |  ||  ||---'|        UberCMS 2.0
        `---'`---'`---'`
            UberCMS
            Coded originally by Meth0d (2010-2011)
            Continued by Jonty (2011-now)
         
            Build 2.0.0 SS, Public
    */
 
 
    require_once "global.php";
 
 
if (!LOGGED_IN)
{
    header("Location: " . WWW. "/");
    exit;
}
 
 
if(!isset($_SESSION["has_voted"]) || $_SESSION["has_voted"] == false) {
        if ($voting['thehabbos_enabled'] == true) {
            $hasVoted = true;
        }
        else {
            $hasVoted = false;
        }
}
else {
        $hasVoted = true;
}
 
 
if($hasVoted == false) {
    $_SESSION["has_voted"] = true;
    header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . $voting['thehabbos_returnurl']);
}
 
 
if($site['enable_pincodes'] == true && $users->GetUserVar(USER_ID, 'rank') >= $site['pincode_minrank']) {
    if(!isset($_SESSION["staff_PassAuth"])) {
        header ("Location: " . WWW . "/client_denied");
    }
}
 
 
// **************************************************************************************************************
// **************************************************************************************************************
$users->CheckSSO(USER_ID);
 
 
$checkExists = dbquery("SELECT userid FROM user_tickets WHERE userid = '" . USER_ID . "'");
$userTicket = $users->GetUserVar(USER_ID, 'auth_ticket');
 
 
if($server['butterfly_sso'] == true) {
    if(mysql_num_rows($checkExists)) {
        dbquery("UPDATE user_tickets SET sessionticket = '" . $userTicket . "', ipaddress = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE userid = '" . USER_ID . "'");
    }
    else {
        dbquery("INSERT INTO user_tickets (userid,sessionticket,ipaddress) VALUES ('" . USER_ID . "', '" . $userTicket . "', '" . $_SERVER["REMOTE_ADDR"] . "')");
    }
}
else if($server['phoenix_secure_sessions'] == true) {
    dbquery("UPDATE `users` SET `auth_ticket` = '" . $users->GetUserVar(USER_ID, "auth_ticket") . "' WHERE id = '" . USER_ID . "'");
}
 
 
 
 
$forwardType = 0;
$forwardId = 0;
 
 
// Due to an issue with most servers, tags have been disabled in the CMS by default.
 
 
if (mysql_num_rows(dbquery("SELECT * FROM user_tags WHERE user_id = '" . USER_ID . "' LIMIT 1"))) {
    dbquery("DELETE FROM user_tags WHERE user_id = '" . USER_ID . "'");
}
 
 
if ($users->getUserVar(USER_ID, 'newbie_status') == "2") { 
    // Run POST-REGISTRATION checks
    dbquery("UPDATE `users` SET
                `motto` = '" . $server['default_motto'] . "',
                `credits` = '" . $server['default_credits'] . "',
                `activity_points` = '" . $server['default_pixels'] . "',
                `look` = '" . $server['default_look'] . "',
                `home_room` = '" . $server['default_room'] . "',
                `rank` = '" . $server['default_rank'] . "',
                `newbie_status` = '3'
                WHERE `id` = '" . USER_ID . "'");
}
 
 
 
 
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '".USER_NAME."'");
 
 
$tpl->Init();
 
 
$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://127.0.0.1/r63/');
$client->SetParam('flash_client_url', 'http://127.0.0.1/r63/');
$client->SetParam('hotel_status', $core->GetUsersOnline() . ' users online now!');
$client->SetParam('forwardType', $forwardType);
$client->SetParam('forwardId', $forwardId);
 
 
 
 
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('default');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboflashclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://%cdn%/%hotel%/%web_build%/web-gallery/static/js/habboflashclient.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-bottom');
 
 
 
 
if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
    $client->SetParam('sso_ticket', $_GET['forceTicket']);
}
 
 
$tpl->AddTemplate($client);
 
 
$tpl->Output();
 
 
?>
im using Desire's Edit ??? it wont work it just fked up my client
 

Li1M0ST3Rz

I <3 Bianca
Sep 13, 2010
269
166
uhm can you give me link for it please :) im willing to buy you a sub :)
Ehh okay :p
For IIS:
For Nginx:
Xampp:
Fix Client:
PHP:
<?php
    /*
              |
        .  .|---.,---.,---.
        |  ||  ||---'|        UberCMS 2.0
        `---'`---'`---'`
            UberCMS
            Coded originally by Meth0d (2010-2011)
            Continued by Jonty (2011-now)
       
            Build 2.0.0 SS, Public
    */
 
 
    require_once "global.php";
 
 
if (!LOGGED_IN)
{
    header("Location: " . WWW. "/");
    exit;
}
 
 
if(!isset($_SESSION["has_voted"]) || $_SESSION["has_voted"] == false) {
        if ($voting['thehabbos_enabled'] == true) {
            $hasVoted = true;
        }
        else {
            $hasVoted = false;
        }
}
else {
        $hasVoted = true;
}
 
 
if($hasVoted == false) {
    $_SESSION["has_voted"] = true;
    header("Location: http://votingapi.com/vote.php?username=" . $voting['thehabbos_username'] . "&api=" . $voting['thehabbos_returnurl']);
}
 
 
if($site['enable_pincodes'] == true && $users->GetUserVar(USER_ID, 'rank') >= $site['pincode_minrank']) {
    if(!isset($_SESSION["staff_PassAuth"])) {
        header ("Location: " . WWW . "/client_denied");
    }
}
 
 
// **************************************************************************************************************
// **************************************************************************************************************
$users->CheckSSO(USER_ID);
 
 
$checkExists = dbquery("SELECT userid FROM user_tickets WHERE userid = '" . USER_ID . "'");
$userTicket = $users->GetUserVar(USER_ID, 'auth_ticket');
 
 
if($server['butterfly_sso'] == true) {
    if(mysql_num_rows($checkExists)) {
        dbquery("UPDATE user_tickets SET sessionticket = '" . $userTicket . "', ipaddress = '" . $_SERVER["REMOTE_ADDR"] . "' WHERE userid = '" . USER_ID . "'");
    }
    else {
        dbquery("INSERT INTO user_tickets (userid,sessionticket,ipaddress) VALUES ('" . USER_ID . "', '" . $userTicket . "', '" . $_SERVER["REMOTE_ADDR"] . "')");
    }
}
else if($server['phoenix_secure_sessions'] == true) {
    dbquery("UPDATE `users` SET `auth_ticket` = '" . $users->GetUserVar(USER_ID, "auth_ticket") . "' WHERE id = '" . USER_ID . "'");
}
 
 
 
 
$forwardType = 0;
$forwardId = 0;
 
 
// Due to an issue with most servers, tags have been disabled in the CMS by default.
 
 
if (mysql_num_rows(dbquery("SELECT * FROM user_tags WHERE user_id = '" . USER_ID . "' LIMIT 1"))) {
    dbquery("DELETE FROM user_tags WHERE user_id = '" . USER_ID . "'");
}
 
 
if ($users->getUserVar(USER_ID, 'newbie_status') == "2") {
    // Run POST-REGISTRATION checks
    dbquery("UPDATE `users` SET
                `motto` = '" . $server['default_motto'] . "',
                `credits` = '" . $server['default_credits'] . "',
                `activity_points` = '" . $server['default_pixels'] . "',
                `look` = '" . $server['default_look'] . "',
                `home_room` = '" . $server['default_room'] . "',
                `rank` = '" . $server['default_rank'] . "',
                `newbie_status` = '3'
                WHERE `id` = '" . USER_ID . "'");
}
 
 
 
 
dbquery("UPDATE users SET ip_last = '".$_SERVER['REMOTE_ADDR']."' WHERE username = '".USER_NAME."'");
 
 
$tpl->Init();
 
 
$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://127.0.0.1/r63/');
$client->SetParam('flash_client_url', 'http://127.0.0.1/r63/');
$client->SetParam('hotel_status', $core->GetUsersOnline() . ' users online now!');
$client->SetParam('forwardType', $forwardType);
$client->SetParam('forwardId', $forwardId);
 
 
 
 
$tpl->AddGeneric('head-init');
$tpl->AddIncludeSet('default');
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/css', 'http://%cdn%/%hotel%/%web_build%/web-gallery/styles/habboflashclient.css', 'stylesheet'));
$tpl->AddIncludeFile(new IncludeFile('text/javascript', 'http://%cdn%/%hotel%/%web_build%/web-gallery/static/js/habboflashclient.js'));
$tpl->WriteIncludeFiles();
$tpl->AddGeneric('head-bottom');
 
 
 
 
if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
    $client->SetParam('sso_ticket', $_GET['forceTicket']);
}
 
 
$tpl->AddTemplate($client);
 
 
$tpl->Output();
 
 
?>
 

Users who are viewing this thread

Top