-
Notifications
You must be signed in to change notification settings - Fork 0
/
SoftwareUpdater.php
185 lines (169 loc) · 24.1 KB
/
SoftwareUpdater.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
<?php
/***********************************************************************************/
/* (C) 2020 - Skyfallen */
/* Skyfallen Secure Forms Developed by */
/* The Skyfallen Company */
/* */
/* File Since: SFR-301006 */
/* This file handles the in-app update function */
/***********************************************************************************/
// Include Updater Configuration
require_once "Configuration/UpdaterConfiguration.php";
session_name("SecureFormSession");
session_start();
// Make sure we are logged in and update s authorised.
if (!$_SESSION["UPDATE_AUTHORIZED"] == "TRUE") {
// Stop execution with an error message
die("Skyfallen SecureForms stopped execution. Update not authorized.");
}
/**
* Deletes a folder recursively excluding Configuration and RSA Key Directories
* @param String $dir Path to folder to delete
* @param bool $rmitself Decides whether the folder itself should be deleted or not
*/
function rrmdir($dir,$rmitself = true) {
if (is_dir($dir)) {
$objects = scandir($dir);
foreach ($objects as $object) {
if ($object != "." && $object != ".." && $object != "DataSecurity" && $object != "Configuration") {
if (is_dir($dir. DIRECTORY_SEPARATOR .$object) && !is_link($dir."/".$object))
rrmdir($dir. DIRECTORY_SEPARATOR .$object);
else
unlink($dir . DIRECTORY_SEPARATOR . $object);
}
}
if($rmitself) {
rmdir($dir);
}
}
}
// If update is authorised with correct values
if(isset($_SESSION["UPDATE_AUTHORIZED"]) and $_SESSION["UPDATE_AUTHORIZED"] == "TRUE") {
// Include UC Connector API Library
include_once "SkyfallenCodeLib/UpdatesConsoleConnector.php";
// Remove everything in current directory
rrmdir(getcwd(),false);
// Show updating page
?>
<div class="sys-upgrade-wrap">
<div class="sys-upgrade-animation">
</div>
<section class="sys-upgrade-text">
<h3>SecureForms is upgrading...</h3>
<p>It will be over in a few seconds.</p>
<p>Get ready for a better SecureForms Experience!<p>
<footer>In case of a problem, <a href="https://help.theskyfallen.com">get help</a>.
</section>
</div>
<style>
body {
font-family: "Consolas","Monaco","Ubuntu Mono",monospace !important;
background: #4D4E6A;
color: #fff;
}
.sys-upgrade-wrap {
margin: 20vh auto;
width: 500px;
}
.sys-upgrade-animation {
background-image: url("data:image/png;base64,\aiVBORw0KGgoAAAANSUhEUgAAAJAAAACCCAYAAACpWEEoAAAAAXNSR0IArs4c6QAAGqFJREFUeAHtXQlsHNd5frMXDy2XN7mkqIMSRVI+YsmSjcBJk1hWHbswgqZBgyaAEzQIihSF0cZy7DgOkKKF4/iQkbRIWxhG06BoCiQFeiBBbEWWArtJ01h3rYMUD5EURS6PJXeXx96v3z97aLQ7szOzO7s7y90ByJ3jzf/+971v3/vf+//3lrHaUUOgAASEAt7dkq+emV/7PBPi3xIY77Mwi40zbksVlDMWZ4yHBSZc55H4tw/1tfw49axaP6ueQGdvrXyaWS3/BFI0JUmgBxNwinGQ7PSh7uaj1UgiPWBtKXzOzvsvCQK7Jw/SKOHAQcLLB7ub7lVKsBXvVx2Bzs77xgRB2IPKLFbZeTzG/+Zwb/NfbEXCZJapWCBm5lP267OL/n8Q4uxPoEgpysyZIMRiodBHHtjR8duyF76ICpQCzCKqry76N3OBhx0WfhIpqaylLi/ZSL77u12t6ppWZopSA1pKlISzHp8PdokTmZa7nLCz2a/vd7s+WkoASpFXuYEtShlBnLMgzkETEEdaPmqNWCzOnnugx/Wq9EEln28pAmFk9SJGVs8nK8SsZSMiRYMCv+uhruaxS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ChbhhhyB8lw1SrPI88eODGn/qQCDy2OaCoN99DWrlb2cLJ9p9DIYb1Ec+bPOXJxJBJCJYRa6V43SoCy6HLHuffGTAzPF0FGrTNNV1PGTo+8KFvZRFMB0umkFVWs6soVsGnYUk8gDcbAfdCT2589+cv/fSu6X7dS0lYSwWngNa2EjEmYg5Ie/98zRoY9L7pX91LQEImRefuvygzaH/VdQsprDRshAXoWB3FZ2tsgoYGoCpfQ9/ouxVwVr/BiuK0LflN4FfsJAZrFgNPLAC4/efaFAWUV7vaIq5Pg7I5fg/7kHaFSU3jprL2HnxPlLzx4dekHnuyVPXokVIbz+zugaKES/RleJ+ueqZAqzuIQwiwO5EpnpWcVWwLffHn0CG4n9JyhEZajYciTJQMTZAHGacC22QGYiSS5dKh149to7oz/A2oUvopCVWBYxzCIaiz3+7KP7T+SqKLM+q0TQZbGswNW0NIv8j5hF/rJsgSrk5pYhEOFNYSPd55c8aIvo11bMWjYizg0QZ0+FcCSnmmYFOafSag9fPnn1i3aL9QfJdGYpI4gjhBYOtLtfbmujrXS2xGEWcIsC5qvvjPwMP4H9OISXs5wwigUei/Env/a7gz8qSkHLKLScwJas2K+fGsG6boEWzJW6vNgoPv7TZx4ZptinLXmUGtCygfjS6csDddxO25KUImwE3RVbOHYEcahb/KgaAqXq8dWTV5+3WqwvJq+NLj8RJ+SNWAbLHWaRKm+xP40GsNj6Gib/tZMjJ7DLV2oDgUJwAGfE2b+1hQMdO7aSgawF7EKA0yLf9GlePz36Tcz9fgOK1ieVVcNEJEwy7VIwGv/0Nx4d/pXpC1okBdXAKlK25hX7nbeufdZmE57Bht1daFecYIsVlvAGgtxW4W84u3iw66lqa2XMW1s1zSoegf8HU0t/TWnqr6MAAAAASUVORK5CYII=\a");
background-size: 72px auto;
background-repeat: no-repeat;
background-position: center center;
width: 80px;
height: 80px;
position: relative;
float: left;
margin-top: 68px;
margin-right: 20px;
}
.sys-upgrade-animation:before, .sys-upgrade-animation:after {
content: "";
display: block;
position: absolute;
background-image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oz/A2oUvopCVWBYxzCIaiz3+7KP7T+SqKLM+q0TQZbGswNW0NIv8j5hF/rJsgSrk5pYhEOFNYSPd55c8aIvo11bMWjYizg0QZ0+FcCSnmmYFOafSag9fPnn1i3aL9QfJdGYpI4gjhBYOtLtfbmujrXS2xGEWcIsC5qvvjPwMP4H9OISXs5wwigUei/Env/a7gz8qSkHLKLScwJas2K+fGsG6boEWzJW6vNgoPv7TZx4ZptinLXmUGtCygfjS6csDddxO25KUImwE3RVbOHYEcahb/KgaAqXq8dWTV5+3WqwvJq+NLj8RJ+SNWAbLHWaRKm+xP40GsNj6Gib/tZMjJ7DLV2oDgUJwAGfE2b+1hQMdO7aSgawF7EKA0yLf9GlePz36Tcz9fgOK1ieVVcNEJEwy7VIwGv/0Nx4d/pXpC1okBdXAKlK25hX7nbeufdZmE57Bht1daFecYIsVlvAGgtxW4W84u3iw66lqa2XMW1s1zSoegf8HU0t/TWnqr6MAAAAASUVORK5CYII=\a");
background-size: 72px auto;
background-repeat: no-repeat;
background-position: center center;
width: 80px;
height: 80px;
}
.sys-upgrade-animation:before {
top: -40px;
animation: upgrading 2s 2s ease-in infinite alternate;
-webkit-animation: upgrading 2s 2s ease-in infinite alternate;
}
.sys-upgrade-animation:after {
top: -80px;
animation: upgrading 2s ease-in infinite alternate;
-webkit-animation: upgrading 2s ease-in infinite alternate;
}
@keyframes upgrading {
from {
opacity: 0.2;
}
to {
opacity: 1;
}
}
@-webkit-keyframes upgrading {
from {
opacity: 0.3;
}
to {
opacity: 1;
}
}
.sys-upgrade-text h3 {
font-size: 24px;
}
.sys-upgrade-text p {
color: #AAAED8;
}
.sys-upgrade-text footer {
font-size: 12px;
color: #999;
}
.sys-upgrade-text footer a {
color: #ccc;
}
</style>
<?php
// Download the update package
$ret = \SkyfallenCodeLibrary\UpdatesConsoleConnector::downloadLatestVersion(UC_API_APPID,UC_API_APPSEED,UC_API_ENDPOINT,"");
// Continue if success
if($ret["success"]) {
// Extract the update package
if(\SkyfallenCodeLibrary\UpdatesConsoleConnector::installUpdate($ret["path"],getcwd())){
// If exists, run csc.php to setup .htaccess
if(file_exists("csc.php")){
include_once "csc.php";
unlink("csc.php");
}
// If exists, run post-update script
if(file_exists("onupdate.php")){
include_once "onupdate.php";
unlink("onupdate.php");
}
// Include a timeout in html code to redirect.
?>
<script>
window.setTimeout(function(){
window.location.href = "/";
}, 5000);
</script>
<?php
// Delete Update Package
unlink($ret["path"]);
// Deauthorize updates till next session.
$_SESSION["UPDATE_AUTHORIZED"] = false;
}else
{
// Error, Failed to unpack update zip
echo "<p style='text-align: center;'>Failed to unpack update.</p>";
}
}else {
// Error, Failed to download update zip
echo "<p style='text-align: center;'>Failed to download update from the server.</p>";
}
}