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.
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.