nextcloud/settings/admin.php

44 lines
1.7 KiB
PHP
Raw Normal View History

<?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" );
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" );
OC_App::setActiveNavigationEntry( "admin" );
$tmpl = new OC_Template( 'settings', 'admin', 'user');
$forms=OC_App::getForms('admin');
$htaccessworking=OC_Util::ishtaccessworking();
2012-04-16 14:21:12 +04:00
$entries=OC_Log_Owncloud::getEntries(3);
$entriesremain=(count(OC_Log_Owncloud::getEntries(4)) > 3)?true:false;
2012-11-02 22:53:02 +04:00
function compareEntries($a, $b) {
2012-04-16 14:21:12 +04:00
return $b->time - $a->time;
}
usort($entries, 'compareEntries');
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);
$tmpl->assign('entriesremain', $entriesremain);
2012-11-02 22:53:02 +04:00
$tmpl->assign('htaccessworking', $htaccessworking);
$tmpl->assign('internetconnectionworking', OC_Util::isinternetconnectionworking());
$tmpl->assign('islocaleworking', OC_Util::issetlocaleworking());
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'));
$tmpl->assign('allowLinks', OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes'));
$tmpl->assign('allowResharing', OC_Appconfig::getValue('core', 'shareapi_allow_resharing', 'yes'));
$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);
}
$tmpl->printPage();