Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
owncloud-prm /
settings /
Panels /
Admin /
Delete
Unzip
Name
Size
Permission
Date
Action
Apps.php
1.25
KB
-rw-r--r--
2018-04-19 18:15
BackgroundJobs.php
1.45
KB
-rw-r--r--
2018-04-19 18:15
Certificates.php
1.89
KB
-rw-r--r--
2018-04-19 18:15
Encryption.php
1.95
KB
-rw-r--r--
2018-04-19 18:15
FileSharing.php
4.87
KB
-rw-r--r--
2018-04-19 18:15
Legacy.php
1.36
KB
-rw-r--r--
2018-04-19 18:15
Logging.php
2.04
KB
-rw-r--r--
2018-04-19 18:15
Mail.php
2.51
KB
-rw-r--r--
2018-04-19 18:15
SecurityWarning.php
4.63
KB
-rw-r--r--
2018-04-19 18:15
Status.php
1.15
KB
-rw-r--r--
2018-04-19 18:15
Tips.php
1.15
KB
-rw-r--r--
2018-04-19 18:15
Save
Rename
<?php /** * @author Tom Needham <tom@owncloud.com> * * @copyright Copyright (c) 2018, ownCloud GmbH * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License, version 3, * along with this program. If not, see <http://www.gnu.org/licenses/> * */ namespace OC\Settings\Panels\Admin; use OC\Settings\Panels\Helper; use OCP\IConfig; use OCP\Settings\ISettings; use OCP\Template; use OCP\IL10N; class FileSharing implements ISettings { /** @var IConfig */ protected $config; /** @var Helper */ protected $helper; /** @var IL10N */ protected $l; public function __construct(IConfig $config, Helper $helper, IL10N $l) { $this->config = $config; $this->helper = $helper; $this->l = $l; } public function getPriority() { return 99; } public function getPanel() { $template = new Template('settings', 'panels/admin/filesharing'); $template->assign('allowResharing', $this->config->getAppValue('core', 'shareapi_allow_resharing', 'yes')); $template->assign('shareAPIEnabled', $this->config->getAppValue('core', 'shareapi_enabled', 'yes')); $template->assign('allowLinks', $this->config->getAppValue('core', 'shareapi_allow_links', 'yes')); $template->assign('allowPublicUpload', $this->config->getAppValue('core', 'shareapi_allow_public_upload', 'yes')); $template->assign('enforceLinkPasswordReadOnly', $this->config->getAppValue('core', 'shareapi_enforce_links_password_read_only', 'no')); $template->assign('enforceLinkPasswordReadWrite', $this->config->getAppValue('core', 'shareapi_enforce_links_password_read_write', 'no')); $template->assign('enforceLinkPasswordWriteOnly', $this->config->getAppValue('core', 'shareapi_enforce_links_password_write_only', 'no')); $template->assign('shareDefaultExpireDateSet', $this->config->getAppValue('core', 'shareapi_default_expire_date', 'no')); $template->assign('allowPublicMailNotification', $this->config->getAppValue('core', 'shareapi_allow_public_notification', 'no')); $template->assign('allowSocialShare', $this->config->getAppValue('core', 'shareapi_allow_social_share', 'yes')); $template->assign('allowGroupSharing', $this->config->getAppValue('core', 'shareapi_allow_group_sharing', 'yes')); $template->assign('onlyShareWithGroupMembers', $this->helper->shareWithGroupMembersOnly()); $template->assign('onlyShareWithMembershipGroups', $this->config->getAppValue('core', 'shareapi_only_share_with_membership_groups', 'no') === 'yes'); $template->assign('allowMailNotification', $this->config->getAppValue('core', 'shareapi_allow_mail_notification', 'no')); $template->assign('allowShareDialogUserEnumeration', $this->config->getAppValue('core', 'shareapi_allow_share_dialog_user_enumeration', 'yes')); $template->assign('shareDialogUserEnumerationGroupMembers', $this->config->getAppValue('core', 'shareapi_share_dialog_user_enumeration_group_members', 'no')); $excludeGroups = $this->config->getAppValue('core', 'shareapi_exclude_groups', 'no') === 'yes' ? true : false; $template->assign('shareExcludeGroups', $excludeGroups); $excludedGroupsList = $this->config->getAppValue('core', 'shareapi_exclude_groups_list', ''); $excludedGroupsList = json_decode($excludedGroupsList); $template->assign('shareExcludedGroupsList', !is_null($excludedGroupsList) ? implode('|', $excludedGroupsList) : ''); $template->assign('shareExpireAfterNDays', $this->config->getAppValue('core', 'shareapi_expire_after_n_days', '7')); $template->assign('shareEnforceExpireDate', $this->config->getAppValue('core', 'shareapi_enforce_expire_date', 'no')); $permList = [ [ 'id' => 'cancreate', 'label' => $this->l->t('Create'), 'value' => \OCP\Constants::PERMISSION_CREATE ], [ 'id' => 'canupdate', 'label' => $this->l->t('Change'), 'value' => \OCP\Constants::PERMISSION_UPDATE ], [ 'id' => 'candelete', 'label' => $this->l->t('Delete'), 'value' => \OCP\Constants::PERMISSION_DELETE ], [ 'id' => 'canshare', 'label' => $this->l->t('Share'), 'value' => \OCP\Constants::PERMISSION_SHARE ], ]; $template->assign('shareApiDefaultPermissions', $this->config->getAppValue('core', 'shareapi_default_permissions', \OCP\Constants::PERMISSION_ALL)); $template->assign('shareApiDefaultPermissionsCheckboxes', $permList); $template->assign('coreUserAdditionalInfo', $this->config->getAppValue('core', 'user_additional_info_field', '')); return $template; } public function getSectionID() { return 'sharing'; } }