v1.0 Initial commit of project

This commit is contained in:
2026-01-01 10:54:18 +01:00
commit 768cf78b57
990 changed files with 241213 additions and 0 deletions

View File

@@ -0,0 +1,132 @@
<?php
if (!defined('APP_INIT')) {
exit;
}
# IDE Section
# Includes Section
use api\classes\API;
require_once $_SERVER['DOCUMENT_ROOT'] . '/api/classes/API.php';
$API = new API();
function showCard($module_name, $page_name, $width = 3)
{
$page = $GLOBALS['pages'][$module_name][$page_name];
?>
<div class="col-md-<?php echo $width ?> col-sm-6 ps-md-0 pb-3">
<a href="<?php echo $page['page_url'] ?>">
<div class="card-pricing2 card-<?php echo $page['page_color'] ?> text-center h-100">
<div class="pricing-header">
<h3 class="fw-bold mb-3 text-center"><?php echo __($page['page_name']) ?></h3>
</div>
<div class="price-value">
<div class="value ">
<span class="amount"><i class="text-<?php echo $page['page_color'] ?> <?php echo $page['page_icon'] ?> mt-4"></i><span></span></span>
</div>
</div>
<div class="mt-5">
<small>
<br>
<?php echo __($page['page_description']) ?>
</small>
</div>
</div>
</a>
</div>
<?php } ?>
<div class="row">
<div class="row mt-3">
<?php
if ($GLOBALS['modules_enabled']['customers'] && $API->checkPermissions('customer-companies', 'RO', true)) { ?>
<div class="col-md-6">
<div class="row ">
<div class="col-auto">
<h3><?php echo __('customers') ?></h3>
</div>
<div class="col mt-1">
<hr>
</div>
</div>
<div class="row">
<?php
showCard('customers', 'companies', '6');
?>
</div>
</div>
<?php }
if ($GLOBALS['modules_enabled']['servers'] && $API->checkPermissions('servers', 'RO', true)) { ?>
<div class="col-md-6">
<div class="row">
<div class="col-auto">
<h3><?php echo __('servers') ?></h3>
</div>
<div class="col mt-1">
<hr>
</div>
</div>
<div class="row">
<?php
showCard('servers', 'server_overview', '6');
?>
</div>
</div>
<?php } ?>
</div>
<?php if ($GLOBALS['modules_enabled']['office'] && $API->checkPermissions('ofice-stompjes', 'RO', true)) { ?>
<div class="row mt-3">
<div class="col-auto">
<h3><?php echo __('office') ?></h3>
</div>
<div class="col mt-1">
<hr>
</div>
</div>
<div class="row">
<?php
showCard('office', 'stompjeslist');
?>
</div>
<?php }
if ($GLOBALS['modules_enabled']['autop']) { ?>
<div class="row">
<div class="col-auto">
<h3><?php echo __('autoproviosioning') ?></h3>
</div>
<div class="col mt-1">
<hr>
</div>
</div>
<div class="row align-items-stretch">
<?php
showCard('autop', 'platforms');
showCard('autop', 'vendors');
showCard('autop', 'devices');
showCard('autop', 'device_settings');
showCard('autop', 'provisioning');
showCard('autop', 'phonebooks');
?>
</div>
<?php } ?>
<?php if ($GLOBALS['modules_enabled']['system']) { ?>
<div class="row mt-3">
<div class="col-auto">
<h3><?php echo __('portal_management') ?></h3>
</div>
<div class="col mt-1">
<hr>
</div>
</div>
<div class="row">
<?php
showCard('system', 'access_control');
showCard('system', 'systemconfig');
?>
</div>
<?php } ?>
</div>