forked from nuBuilder/nuBuilder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.htm
371 lines (338 loc) · 12.7 KB
/
update.htm
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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">
<title>nuBuilder Update</title>
<link rel="stylesheet" href="core/libs/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href='core/libs/fontawesome/css/all.min.css' >
<style>
* {
margin: 0;
padding: 0;
}
html {
height: 100%;
}
p {
color: grey;
}
ul {
padding-left: 20px; /* Adjust as necessary to align with the content area */
list-style-type: disc; /* Ensure list item bullets are visible */
}
li {
margin-left: 0; /* Reset or adjust the margin to keep the text inside the container */
}
#heading_outside_nu {
color: red;
}
#heading {
color: #673AB7;
font-weight: normal;
}
#msform {
text-align: center;
position: relative;
margin: 22px;
}
#msform fieldset {
background: white;
border: 0 none;
border-radius: 0.5rem;
width: 100%;
padding-bottom: 20px;
position: relative;
display: none; /* Ensuring that fieldsets are not displayed initially */
}
#msform fieldset:first-of-type {
display: block; /* Only the first fieldset is displayed */
}
.card {
padding: 15px; /* Add padding to ensure contents, including lists, are indented appropriately */
}
.form-card {
text-align: left;
}
#msform input,
#msform textarea {
padding: 8px 15px;
border: 1px solid #ccc;
margin-bottom: 25px;
width: 100%;
font-family: montserrat;
color: #2C3E50;
background-color: #ECEFF1;
font-size: 16px;
}
#msform input:focus,
#msform textarea:focus {
border: 1px solid #673AB7;
outline-width: 0;
}
#msform .action-button {
width: 30%;
background: #673AB7;
color: white;
border-radius: 0;
padding: 10px 15px;
margin: 10px 5px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#msform .action-button:hover {
background-color: #311B92;
}
#progressbar {
margin-bottom: 30px;
overflow: hidden;
color: lightgrey
}
#progressbar .active {
color: #673AB7
}
#progressbar li {
list-style-type: none;
font-size: 15px;
width: 25%;
float: left;
position: relative;
font-weight: 400
}
#progressbar #backup:before {
font-family: 'Font Awesome 6 Free';
content: '\f0a0';
}
#progressbar #download:before {
font-family: 'Font Awesome 6 Free';
content: "\f358"
}
#progressbar #prepare:before {
font-family: "Font Awesome 6 Free";
content: "\f1c6"
}
#progressbar #update:before {
font-family: "Font Awesome 6 Free";
font-weight: 900;
content: "\f058";
}
#progressbar li:before {
width: 50px;
height: 50px;
line-height: 45px;
display: block;
font-size: 20px;
color: #ffffff;
background: lightgray;
border-radius: 50%;
margin: 0 auto 10px auto;
padding: 2px
}
#progressbar li:after {
content: '';
width: 100%;
height: 2px;
background: lightgray;
position: absolute;
left: 0;
top: 25px;
z-index: -1
}
#progressbar li.active:before,
#progressbar li.active:after {
background: #673AB7
}
.progress {
height: 20px
}
.progress-bar {
background-color: #673AB7
}
#msform .action-button-previous {
width: 30%; /* Adjust the width to match the 'Next' button */
background: #616161; /* Typically, 'Previous' buttons have a different color to distinguish them */
color: white;
border-radius: 0;
padding: 10px 15px;
margin: 10px 5px;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
#msform .action-button-previous:hover {
background-color: #000000; /* Darken the hover state for visual feedback */
}
.justify-content-container {
justify-content: center!important;
padding-left: 10px;
}
@media (max-width: 576px) {
.container-fluid {
padding-left: 0 !important;
padding-right: 0 !important;
}
.justify-content-container {
justify-content: left!important;
}
ul {
padding-left: 15px;
}
#msform input,
#msform textarea {
font-size: 14px;
}
#msform .action-button,
#msform .action-button-previous {
width: auto;
padding: 10px 20px;
}
.fs-title,
.steps {
font-size: 18px;
}
}
</style>
<script src="core/libs/jquery/jquery-3.7.1.min.js"></script>
<script src="core/libs/bootstrap/bootstrap.bundle.min.js"></script>
<script>
$(document).ready(function() {
var p = window.frameElement;
if (p === null) {
$('#nulogo').show();
$('#heading_steps').show();
$('input[name ="next"]').prop('disabled', true);
$('#startupdateskip').prop('disabled', true);
} else {
$('#nulogo').remove();
$('#heading_outside_nu').remove();
}
var current_fs, next_fs, previous_fs; //fieldsets
var opacity;
var current = 1;
var steps = $("fieldset").length;
setProgressBar(current);
$(".next").click(function() {
if ($(this).attr('id') == 'startupdate' || $(this).attr('id') == 'startupdateskip') {
parent.nuSystemUpdate();
return;
}
current_fs = $(this).parent();
next_fs = $(this).parent().next();
$("#progressbar li").eq($("fieldset").index(next_fs)).addClass("active");
next_fs.show();
current_fs.hide();
setProgressBar(++current);
});
$(".previous").click(function() {
current_fs = $(this).parent();
previous_fs = $(this).parent().prev();
$("#progressbar li").eq($("fieldset").index(current_fs)).removeClass("active");
previous_fs.show();
current_fs.hide();
setProgressBar(--current);
});
function setProgressBar(curStep) {
var percent = parseFloat(100 / steps) * curStep;
$(".progress-bar").css("width", percent + "%");
}
});
</script>
</head>
<body oncontextmenu="return false" class="snippet-body">
<div class="container-fluid">
<div class="row justify-content-container">
<div class="col-11 col-sm-9 col-md-7 col-lg-8 col-xl-5 text-center p-0 mb-2">
<div class="card px-0 pt-4 pb-0 mt-3 mb-3">
<h2 id="heading">nuBuilder Update</h2>
<center><img id="nulogo" style="display: none;" src="core/graphics/logo.png" alt="nuBuilder Forte"></center><br>
<p id="heading_steps">To update nuBuilder follow these steps:</p>
<p id="heading_outside_nu">Log in to nuBuilder, click the Update Button on the Database Tab of the Home Form to start the Update process.</p>
<form id="msform">
<!-- progressbar -->
<ul id="progressbar">
<li class="active" id="backup"><strong>Backup</strong></li>
<li id="download"><strong>Download</strong></li>
<li id="prepare"><strong>Prepare</strong></li>
<li id="update"><strong>Update</strong></li>
</ul>
<div class="progress">
<div class="progress-bar progress-bar-striped progress-bar-animated" role="progressbar" aria-valuemin="0" aria-valuemax="100"></div>
</div> <br>
<!-- fieldsets -->
<fieldset>
<div class="form-card">
<div class="row">
<div class="col-7">
<h2 class="fs-title">Database Backup</h2>
</div>
<div class="col-5">
<h2 class="steps">Step 1 - 4</h2>
</div>
</div>
<ul>
<li>Ensure you back up your database before proceeding with this update.<br>
You can export your nuBuilder database to a file using phpMyAdmin or the mysqldump utility.<br>
The backup will consist of a single file containing all nuBuilder tables and data (e.g., nubuilder4.sql).</li>
<li>Back up your nuBuilder files as well. For example, you can add them to an archive named 20240611_backup_nubuilder4.zip.</li>
</ul>
</div> <input type="button" name="next" class="next action-button" value="Next">
<input type="button" id="startupdateskip" style="width:240px" class="next action-button" value="Skip Wizard / Update now">
</fieldset>
<fieldset>
<div class="form-card">
<div class="row">
<div class="col-7">
<h2 class="fs-title">Download Instructions:</h2>
</div>
<div class="col-5">
<h2 class="steps">Step 2 - 4</h2>
</div>
</div>
<ul>
<li>Pull the latest nuBuilder files from either Sourceforge or Github.</li>
<li>Alternatively, use a subversion client to obtain the latest files.</li>
</ul>
</div> <input type="button" name="next" class="next action-button" value="Next"> <input type="button" name="previous" class="previous action-button-previous" value="Previous">
</fieldset>
<fieldset>
<div class="form-card">
<div class="row">
<div class="col-7">
<h2 class="fs-title">Delete & Unpack:</h2>
</div>
<div the "col-5">
<h2 class="steps">Step 3 - 4</h2>
</div>
<ul>
<li>Delete all files and folders in your nuBuilder directory except for nuconfig.php.<br>
Do not delete any files that do not belong to the nuBuilder core files.</li>
<li>Extract the downloaded .zip file to your nuBuilder root directory.</li>
</ul>
</div>
</div> <input type="button" name="next" class="next action-button" value="Next"> <input type="button" name="previous" class="previous action-button-previous" value="Previous">
</fieldset>
<fieldset>
<div class="form-card">
<div class="row">
<div class="col-7">
<h2 class="fs-title">Update</h2>
</div>
<div class="col-5">
<h2 class="steps">Step 4 - 4</h2>
</div>
<ul>
<li>You are now ready to proceed with the update.</li>
<li>After completing the update, thoroughly test your site to ensure there are no issues.</li>
<li> It is recommended to use a test environment to verify changes before applying them to the production environment.</li>
</ul>
<br>
</div>
</div> <input type="button" id="startupdate" name="next" class="next action-button" value="Update">
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>