mController = $controller; $this->grid_status = false; $this->now_online = '0'; $this->user_count = '0'; $this->region_count = '0'; $this->lastmonth_online = '0'; } function execute() { $ret = opensim_check_db(); $this->grid_status = $ret['grid_status']; $this->now_online = $ret['now_online']; $this->lastmonth_online = $ret['lastmonth_online']; $this->user_count = $ret['user_count']; $this->region_count = $ret['region_count']; } function executeView($render) { // auto synchro xoopensim_synchro_opensimdb(); $grid_name = $this->mController->mRoot->mContext->mModuleConfig['grid_name']; $content = $this->mController->mRoot->mContext->mModuleConfig['status_content']; $render->setTemplateName('xoopensim_status.html'); $render->setAttribute('grid_name', $grid_name); $render->setAttribute('content', $content); $render->setAttribute('module_url', CMS_MODULE_URL); $render->setAttribute('grid_status', $this->grid_status); $render->setAttribute('now_online', $this->now_online); $render->setAttribute('lastmonth_online', $this->lastmonth_online); $render->setAttribute('user_count', $this->user_count); $render->setAttribute('region_count', $this->region_count); } } ?>