Skip to content
This repository has been archived by the owner on Oct 4, 2018. It is now read-only.

Commit

Permalink
putting out a new version
Browse files Browse the repository at this point in the history
  • Loading branch information
bennetgallein committed Jan 21, 2018
1 parent 76f0511 commit 60f9128
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"lang": "EN",
"site_name": "KIS ",
"version": "silver",
"version": "aluminum",
"url": "http://server/KIS",
"user": [{
"id_lenght": 100
Expand Down
14 changes: 8 additions & 6 deletions dashboard/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@
<div class="container-fluid">
<?php
foreach ($db->getModules() as $module) {
echo "<div class='row'><p class='navbar-brand'>";
echo $module->getName();
echo "</p></div>";
foreach ($module->getDashboards() as $board) {
if ($board['permission'] <= $user->getPermissions()) {
include("../modules/" . $board['link']);
if ($module->getBaseperm() <= $user->getPermissions()) {
echo "<div class='row'><p class='navbar-brand'>";
echo $module->getName();
echo "</p></div>";
foreach ($module->getDashboards() as $board) {
if ($board['permission'] <= $user->getPermissions()) {
include("../modules/" . $board['link']);
}
}
}
}
Expand Down
1 change: 1 addition & 0 deletions modules/customermanagment.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Customer Managment",
"version": "0.1",
"baseperm": "2",
"authors": [
{
"name": "Bennet Gallein",
Expand Down
6 changes: 6 additions & 0 deletions modules/modules_loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class Module {
private $name;
private $version;
private $authors;
private $baseperm;

private $includeables;
private $navs;
Expand All @@ -48,6 +49,7 @@ public function __construct($json) {
$this->navs = $json['navs'];
$this->dashboard = $json['dashboards'];
$this->includeables = $json['includeables'];
$this->baseperm = $json['baseperm'];
}

public function getIncludeable($name) {
Expand All @@ -62,6 +64,10 @@ public function getNavs() {
return $this->navs;
}

public function getBaseperm() {
return $this->baseperm;
}

public function getDashboards() {
return $this->dashboard;
}
Expand Down
1 change: 1 addition & 0 deletions modules/supportmanager.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "Support Manager",
"version": "0.1",
"baseperm": "2",
"authors": [
{
"name": "Bennet Gallein",
Expand Down

0 comments on commit 60f9128

Please sign in to comment.