* mobbo 6.0 - Habbo Environment * start the habbo environment * */ // mysql connect Transaction::open(array('user' => $host_user, 'pass' => $host_pass, 'name' => $host_db, 'type' => $host_type, 'port' => $host_port, 'host' => $host)); $conn = Transaction::get(); // check the debug mode if ($debug_mode) { ini_set("display_errors", false); ini_set('default_charset', 'iso-8859-1'); header("Content-Type: text/html; charset=ISO-8859-1", true); error_reporting(1); } // start the translation system Translation::setLanguage($language); Security::ddosprotect(); // the hotel settings rows $remote_ip = $_SERVER['REMOTE_ADDR']; $maintenance = mobbo::mobbo_settings('maintenance') != 0 ? mobbo::mobbo_settings('maintenace') : 0; // check the settings rows for the housekeeping // Transaction::query ( "UPDATE mobbo_settings SET value = 'mobbo-c9-sant0ro.c9.io' WHERE variable = 'hotel_url'" ) ; $config = Transaction::fetch($mobbo_settings); $sitename = mobbo::mobbo_settings('hotel_name'); $path = mobbo::mobbo_settings('hotel_url'); $onlines = $online_count; $shortname = $mobbo_name; $adminpath = $path . "/acp/"; $pagefile = $_SERVER['PHP_SELF']; $key = htmlentities($_GET['key']); // check the date and start the dating rows
/** * @param Translation $translation The translation object to add. */ protected function doAddTranslation($translation) { $this->collTranslations[] = $translation; $translation->setLanguage($this); }