summaryrefslogtreecommitdiff
blob: bd4a7be284828806bb55cf0f1c61285daf03494a (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
<?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');

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

?>