Blame view
sources/settings/admin.php
2.27 KB
|
03e52840d
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
<?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.
*/
OC_Util::checkAdminUser();
OC_App::loadApps();
OC_Util::addStyle( "settings", "settings" );
OC_Util::addScript( "settings", "admin" );
OC_Util::addScript( "settings", "log" );
OC_App::setActiveNavigationEntry( "admin" );
$tmpl = new OC_Template( 'settings', 'admin', 'user');
$forms=OC_App::getForms('admin');
|
|
31b7f2792
|
18 |
$htaccessworking=OC_Util::isHtAccessWorking(); |
|
03e52840d
|
19 20 |
$entries=OC_Log_Owncloud::getEntries(3); |
|
31b7f2792
|
21 |
$entriesremain = count(OC_Log_Owncloud::getEntries(4)) > 3; |
|
03e52840d
|
22 23 24 25 26 |
$tmpl->assign('loglevel', OC_Config::getValue( "loglevel", 2 ));
$tmpl->assign('entries', $entries);
$tmpl->assign('entriesremain', $entriesremain);
$tmpl->assign('htaccessworking', $htaccessworking);
|
|
31b7f2792
|
27 28 |
$tmpl->assign('internetconnectionworking', OC_Util::isInternetConnectionEnabled() ? OC_Util::isInternetConnectionWorking() : false);
$tmpl->assign('isLocaleWorking', OC_Util::isSetLocaleWorking());
|
|
03e52840d
|
29 30 |
$tmpl->assign('isWebDavWorking', OC_Util::isWebDAVWorking());
$tmpl->assign('has_fileinfo', OC_Util::fileInfoLoaded());
|
|
31b7f2792
|
31 |
$tmpl->assign('old_php', OC_Util::isPHPoutdated());
|
|
03e52840d
|
32 33 34 35 |
$tmpl->assign('backgroundjobs_mode', OC_Appconfig::getValue('core', 'backgroundjobs_mode', 'ajax'));
$tmpl->assign('shareAPIEnabled', OC_Appconfig::getValue('core', 'shareapi_enabled', 'yes'));
// Check if connected using HTTPS
|
|
31b7f2792
|
36 37 |
if (OC_Request::serverProtocol() === 'https') {
$connectedHTTPS = true;
|
|
03e52840d
|
38 39 |
} else {
$connectedHTTPS = false;
|
|
31b7f2792
|
40 |
} |
|
03e52840d
|
41 42 43 44 45 46 |
$tmpl->assign('isConnectedViaHTTPS', $connectedHTTPS);
$tmpl->assign('enforceHTTPSEnabled', OC_Config::getValue( "forcessl", false));
$tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes'));
$tmpl->assign('allowPublicUpload', OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes'));
$tmpl->assign('allowResharing', OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes'));
|
|
31b7f2792
|
47 |
$tmpl->assign('allowMailNotification', OC_Appconfig::getValue('core', 'shareapi_allow_mail_notification', 'yes'));
|
|
03e52840d
|
48 49 50 51 52 53 |
$tmpl->assign('sharePolicy', OC_Appconfig::getValue('core', 'shareapi_share_policy', 'global'));
$tmpl->assign('forms', array());
foreach($forms as $form) {
$tmpl->append('forms', $form);
}
$tmpl->printPage();
|