dirroot.'/blocks/modlos/version.php');
$this->title = get_string('modlos_menu', 'block_modlos');
$this->version = $plugin->version;
$this->release = $plugin->release;
//
$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';
if (!isset($CFG->sloodle_update)) set_config('sloodle_update', 0);
if (!isset($CFG->opensim_update)) set_config('opensim_update', 0);
}
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_status','block_modlos').'
';
$this->content->text.= ''. get_string('modlos_world_map','block_modlos').'
';
$this->content->text.= ''.get_string('modlos_regions_list','block_modlos').'
';
$isguest = isguestuser();
if (!$isguest and $USER->id!=0) {
$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_activate_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.= "