Skip to content
module.conf.php 2.99 KiB
Newer Older
tbrehm's avatar
tbrehm committed
<?php
cfoe's avatar
cfoe committed
$module["name"] 	= "client";
$module["title"] 	= "top_menu_client";
$module["template"] 	= "module.tpl.htm";
$module["startpage"] 	= "client/client_list.php";
$module["tab_width"]    = '';


cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Edit Client",
                    'target' 	=> 'content',
                    'link'	=> 'client/client_list.php',
                    'html_id'   => 'client_list');
cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Add Client",
                    'target' 	=> 'content',
                    'link'	=> 'client/client_edit.php',
                    'html_id'   => 'client_add');
cfoe's avatar
cfoe committed
if($_SESSION["s"]["user"]["typ"] == 'admin'){
$items[] = array(   'title' 	=> "Edit Client-Templates",
                    'target' 	=> 'content',
                    'link'	=> 'client/client_template_list.php',
                    'html_id'   => 'client_template_list');
cfoe's avatar
cfoe committed
$module["nav"][] = array(   'title'	=> 'Clients',
                            'open' 	=> 1,
                            'items'	=> $items);

unset($items);


if($_SESSION["s"]["user"]["typ"] == 'admin'){

cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Edit Reseller",
                    'target' 	=> 'content',
                    'link'	=> 'client/reseller_list.php',
                    'html_id'   => 'reseller_list');
cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Add Reseller",
                    'target' 	=> 'content',
                    'link'	=> 'client/reseller_edit.php',
                    'html_id'   => 'reseller_add');
cfoe's avatar
cfoe committed
$module["nav"][] = array(   'title'	=> 'Resellers',
                            'open' 	=> 1,
                            'items'	=> $items);
tbrehm's avatar
tbrehm committed

unset($items);
cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Edit Client Circle",
                    'target' 	=> 'content',
                    'link'	=> 'client/client_circle_list.php',
                    'html_id'   => 'client_circle_list');
cfoe's avatar
cfoe committed
$items[] = array(   'title' 	=> "Send email",
                    'target' 	=> 'content',
                    'link'	=> 'client/client_message.php',
                    'html_id'   => 'reseller_add');
cfoe's avatar
cfoe committed
$module["nav"][] = array(   'title'	=> 'Messaging',
                            'open' 	=> 1,
                            'items'	=> $items);
tbrehm's avatar
tbrehm committed
unset($items);
tbrehm's avatar
tbrehm committed
$app->uses('ini_parser,getconf');
$settings = $app->getconf->get_global_config('domains');

if ($settings['use_domain_module'] == 'y') {
	$items = array();
	$items[] = array( 'title' 	=> 'Domains',
					'target' 	=> 'content',
					'link'	=> 'client/domain_list.php');

	$module['nav'][] = array(	'title'	=> 'Domains',
								'open' 	=> 1,
								'items'	=> $items);

	unset($items);
}
cfoe's avatar
cfoe committed

if($_SESSION["s"]["user"]["typ"] == 'admin'){
$items[] = array(   'title' 	=> "Interface Settings",
                    'target' 	=> 'content',
                    'link'	=> 'client/reseller_admin_interface.php',
                    'html_id'   => 'reseller_admin_interface');


$module["nav"][] = array(   'title'	=> 'Reseller Panel',
                            'open' 	=> 1,
                            'items'	=> $items);

unset($items);
}
tbrehm's avatar
tbrehm committed
?>