2017-05-30 13:24:46 -06:00
|
|
|
<?php
|
|
|
|
|
|
|
|
dieifnotloggedin();
|
|
|
|
addMultiLangStrings(["en_us" => [
|
|
|
|
"inventory" => "Inventory",
|
|
|
|
"open inventory system" => "Open the inventory system"
|
|
|
|
]
|
|
|
|
]);
|
|
|
|
$APPS["inventory_link"]["i18n"] = TRUE;
|
|
|
|
$APPS["inventory_link"]["title"] = "inventory";
|
|
|
|
$APPS["inventory_link"]["icon"] = "cubes";
|
2017-06-19 00:54:49 -06:00
|
|
|
$APPS["inventory_link"]["type"] = "teal";
|
2017-07-03 03:00:23 -06:00
|
|
|
$content = "<p class='mobile-app-hide'>" . lang("open inventory system", false) . '</p><a href="' . INVENTORY_HOME . '" class="btn btn-primary btn-block mobile-app-hide">' . lang("open app", false) . ' <i class="fa fa-external-link-square"></i></a>';
|
2017-05-30 13:24:46 -06:00
|
|
|
$APPS["inventory_link"]["content"] = $content;
|
2017-07-03 03:27:08 -06:00
|
|
|
|
|
|
|
require_once __DIR__ . "/../lib/login.php";
|
|
|
|
if (account_has_permission($_SESSION['username'], "INV_VIEW") !== true) {
|
|
|
|
unset($APPS['inventory_link']);
|
|
|
|
}
|
2017-05-30 13:24:46 -06:00
|
|
|
?>
|