You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 25, 2020. It is now read-only.
* Pydio is free software: you can redistribute it and/or modify
7
+
* it under the terms of the GNU Affero General Public License as published by
8
+
* the Free Software Foundation, either version 3 of the License, or
9
+
* (at your option) any later version.
10
+
*
11
+
* Pydio is distributed in the hope that it will be useful,
12
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+
* GNU Affero General Public License for more details.
15
+
*
16
+
* You should have received a copy of the GNU Affero General Public License
17
+
* along with Pydio. If not, see <http://www.gnu.org/licenses/>.
18
+
*
19
+
* The latest code can be found at <https://pydio.com/>.
20
+
*/
21
+
22
+
/**
23
+
* @param string $version
24
+
* @throws Exception
25
+
*/
26
+
functioncheckPhpVersion($version){
27
+
if(version_compare(PHP_VERSION, $version) < 0){
28
+
thrownewException("For Pydio 7, PHP version must be greater or equal to $version, detected version is ".PHP_VERSION." - Upgrade aborted.");
29
+
}else{
30
+
echo"<div class='upgrade_result success'>- Checking Php Version (".PHP_VERSION.") : OK</div>";
31
+
}
32
+
}
33
+
34
+
/**
35
+
* @param string $type
36
+
* @param string $name
37
+
* @throws Exception
38
+
*/
39
+
functioncheckPluginUsed($type, $name){
40
+
41
+
if($type === "conf"){
42
+
$p = ConfService::getConfStorageImpl();
43
+
if($p->getName() === $name){
44
+
thrownewException("You are currently using $type.$name as configuration storage. This was deprecated in Pydio 6 and is now removed in Pydio7. Aborting upgrade");
thrownewException("You are currently using $type.$name for authentication backend. This was deprecated in Pydio 6 and is now removed in Pydio7. Aborting upgrade");
52
+
} else {
53
+
if ($p->getName() === "multi") {
54
+
$drivers = $p->drivers;
55
+
if (isSet($drivers[$name])) {
56
+
thrownewException("You are currently using $type.$name for authentication backend. This was deprecated in Pydio 6 and is nowremoved in Pydio7. Aborting upgrade");
thrownewException("You are currently using plugin $type.$name. This is removed in Pydio7. Please disable it before running upgrade. Aborting upgrade");
thrownewException("You are currently using theme ".$options["GUI_THEME"]." which was removed from Pydio 7. If you want to be able to upgrade, you have to switch to Orbit theme. Aborting upgrade.");
89
+
}else{
90
+
echo"<div class='upgrade_result success'>- Checking usage of remove theme ($themeName): OK</div>";
<b>Please update at your own risks!! Do not update servers that are live in production!</b>
9
+
</p>
10
+
11
+
If you want to participate to the beta program and get access to dedicated resources, please fill in <atarget="_blank" href="https://pydio.typeform.com/to/hf6K4O">this small form</a>, we will be in contact soon.
0 commit comments