title = get_string('modlos_menu', 'block_modlos');
//$this->version = 2010063010;
//$this->version = 2010070422;
//$this->version = 2010083024;
//$this->version = 2010090100;
//$this->version = 2010092200;
$this->version = 2010093000;
$this->release = '1.5.0';
$this->grid_name = $CFG->modlos_grid_name;
$this->grid_status = false;
$this->now_online = '0';
$this->lastmonth_online = '0';
$this->user_count = '0';
$this->region_count = '0';
$this->cron = '1';
}
function get_content()
{
global $CFG, $USER;
if ($this->content!=NULL) {
return $this->content;
}
$id = optional_param('id', 0, PARAM_INT);
$db_ver = opensim_get_db_version();
$this->content = new stdClass;
$this->content->text = ''. get_string('modlos_show_home','block_modlos').'
';
$this->content->text.= ''. get_string('modlos_world_map','block_modlos').'
';
$this->content->text.= ''.get_string('modlos_regions_list','block_modlos').'
';
if (!isguest()) {
$this->content->text.= ''.get_string('modlos_avatars_list','block_modlos').'
';
$isAvatarMax = false;
if ($db_ver!=null) {
$avatars_num = modlos_get_avatars_num($USER->id);
$max_avatars = $CFG->modlos_max_own_avatars;
if (!hasModlosPermit($id) and $max_avatars>=0 and $avatars_num>=$max_avatars) $isAvatarMax = true;
}
if (!$isAvatarMax) {
$this->content->text.= ''.get_string('modlos_avatar_create','block_modlos').'
';
}
if ($CFG->modlos_use_events) {
$this->content->text.= ''.get_string('modlos_events_list','block_modlos').'
';
}
if (hasModlosPermit($id)) {
$this->content->text.= ''.get_string('modlos_manage_menu','block_modlos').'
';
}
}
$this->content->text.= "