summaryrefslogtreecommitdiff
blob: 4d9d3c5cfb4cff3ef7bfb6a0f9f81aaef00d633d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php

require_once($smarty_dir . 'Smarty.class.php');

$smarty = new Smarty();
$smarty->template_dir = $basedir . '.smarty/templates';
$smarty->compile_dir = $basedir . '.smarty/templates_c';
$smarty->cache_dir = $basedir . '.smarty/cache';
$smarty->config_dir = $basedir . '.smarty/config';

$smarty->assign('baseurl', $baseurl);

# Top navigation bar
$topbar_left = array(
  array('name' => 'Overview', 'link' => 'index.php'),
  array('name' => 'Jobs', 'link' => 'jobs.php'),
  array('name' => 'Clients', 'link' => 'clients.php')
);

$topbar_right = array(
  array('name' => 'Settings', 'link' => 'settings.php'),
  array('name' => 'Help', 'link' => 'help.php')
);

#if ($_SESSION['username'] eq 'is in the administrators group') {
  $topbar_left[] = array('name' => 'Users', 'link' => 'users.php');
#}
$topbar_left[] = array('name' => 'Script Library', 'link' => 'script_library.php');
$topbar_left[] = array('name' => 'Modules', 'link' => 'modules.php');

$smarty->assign('topbar_left', $topbar_left);
$smarty->assign('topbar_right', $topbar_right);

?>