/**
  * This method is called, when the widget should generate it's content.
  * Return the complete content using the methods provided by the base class.
  * Do NOT use the toolkit right here!
  *
  * @return string
  */
 public function getWidgetOutput()
 {
     if (!class_module_system_module::getModuleByName("system")->rightView() || !class_carrier::getInstance()->getObjSession()->isSuperAdmin()) {
         return $this->getLang("commons_error_permissions");
     }
     $strReturn = "<style type=\"text/css\">\n            .adminwidget_systemcheck .ok {\n                color: green;\n            }\n            .adminwidget_systemcheck .nok {\n                color: red;\n                font-weight: bold;\n            }\n        </style>";
     //check wich infos to produce
     if ($this->getFieldValue("php") == "checked") {
         $strReturn .= $this->widgetText($this->getLang("systemcheck_php_safemode") . (ini_get("safe_mode") ? $this->getLang("commons_yes") : $this->getLang("commons_no")));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_php_urlfopen") . (ini_get("allow_url_fopen") ? $this->getLang("commons_yes") : $this->getLang("commons_no")));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_php_regglobal") . (ini_get("register_globals") ? "<span class=\"nok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"ok\">" . $this->getLang("commons_no") . "</span>"));
         $strReturn .= $this->widgetSeparator();
     }
     if ($this->getFieldValue("kajona") == "checked") {
         $arrFilesAvailable = array("/installer.php", "/debug.php", "/v3_v4_postupdate.php");
         foreach ($arrFilesAvailable as $strOneFile) {
             $strReturn .= $this->widgetText($strOneFile . " " . $this->getLang("systemcheck_kajona_filepresent") . (is_file(_realpath_ . $strOneFile) ? " <span class=\"nok\">" . $this->getLang("commons_yes") . "</span>" : " <span class=\"ok\">" . $this->getLang("commons_no") . "</span>"));
         }
         $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " /project/system/config/config.php " . (is_writable(_realpath_ . "/project/system/config/config.php") ? "<span class=\"nok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"ok\">" . $this->getLang("commons_no") . "</span>"));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " /project/log/ " . (is_writable(_realpath_ . "/project/log/") ? "<span class=\"ok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"nok\">" . $this->getLang("commons_no") . "</span>"));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " /project/dbdumps/ " . (is_writable(_realpath_ . "/project/dbdumps/") ? "<span class=\"ok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"nok\">" . $this->getLang("commons_no") . "</span>"));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " /project/temp " . (is_writable(_realpath_ . "/project/temp") ? "<span class=\"ok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"nok\">" . $this->getLang("commons_no") . "</span>"));
         $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " " . _images_cachepath_ . " " . (is_writable(_realpath_ . "/" . _images_cachepath_) ? "<span class=\"ok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"nok\">" . $this->getLang("commons_no") . "</span>"));
         foreach (class_classloader::getCoreDirectories() as $strOneCore) {
             $strReturn .= $this->widgetText($this->getLang("systemcheck_kajona_writeper") . " /" . $strOneCore . " " . (is_writable(_realpath_ . "/" . $strOneCore) ? "<span class=\"ok\">" . $this->getLang("commons_yes") . "</span>" : "<span class=\"nok\">" . $this->getLang("commons_no") . "</span>"));
         }
     }
     return "<div class=\"adminwidget_systemcheck\">" . $strReturn . "</div>";
 }