forked from steven-copley/nubuilder4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnusystemupdate.php
44 lines (29 loc) · 1.5 KB
/
nusystemupdate.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
<?php
require_once('nuchoosesetup.php');
require_once('nucommon.php');
require_once('nudata.php');
require_once('nusystemupdatelibs.php');
$jsonID = $_GET['i'];
$J = nuGetJSONData($jsonID);
if($J != 'valid'){
print "Something's wrong. Try logging in again...";
return;
}
print '<br><span style="font-family:Helvetica;padding:10px;">Copied SYSTEM FILES to TEMP FILES <br></span>';
nuCopySystemFiles();
print '<br><span style="font-family:Helvetica;padding:10px;">Copied SYSTEM FILES to TEMP FILES <br></span>';
nuImportSystemFiles();
print '<br><span style="font-family:Helvetica;padding:10px;">Copied SYSTEM FILES to TEMP FILES for any new tables added from the import. <br></span>';
nuAddNewSystemTables();
print '<br><span style="font-family:Helvetica;padding:10px;">Updated TEMP FILE table structure\'s to SYSTEM FILES <br></span>';
nuUpdateSystemRecords();
print '<br><span style="font-family:Helvetica;padding:10px;">Removed all ids starting with nu from TEMP FILES <br></span>';
nuRemoveNuRecords();
print '<br><span style="font-family:Helvetica;padding:10px;">Removed all ids not starting with nu from SYSTEM FILES <br></span>';
nuJustNuRecords();
print '<br><span style="font-family:Helvetica;padding:10px;">Inserted TEMP FILES into SYSTEM FILES <br></span>';
nuAppendToSystemTables();
nuSetCollation();
print '<br><span style="font-family:Helvetica;font-style:italic;font-size:20px;font-weight:bold;padding:10px">You will need to log in again for the changes to take effect.</span><br>';
nuMigrateSQL();
?>