Пример #1
0
 function initializeSystemSettings()
 {
     global $user_typ, $noahVersion;
     Init::initializeSystemSettings();
     $_S =& new AppSettings();
     $_GS =& new GlobalStat();
     hasAdminRights($isAdm);
     if ($_GS->instver != $noahVersion) {
         header("location: " . Controller::getBaseUrl() . "update.php\n");
         die;
     }
     header("Noahs-Classifieds: {$_GS->instver}\n");
     Date::setFormat($_S->getAttr("timeFormat"));
     Date::setFormatIgnoreSecond($_S->getAttr("dateFormat"));
     Date::setFormatIgnoreHour($_S->getAttr("dateFormat"));
     GenerWidget::initCaptchaField();
     LocationHistory::getCategory();
     // initializing $gorumcategory
 }