diff options
author | Jannik Schönartz | 2016-11-17 18:24:57 +0100 |
---|---|---|
committer | Jannik Schönartz | 2016-11-17 18:24:57 +0100 |
commit | 2a8c8de7a3980b3948fa7277d89dd2edb17358f8 (patch) | |
tree | bc458f88f84e64a7558fd5503209da4f771b3a17 /modules-available/locationinfo/install.inc.php | |
parent | [locationinfo] Skeleton for new module (diff) | |
download | slx-admin-2a8c8de7a3980b3948fa7277d89dd2edb17358f8.tar.gz slx-admin-2a8c8de7a3980b3948fa7277d89dd2edb17358f8.tar.xz slx-admin-2a8c8de7a3980b3948fa7277d89dd2edb17358f8.zip |
First functions added to the locationinfo AdminPanel. Api is can now return the infos with or without coordinates.
Diffstat (limited to 'modules-available/locationinfo/install.inc.php')
-rw-r--r-- | modules-available/locationinfo/install.inc.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/modules-available/locationinfo/install.inc.php b/modules-available/locationinfo/install.inc.php new file mode 100644 index 00000000..807e2826 --- /dev/null +++ b/modules-available/locationinfo/install.inc.php @@ -0,0 +1,18 @@ +<?php + +$res = array(); + +$res[] = tableCreate('locationinfo', ' + `locationid` INT(11) NOT NULL, + `hidden` BOOLEAN NOT NULL DEFAULT 0, + `computers` BLOB DEFAULT NULL, + PRIMARY KEY (`locationid`) +'); + +// Create response for browser + +if (in_array(UPDATE_DONE, $res)) { + finalResponse(UPDATE_DONE, 'Tables created successfully'); +} + +finalResponse(UPDATE_NOOP, 'Everything already up to date'); |