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 /
apps /
external /
ajax /
Delete
Unzip
Name
Size
Permission
Date
Action
setsites.php
1.21
KB
-rw-r--r--
2018-04-19 18:15
Save
Rename
<?php /** * 2012 Frank Karlitschek frank@owncloud.org * This file is licensed under the Affero General Public License version 3 or later. * See the COPYING-README file. */ OCP\JSON::checkAppEnabled('external'); OCP\User::checkAdminUser(); OCP\JSON::callCheck(); $sites = array(); for ($i = 0; $i < sizeof($_POST['site_name']); $i++) { if (!empty($_POST['site_name'][$i]) && !empty($_POST['site_url'][$i])) { array_push($sites, array(strip_tags($_POST['site_name'][$i]), strip_tags($_POST['site_url'][$i]), strip_tags($_POST['site_icon'][$i]))); } } $l = \OC::$server->getL10N('external'); foreach($sites as $site) { if (strpos($site[1], 'https://') === 0) { continue; } if (strpos($site[1], 'http://') === 0) { continue; } if (strncmp($site[1], '/', 1) === 0) { continue; } OC_JSON::error(array("data" => array( "message" => $l->t('Please enter valid urls - they have to start with either http://, https:// or /') ))); return; } if (sizeof($sites) == 0) { $appConfig = \OC::$server->getAppConfig(); $appConfig->deleteKey('external', 'sites'); } else { OCP\Config::setAppValue('external', 'sites', json_encode($sites)); } OC_JSON::success(array("data" => array( "message" => $l->t("External sites saved.") )));