$tmpl->assign('mail_from_address', OC_Config::getValue( "mail_from_address", '' )); $tmpl->assign('mail_smtpmode', OC_Config::getValue( "mail_smtpmode", '' )); $tmpl->assign('mail_smtpsecure', OC_Config::getValue( "mail_smtpsecure", '' )); $tmpl->assign('mail_smtphost', OC_Config::getValue( "mail_smtphost", '' )); $tmpl->assign('mail_smtpport', OC_Config::getValue( "mail_smtpport", '' )); $tmpl->assign('mail_smtpauthtype', OC_Config::getValue( "mail_smtpauthtype", '' )); $tmpl->assign('mail_smtpauth', OC_Config::getValue( "mail_smtpauth", false )); $tmpl->assign('mail_smtpname', OC_Config::getValue( "mail_smtpname", '' )); $tmpl->assign('mail_smtppassword', OC_Config::getValue( "mail_smtppassword", '' )); $tmpl->assign('entries', $entries); $tmpl->assign('entriesremain', $entriesremain); $tmpl->assign('htaccessworking', $htaccessworking); $tmpl->assign('internetconnectionworking', OC_Util::isInternetConnectionEnabled() ? OC_Util::isInternetConnectionWorking() : false); $tmpl->assign('isLocaleWorking', OC_Util::isSetLocaleWorking()); $tmpl->assign('isAnnotationsWorking', OC_Util::isAnnotationsWorking()); $tmpl->assign('isWebDavWorking', OC_Util::isWebDAVWorking()); $tmpl->assign('has_fileinfo', OC_Util::fileInfoLoaded()); $tmpl->assign('old_php', OC_Util::isPHPoutdated()); $tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax')); $tmpl->assign('cron_log', OC_Config::getValue('cron_log', true)); $tmpl->assign('lastcron', OC_Appconfig::getValue('core', 'lastcron', false)); $tmpl->assign('shareAPIEnabled', OC_Appconfig::getValue('core', 'shareapi_enabled', 'yes')); $tmpl->assign('shareDefaultExpireDateSet', OC_Appconfig::getValue('core', 'shareapi_default_expire_date', 'no')); $tmpl->assign('shareExpireAfterNDays', OC_Appconfig::getValue('core', 'shareapi_expire_after_n_days', '7')); $tmpl->assign('shareEnforceExpireDate', OC_Appconfig::getValue('core', 'shareapi_enforce_expire_date', 'no')); $excludeGroups = OC_Appconfig::getValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false; $tmpl->assign('shareExcludeGroups', $excludeGroups); $allGroups = OC_Group::getGroups(); $excludedGroupsList = OC_Appconfig::getValue('core', 'shareapi_exclude_groups_list', ''); $excludedGroups = $excludedGroupsList !== '' ? explode(',', $excludedGroupsList) : array(); $groups = array();
/** * @brief Post installation checks */ public static function postSetupCheck($params) { // setup was successful -> webdav testing now $l = self::getTrans(); if (OC_Util::isWebDAVWorking()) { header("Location: " . OC::$WEBROOT . '/'); } else { $error = $l->t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.'); $hint = $l->t('Please double check the <a href=\'%s\'>installation guides</a>.', \OC_Helper::linkToDocs('admin-install')); OC_Template::printErrorPage($error, $hint); exit; } }
/** * @brief Post installation checks */ public static function postSetupCheck($params) { // setup was successful -> webdav testing now $l = self::getTrans(); if (OC_Util::isWebDAVWorking()) { header("Location: " . OC::$WEBROOT . '/'); } else { $error = $l->t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.'); $hint = $l->t('Please double check the <a href=\'%s\'>installation guides</a>.', 'http://doc.owncloud.org/server/5.0/admin_manual/installation.html'); $tmpl = new OC_Template('', 'error', 'guest'); $tmpl->assign('errors', array(1 => array('error' => $error, 'hint' => $hint))); $tmpl->printPage(); exit; } }