2011-08-23 03:40:13 +04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Copyright (c) 2011, Robin Appelman <icewind1991@gmail.com>
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or later.
|
|
|
|
* See the COPYING-README file.
|
|
|
|
*/
|
|
|
|
|
2011-09-18 23:31:56 +04:00
|
|
|
OC_Util::checkAdminUser();
|
2012-09-29 01:15:19 +04:00
|
|
|
OC_App::loadApps();
|
2011-08-23 03:40:13 +04:00
|
|
|
|
|
|
|
OC_Util::addStyle( "settings", "settings" );
|
2011-10-16 23:08:44 +04:00
|
|
|
OC_Util::addScript( "settings", "admin" );
|
2012-04-16 14:21:12 +04:00
|
|
|
OC_Util::addScript( "settings", "log" );
|
2011-08-23 03:40:13 +04:00
|
|
|
OC_App::setActiveNavigationEntry( "admin" );
|
|
|
|
|
|
|
|
$tmpl = new OC_Template( 'settings', 'admin', 'user');
|
|
|
|
$forms=OC_App::getForms('admin');
|
2013-08-18 12:33:09 +04:00
|
|
|
$htaccessworking=OC_Util::isHtAccessWorking();
|
2012-04-16 14:21:12 +04:00
|
|
|
|
|
|
|
$entries=OC_Log_Owncloud::getEntries(3);
|
2013-08-18 01:38:26 +04:00
|
|
|
$entriesremain = count(OC_Log_Owncloud::getEntries(4)) > 3;
|
2012-08-04 19:38:31 +04:00
|
|
|
|
2012-11-04 14:10:46 +04:00
|
|
|
$tmpl->assign('loglevel', OC_Config::getValue( "loglevel", 2 ));
|
2012-11-02 22:53:02 +04:00
|
|
|
$tmpl->assign('entries', $entries);
|
2012-08-04 19:38:31 +04:00
|
|
|
$tmpl->assign('entriesremain', $entriesremain);
|
2012-11-02 22:53:02 +04:00
|
|
|
$tmpl->assign('htaccessworking', $htaccessworking);
|
2013-06-01 01:24:09 +04:00
|
|
|
$tmpl->assign('internetconnectionworking', OC_Util::isInternetConnectionEnabled() ? OC_Util::isInternetConnectionWorking() : false);
|
2013-08-18 12:33:09 +04:00
|
|
|
$tmpl->assign('islocaleworking', OC_Util::isSetLocaleWorking());
|
2013-02-07 03:49:39 +04:00
|
|
|
$tmpl->assign('isWebDavWorking', OC_Util::isWebDAVWorking());
|
2013-02-04 18:04:26 +04:00
|
|
|
$tmpl->assign('has_fileinfo', OC_Util::fileInfoLoaded());
|
2012-08-10 03:36:33 +04:00
|
|
|
$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax'));
|
2012-08-28 04:36:34 +04:00
|
|
|
$tmpl->assign('shareAPIEnabled', OC_Appconfig::getValue('core', 'shareapi_enabled', 'yes'));
|
2013-01-11 17:18:51 +04:00
|
|
|
|
|
|
|
// Check if connected using HTTPS
|
2013-04-17 17:32:03 +04:00
|
|
|
if (OC_Request::serverProtocol() === 'https') {
|
2013-08-30 15:53:49 +04:00
|
|
|
$connectedHTTPS = true;
|
2013-01-11 17:18:51 +04:00
|
|
|
} else {
|
|
|
|
$connectedHTTPS = false;
|
2013-08-30 15:53:49 +04:00
|
|
|
}
|
2013-01-11 17:18:51 +04:00
|
|
|
$tmpl->assign('isConnectedViaHTTPS', $connectedHTTPS);
|
2013-07-12 19:03:51 +04:00
|
|
|
$tmpl->assign('enforceHTTPSEnabled', OC_Config::getValue( "forcessl", false));
|
2013-01-11 17:18:51 +04:00
|
|
|
|
2012-08-28 04:36:34 +04:00
|
|
|
$tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes'));
|
2013-07-12 19:03:51 +04:00
|
|
|
$tmpl->assign('allowPublicUpload', OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes'));
|
2012-08-28 04:36:34 +04:00
|
|
|
$tmpl->assign('allowResharing', OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes'));
|
2013-08-30 15:53:49 +04:00
|
|
|
$tmpl->assign('allowMailNotification', OC_Appconfig::getValue('core', 'shareapi_allow_mail_notification', 'yes'));
|
2012-08-28 04:36:34 +04:00
|
|
|
$tmpl->assign('sharePolicy', OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global'));
|
2012-11-02 22:53:02 +04:00
|
|
|
$tmpl->assign('forms', array());
|
2012-09-07 17:22:01 +04:00
|
|
|
foreach($forms as $form) {
|
2012-11-02 22:53:02 +04:00
|
|
|
$tmpl->append('forms', $form);
|
2011-08-23 03:40:13 +04:00
|
|
|
}
|
2011-09-18 23:31:56 +04:00
|
|
|
$tmpl->printPage();
|