-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Jonteh I found a few things that have caused me trouble.
A. You use ". www ." on some of the pages, rather than %www%, which actually works, and this applies to other things.
B. Avatar imagery doesn't work unless you edit it.
C. I'm getting the flash player error upon entering client. Anyone know a fix for this; been so long since I had it!
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
FullmetalPride
Jonteh I found a few things that have caused me trouble.
A. You use ". www ." on some of the pages, rather than %www%, which actually works, and this applies to other things.
B. Avatar imagery doesn't work unless you edit it.
C. I'm getting the flash player error upon entering client. Anyone know a fix for this; been so long since I had it!
Try this Fullmetal:
Quote:
Originally Posted by
Jonteh
newclient.php
PHP Code:
<?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://images.habbo.com/swf/r64/');
$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);
$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/styles/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();
?>
page-client.tpl - this is my personal zap one so the values in the configuration won't set to this
PHP Code:
<noscript> <meta http-equiv="refresh" content="0;url=/client/nojs" /></noscript>
<script type="text/javascript"> FlashExternalInterface.loginLogEnabled = true; FlashExternalInterface.logLoginStep("web.view.start"); if (top == self) { FlashHabboClient.cacheCheck(); } var flashvars = { "client.allow.cross.domain" : "1", "client.notify.cross.domain" : "1", "connection.info.host" : "127.0.0.1", "connection.info.port" : "30000", "site.url" : "http://zaphotel.net", "url.prefix" : "http://zaphotel.net", "client.reload.url" : "http://zaphotel.net/login_popup", "client.fatal.error.url" : "http://zaphotel.net/flash_client_error", "client.connection.failed.url" : "http://zaphotel.net/client", "external.variables.txt" : "http://zaphotel.net/lolcats/bflyswfs/external_variables.txt", "external.texts.txt" : "http://zaphotel.net/externals.php?id=external_flash_texts", "productdata.load.url" : "http://zaphotel.net/lolcats/bflyswfs/productdata.txt", "furnidata.load.url" : "http://zaphotel.net/lolcats/bflyswfs/furnidata.txt", "use.sso.ticket" : "1", "sso.ticket" : "%sso_ticket%", "processlog.enabled" : "1", "account_id" : "19927505", "client.starting" : "Please wait! Zap is Loading.", "flash.client.url" : "http://zaphotel.net/client.php", "user.hash" : "199275052dbf5f89adb0a643bf16b0ea1cd646db", "flash.client.origin" : "popup" };
var params = { "base" : "http://zaphotel.net/lolcats/bflyswfs/", "allowScriptAccess" : "always", "menu" : "false" }; if (!(HabbletLoader.needsFlashKbWorkaround())) { params["wmode"] = "opaque"; } var clientUrl = "http://zaphotel.net/lolcats/bflyswfs/Working.swf"; swfobject.embedSWF(clientUrl, "flash-container", "100%", "100%", "10.0.0", "http://%cdn%/%hotel%/%web_build%/web-gallery/flash/expressInstall.swf", flashvars, params);
window.onbeforeunload = unloading; function unloading() { var clientObject; if (navigator.appName.indexOf("Microsoft") != -1) { clientObject = window["flash-container"]; } else { clientObject = document["flash-container"]; } try { clientObject.unloading(); } catch (e) {} }</script>
<meta name="description" content="Check into the worldís largest virtual hotel for FREE! Meet and make friends, play games, chat with others, create your avatar, design rooms and moreÖ" /><meta name="keywords" content="habbo hotel, virtual, world, social network, free, community, avatar, chat, online, teen, roleplaying, join, social, groups, forums, safe, play, games, online, friends, teens, rares, rare furni, collecting, create, collect, connect, furni, furniture, pets, room design, sharing, expression, badges, hangout, music, celebrity, celebrity visits, celebrities, mmo, mmorpg, massively multiplayer" />
<!--[if IE 8]><link rel="stylesheet" href="http://%cdn%/%hotel%/%web_build%/web-gallery/v2/styles/ie8.css" type="text/css" /><![endif]--><!--[if lt IE 8]><link rel="stylesheet" href="http://%cdn%/%hotel%/%web_build%/web-gallery/v2/styles/ie.css" type="text/css" /><![endif]--><!--[if lt IE 7]><link rel="stylesheet" href="http://%cdn%/%hotel%/%web_build%/web-gallery/v2/styles/ie6.css" type="text/css" /><script src="http://%cdn%/%hotel%/%web_build%/web-gallery/static/js/pngfix.js" type="text/javascript"></script><script type="text/javascript">try { document.execCommand('BackgroundImageCache', false, true); } catch(e) {}</script>
<style type="text/css">body { behavior: url(/js/csshover.htc); }</style><![endif]--><meta name="build" content="63-BUILD36 - 16.11.2010 11:51 - com" /></head>
<body id="client" class="flashclient"><div id="overlay"></div><img src="http://%cdn%/%hotel%/%web_build%/web-gallery/v2/images/page_loader.gif" style="position:absolute; margin: -1500px;" />
<div id="overlay"></div><div id="client-ui" > <div id="flash-wrapper"> <div id="flash-container"> <div id="content" style="width: 400px; margin: 20px auto 0 auto; display: none">
<div class="cbb clearfix"> <h2 class="title">Please update your Flash Player to the latest version.</h2> <div class="box-content"> <p>You can install and download Adobe Flash Player here: <a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'get.adobe.com', '/flashplayer/']);" rel="nofollow" href="http://get.adobe.com/flashplayer/">Install flash player</a>. More instructions for installation can be found here: <a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.adobe.com', '/products/flashplayer/productinfo/instructions/']);" rel="nofollow" href="http://www.adobe.com/products/flashplayer/productinfo/instructions/">More information</a></p> <p><a onclick="_gaq.push(['_trackEvent', 'Outgoing', 'www.adobe.com', '/go/getflashplayer']);" rel="nofollow" href="http://www.adobe.com/go/getflashplayer"><img src="http://%cdn%/%hotel%/%web_build%/web-gallery/v2/images/client/get_flash_player.gif" alt="Get Adobe Flash player" /></a></p> </div></div>
</div> <script type="text/javascript"> $('content').show(); </script> <noscript> <div style="width: 400px; margin: 20px auto 0 auto; text-align: center"> <p>If you are not automatically redirected, please <a href="/client/nojs">click here</a></p> </div> </noscript> </div> </div> <div id="content" class="client-content"></div> </div> <div style="display: none">
<div id="habboCountUpdateTarget">%hotel_status%</div> <script language="JavaScript" type="text/javascript"> setTimeout(function() { HabboCounter.init(600); }, 20000); </script> </div> <script type="text/javascript"> RightClick.init("flash-wrapper", "flash-container"); if (window.opener && window.opener != window && typeof window.opener.location.href != "undefined") { window.opener.location.replace(window.opener.location.href); } $(document.body).addClassName("js"); HabboClient.startPingListener(); </script>
<script type="text/javascript"> HabboView.run();</script>
<script type="text/javascript">
var _gaq = _gaq || []; _gaq.push(['_setAccount', 'UA-15697942-2']); _gaq.push(['_trackPageview']);
(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script>
</body> </html>
I used this and everything was fine after ^^
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
how to fix this problem ?
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 17 in C:\xampp\htdocs\includes\class.core.php on line 191
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Thanks Jonty, keep it up :}
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
sholomon25
how to fix this problem ?
Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 17 in C:\xampp\htdocs\includes\class.core.php on line 191
Run this:
Code:
INSERT INTO `site_config` VALUES ('1', '0');
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
iHarrison
Run this:
Code:
INSERT INTO `site_config` VALUES ('1', '0');
Thanks .>> By the way I got this problem when I startup the client
Title: Table 'uber2.user_tickets' doesn't exist
Text: Table 'uber2.user_tickets' doesn't exist
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
sholomon25
Thanks .>> By the way I got this problem when I startup the client
Title: Table 'uber2.user_tickets' doesn't exist
Text: Table 'uber2.user_tickets' doesn't exist
Here you go, try searching up in the thread, Jonteh has posted most of the queries that you'll need
Code:
CREATE TABLE IF NOT EXISTS `user_tickets` (
`userid` int(10) unsigned NOT NULL,
`sessionticket` varchar(100) NOT NULL,
`ipaddress` varchar(20) NOT NULL,
PRIMARY KEY (`sessionticket`,`ipaddress`),
UNIQUE KEY `index_id` (`userid`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
iHarrison
Here you go, try searching up in the thread, Jonteh has posted most of the queries that you'll need
Code:
CREATE TABLE IF NOT EXISTS `user_tickets` (
`userid` int(10) unsigned NOT NULL,
`sessionticket` varchar(100) NOT NULL,
`ipaddress` varchar(20) NOT NULL,
PRIMARY KEY (`sessionticket`,`ipaddress`),
UNIQUE KEY `index_id` (`userid`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
THanks again ^^ But CLIENT is the biggest problem I got... It says
Please update your Flash Player to the latest version.
You can install and download Adobe Flash Player here: Install flash player. More instructions for installation can be found here: More information
urghh...
Quote:
Originally Posted by
iHarrison
Here you go, try searching up in the thread, Jonteh has posted most of the queries that you'll need
Code:
CREATE TABLE IF NOT EXISTS `user_tickets` (
`userid` int(10) unsigned NOT NULL,
`sessionticket` varchar(100) NOT NULL,
`ipaddress` varchar(20) NOT NULL,
PRIMARY KEY (`sessionticket`,`ipaddress`),
UNIQUE KEY `index_id` (`userid`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
THanks again ^^ But CLIENT is the biggest problem I got... It says
Please update your Flash Player to the latest version.
You can install and download Adobe Flash Player here: Install flash player. More instructions for installation can be found here: More information
urghh...
Quote:
Originally Posted by
iHarrison
Here you go, try searching up in the thread, Jonteh has posted most of the queries that you'll need
Code:
CREATE TABLE IF NOT EXISTS `user_tickets` (
`userid` int(10) unsigned NOT NULL,
`sessionticket` varchar(100) NOT NULL,
`ipaddress` varchar(20) NOT NULL,
PRIMARY KEY (`sessionticket`,`ipaddress`),
UNIQUE KEY `index_id` (`userid`) USING HASH
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
THanks again ^^ But CLIENT is the biggest problem I got... It says
Please update your Flash Player to the latest version.
You can install and download Adobe Flash Player here: Install flash player. More instructions for installation can be found here: More information
urghh...
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
sholomon25
THanks again ^^ But CLIENT is the biggest problem I got... It says
Please update your Flash Player to the latest version.
You can install and download Adobe Flash Player here: Install flash player. More instructions for installation can be found here: More information
urghh...
Scroll up the thread and you'll see I posted a quote of the fix of the client that Jonteh posted. It doesn't read the client config from the ubercms_config.php file though so you'll have to enter those manually.
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
I need a client fix, I go to ../client and it re-directs me to ../WWW/client. Then when I go to newclient.php it's a flash error..
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Quote:
Originally Posted by
iHarrison
Scroll up the thread and you'll see I posted a quote of the fix of the client that Jonteh posted. It doesn't read the client config from the ubercms_config.php file though so you'll have to enter those manually.
I cant see the problem. please hell me :(
my ubercms_config.php
Quote:
$client['connection_info_host'] = "127.0.0.1";
$client['connection_info_port'] = "30000";
$client['productdata_load_url'] = "http://127.0.0.1/gamedata/productdata.txt";
$client['furnidata_load_url'] = "http://127.0.0.1/gamedata/furnidata.txt";
$client['external_texts_txt'] = "http://127.0.0.1/gamedata/external_texts.txt";
$client['external_variables_txt'] = "http://127.0.0.1/gamedata/external_variables.txt";
$client['swf_base_dir'] = "http://127.0.0.1/gordon/";
$client['habbo_swf'] = "http://127.0.0.1/gordon/Habbo.swf";
$client['client_starting'] = "Please wait. YuNi is starting.";
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
I'm using IIS , I can't enter housekeeping .
Already Installed Helicon Ape , But still doesn't work .
anyone can help me? :)
-
Re: [REL/DEV] UberCMS 2 [PHP, MySQL, OOP]
Have you got a database compatible with uber 2.0 and phoenix?