[Help] Uber problems

Kush

Member
Nov 12, 2010
296
10
The CMS page is fucked.
35mgl21.png



The client is also fucked, it loads half way then refreshes and does that over and over again.


Can someone help me?
 

Dzetki

The Prodigal Son Returns
Jul 16, 2010
990
220
install the automatic webbuild updater, that's the easiest way to do it. I did it myself, the only problem is if habbo's webbuild is in a BETA state. Then it fucks up totally like that again,
 

Kieren

The OGz
Aug 4, 2010
2,957
751
open class.core.php

look for

PHP Code:
public static function GetMaintenanceStatus()
{
return mysql_result(dbquery("SELECT maintenance FROM site_config LIMIT 1"), 0);
}
add under it

PHP Code:
public static function GetWebBuild()
{
return mysql_result(dbquery("SELECT webbuild FROM site_config LIMIT 1"), 0);
}
open global.php

search for
PHP Code:
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
add under it

PHP Code:
define('WEBBUILD', uberCore::GetWebBuild());
open class.tpl.php

change
PHP Code:
$this->SetParam('web_build', '50_e3801d20ad745cc86660598ea0c4bdf4/15'); (your build will be different)
to
PHP Code:
$this->SetParam('web_build', WEBBUILD);
create a php file named WebBuild.php and put this in it.
PHP Code:
<?php
if (!defined('UBER') || !UBER)
{
exit;
}
function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
$content = file_get_contents('http://habbo.com/');
$webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery");
dbquery("UPDATE site_config SET webbuild = '$webbuild' ");
?>
save that file in inc/cron_scripts

Run this SQL
PHP Code:
INSERT INTO `site_cron` VALUES (6, 6, '1', 'webbuild.php', '', 1200);
and this one
PHP Code:
ALTER TABLE site_config ADD webbuild CHAR(40);
Done....


Thanks Leenster.
 

Kush

Member
Nov 12, 2010
296
10
open class.core.php

look for

PHP Code:
public static function GetMaintenanceStatus()
{
return mysql_result(dbquery("SELECT maintenance FROM site_config LIMIT 1"), 0);
}
add under it

PHP Code:
public static function GetWebBuild()
{
return mysql_result(dbquery("SELECT webbuild FROM site_config LIMIT 1"), 0);
}
open global.php

search for
PHP Code:
define('FORCE_MAINTENANCE', ((uberCore::GetMaintenanceStatus() == "1") ? true : false));
add under it

PHP Code:
define('WEBBUILD', uberCore::GetWebBuild());
open class.tpl.php

change
PHP Code:
$this->SetParam('web_build', '50_e3801d20ad745cc86660598ea0c4bdf4/15'); (your build will be different)
to
PHP Code:
$this->SetParam('web_build', WEBBUILD);
create a php file named WebBuild.php and put this in it.
PHP Code:
<?php
if (!defined('UBER') || !UBER)
{
exit;
}
function get_between($input, $start, $end)
{
$substr = substr($input, strlen($start)+strpos($input, $start), (strlen($input) - strpos($input, $end))*(-1));
return $substr;
}
$content = file_get_contents('http://habbo.com/');
$webbuild = get_between($content, "http://images.habbo.com/habboweb/", "/web-gallery");
dbquery("UPDATE site_config SET webbuild = '$webbuild' ");
?>
save that file in inc/cron_scripts

Run this SQL
PHP Code:
INSERT INTO `site_cron` VALUES (6, 6, '1', 'webbuild.php', '', 1200);
and this one
PHP Code:
ALTER TABLE site_config ADD webbuild CHAR(40);
Done....


Thanks Leenster.

Now when I go to the site it says


Cron Error
Could not execute cron job 'webbuild.php': could not locate script file.Script execution was aborted. We apoligize for the possible inconvenience. If this problem is persistant, please contact an Administrator.
 

Users who are viewing this thread

Top