|
|
|
<?php
|
|
|
|
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
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";
|
|
|
|
$APPS["inventory_link"]["type"] = "teal";
|
|
|
|
$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>';
|
|
|
|
$APPS["inventory_link"]["content"] = $content;
|
|
|
|
|
|
|
|
require_once __DIR__ . "/../lib/login.php";
|
|
|
|
if (account_has_permission($_SESSION['username'], "INV_VIEW") !== true) {
|
|
|
|
unset($APPS['inventory_link']);
|
|
|
|
}
|
|
|
|
?>
|