brsy
nah mang
- May 12, 2011
- 1,530
- 272
THINGS I DID PROBLEM F
THINGS I NEED HELP WITH
THINGS I NEED HELP WITH
Code:
SETUP INSTRUCTIONS (FOR CLIENT VOTING):
[COLOR=blue]1) Extract the "uplod" file into your htdoc on your website (or where your main files are located).
2) Open the following file: thehabbos_api/config.php
3) Change $CONFIG['Username'] to your TheHabbos Topsites username.
4) Change $CONFIG['URL'] to the location of[/COLOR][COLOR=blue] api.php on your website (i.e. http://example.com/api.php).
5) Save changes to following file: thehabbos_api/config.php [/COLOR]
[COLOR=red]6) On your own CMS, change the popup client to go to api.php instead of client.php. [/COLOR]
[COLOR=blue]7) You should now recieve more votes each day! [/COLOR]
I did steps 1-5 very easily, but my client.php is kind of wierd. Take a look:
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.
\======================================================================*/
define('HIDE_FEEDBACK', true);
require_once "global.php";
require_once "includes/class.rooms.php";
if (!LOGGED_IN)
{
header("Location: "WWW.uberPeas.co.cc"/");
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.uberPeas.co.cc"/client?createRoom=" . rand(0, 5));
exit;
}
}
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;
}
}
$users->CheckSSO(USER_ID);
$tpl->Init();
$compClient = new Template('client');
$compClient->SetParam('FlashBase', WWW.uberPeas.co.cc'/gordon/RELEASE63-33413-33399-201105032308_181102fb6b76710b53e7536530c2afe0/');
$compClient->SetParam('FlashClientURL', WWW.uberPeas.co.cc'/gordon/RELEASE63-33413-33399-201105032308_181102fb6b76710b53e7536530c2afe0/');
$compClient->SetParam('SecretHash', md5(mt_rand(0, 50) + USER_ID));
$compClient->SetParam('UserID-SecretHash', md5(USER_ID));
if (isset($_GET['forceTicket']) && $users->HasFuse(USER_ID, 'fuse_admin'))
{
$compClient->SetParam('SSOTicket', $_GET['forceTicket']);
}
else
{
$compClient->SetParam('SSOTicket', $users->GetUserVar(USER_ID, 'auth_ticket', false));
}
$tpl->AddTemplate($compClient);
$tpl->Output();
?>
Any help?