forked from Business/AccountHub
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
806 B
PHP
20 lines
806 B
PHP
<?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";
|
|
$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']);
|
|
}
|
|
?>
|