-
Notifications
You must be signed in to change notification settings - Fork 2
/
appCore.php
70 lines (50 loc) · 1.84 KB
/
appCore.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
<?php
/*
HonestRepair Diablo Engine - App Core
https://www.HonestRepair.net
https://github.com/zelon88
Licensed Under GNU GPLv3
https://www.gnu.org/licenses/gpl-3.0.html
Author: Justin Grimes
Date: 3/29/2019
<3 Open-Source
The App Core manages Diablo Engine apps like installing/uninstalling/updating & launching apps.
*/
// / ----------------------------------------------------------------------------------
// / Make sure the core is loaded.
if (!isset($ConfigIsLoaded) or $ConfigIsLoaded !== TRUE) die('ERROR!!! appCore: The requested application is currently unavailable.'.PHP_EOL);
// / ----------------------------------------------------------------------------------
// / ----------------------------------------------------------------------------------
// / The following code sets the functions for the session.
// / All functions accept arrays as inputs.
// / If using arrays as be sure all your array indicies align properly.
// / A function for installing new apps.
function installApp($appPackagePath) {
}
// / A function for uninstalling apps.
function uninstallApp($app) {
}
// / A function for downloading an app update.
function downloadAppUpdate($app) {
}
// / A function for installing an app update.
function installAppUpdate($app) {
}
// / A function for cleaning up after an app update.
function cleanAppUpdate($app) {
}
// / A function for checking compatibility after an app update.
function compatAppCheck($app) {
}
// / A function for updating a specific app.
function automaticAppUpdate($app) {
downloadMainUpdate();
installMainUpdate();
cleanMainUpdate();
compatMainCheck();
}
// / A function for updating the source for updates for a specific App.
// / AcceptS arrays as input.
function updateAppSource($app, $source) {
}
// / ----------------------------------------------------------------------------------