forked from tunquipe/proikos
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.php
More file actions
22 lines (19 loc) · 898 Bytes
/
Copy pathstart.php
File metadata and controls
22 lines (19 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php
require_once __DIR__.'/config.php';
$plugin = ProikosPlugin::create();
$enable = $plugin->get('tool_enable') == 'true';
$nameTools = $plugin->get_lang('DashboardProikos');
$htmlHeadXtra[] = api_get_css(api_get_path(WEB_PLUGIN_PATH) . 'proikos/css/style.css');
api_block_anonymous_users();
if ($enable) {
if (api_is_platform_admin() || api_is_drh() || api_is_contractor_admin()) {
$tpl = new Template($nameTools, true, true, false, false, true, false);
$tpl->assign('src_plugin', api_get_path(WEB_PLUGIN_PATH) . 'proikos/');
$tpl->assign('is_platform_admin', api_is_platform_admin());
$tpl->assign('is_drh', api_is_drh());
$tpl->assign('is_contractor_admin', api_is_contractor_admin());
$content = $tpl->fetch('proikos/view/proikos_start.tpl');
$tpl->assign('content', $content);
$tpl->display_one_col_template();
}
}