<?php

// no direct access
defined('_VALID_HM') or die('Restricted access');

$menuArray['neu'] = array(
    'name'      => 'Neu',
    'menu_link' => '?module=ticket&amp;event=newTicket',
    'menu_alt'  => 'Neues Ticket erstellen',
    'menu_img'  => 'ticket_add.gif',
    'right_id'  => 1,
    'right_id2' => 402,
    'childs'    => array(
        'ticket'             =>
        array(
            'name'      => 'Neues Ticket',
            'menu_link' => '?module=ticket&amp;event=newTicket',
            'menu_alt'  => 'Neues Ticket anlegen',
            'menu_img'  => 'ticket_add.gif',
            'right_id'  => 1
        ),
        'workflow'           =>
        array(
            'name'      => 'Workflow starten',
            'menu_link' => '?module=workflow&amp;event=selectwf',
            'menu_alt'  => 'Workflow starten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 705,
            'secure'    => 'Workflow',
        ),
        'story'              =>
        array(
            'name'      => 'Story anlegen',
            'menu_link' => '?module=ticket&amp;event=newTicket&createStory=1',
            'menu_alt'  => 'Story anlegen',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 900,
            'secure'    => 'Backlog',
        ),
        'garantieabwicklung' => array(
            'name'      => 'GA-Antrag anlegen',
            'menu_link' => '?module=ticket&amp;event=newTicket&createWPRequest=1',
            'menu_alt'  => 'GA-Antrag anlegen',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 250 //Neues Recht "GA-Anträge erstellen"
        )
    )
);


$menuArray['ticket'] = array(
    'name'      => 'Ticket',
    'menu_link' => '?module=ticketlist',
    'menu_alt'  => 'Tickets',
    'menu_img'  => 'ticket.gif',
    'right_id'  => 0,
    'childs'    => array(
        array(
            'name'      => 'Liste',
            'menu_link' => '?module=ticketlist',
            'menu_alt'  => 'Bestehende Tickets auflisten',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 0
        ),
        array(
            'name'      => 'Neues Ticket',
            'menu_link' => '?module=ticket&amp;event=newTicket',
            'menu_alt'  => 'Neues Ticket anlegen',
            'menu_img'  => 'ticket_add.gif',
            'right_id'  => 1,
            'right_id2' => 402
        ),
        array(
            'name'      => 'Merkliste',
            'menu_link' => '?module=ticketlist&amp;event=ticketbasket',
            'menu_alt'  => 'Merkliste',
            'menu_img'  => 'ticket_list.gif',
            'right_id'  => 0
        )
    )
);


if (defined('HMCOMPANY') && (HMCOMPANY == 'STADT SCHWABACH')) {
    $menuArray['workflow'] = array(
        'name'      => 'Workflow',
        'menu_link' => '?module=workflow',
        'menu_alt'  => 'Workflow',
        'menu_img'  => 'project.png',
        'secure'    => 'Workflow',
        'right_id'  => 705,
        'right_id2' => 703,
        'right_id3' => 706,
        'childs'    => array(
            array(
                'name'      => 'Definition',
                'menu_link' => '?module=workflow&amp;event=listwfds',
                'menu_alt'  => 'Workflow Definitionen auflisten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=workflow&amp;event=listwfds',
                        'menu_alt'  => 'Workflow Definitionen auflisten',
                        'menu_img'  => 'ticket_list.gif',
                        'right_id'  => 703,
                    ),
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=workflow&amp;event=create',
                        'menu_alt'  => 'Neue Workflow Definition',
                        'menu_img'  => 'ticket_list.gif',
                        'right_id'  => 703,
                    ),
                )
            ),
            array(
                'name'      => 'Workflowliste',
                'menu_link' => '?module=workflow&amp;event=active',
                'menu_alt'  => 'Aktive Workflows auflisten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703,
                'right_id2' => 706
            ),
            array(
                'name'      => 'Workflow starten',
                'menu_link' => '?module=workflow&amp;event=selectwf',
                'menu_alt'  => 'Workflow starten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 705
            ),
            array(
                'name'      => 'Zeitgesteuerter Workflow',
                'menu_link' => '?module=scheduledworkflow&amp;event=ShowScheduledWorkflows',
                'menu_alt'  => 'Zeitgesteuerter Workflow',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703
            ),
            array(
                'name'      => 'Detailreport',
                'menu_link' => '?module=workflow&amp;event=report',
                'menu_alt'  => 'Detailierter Report über WFs und deren Formulardaten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 706,
                'right_id2'  => 705
            ),
            array(
                'name'      => 'Bestellkatalog',
                'menu_link' => '?module=workflow&class=catalog&event=GetOrderCatalogArticles',
                'menu_alt'  => 'Artikelliste',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703,
                'childs'    => array(
                    array(
                        'name'      => 'Artikelimport',
                        'menu_link' => '?module=workflow&class=catalog',
                        'menu_alt'  => 'Artikel importieren',
                        'menu_img'  => 'ticket_list.gif',
                        'right_id'  => 703
                    )
                )
            )
        )
    );
} else {
    $menuArray['workflow'] = array(
        'name'      => 'Workflow',
        'menu_link' => '?module=workflow',
        'menu_alt'  => 'Workflow',
        'menu_img'  => 'project.png',
        'secure'    => 'Workflow',
        'right_id'  => 705,
        'right_id2' => 703,
        'right_id3' => 706,
        'childs'    => array(
            array(
                'name'      => 'Definition',
                'menu_link' => '?module=workflow&amp;event=listwfds',
                'menu_alt'  => 'Workflow Definitionen auflisten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=workflow&amp;event=listwfds',
                        'menu_alt'  => 'Workflow Definitionen auflisten',
                        'menu_img'  => 'ticket_list.gif',
                        'right_id'  => 703,
                    ),
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=workflow&amp;event=create',
                        'menu_alt'  => 'Neue Workflow Definition',
                        'menu_img'  => 'ticket_list.gif',
                        'right_id'  => 703,
                    ),
                )
            ),
            array(
                'name'      => 'Workflowliste',
                'menu_link' => '?module=workflow&amp;event=active',
                'menu_alt'  => 'Aktive Workflows auflisten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703,
                'right_id2' => 706
            ),
            array(
                'name'      => 'Workflow starten',
                'menu_link' => '?module=workflow&amp;event=selectwf',
                'menu_alt'  => 'Workflow starten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 705
            ),
            array(
                'name'      => 'Zeitgesteuerter Workflow',
                'menu_link' => '?module=scheduledworkflow&amp;event=ShowScheduledWorkflows',
                'menu_alt'  => 'Zeitgesteuerter Workflow',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 703
            ),
            array(
                'name'      => 'Detailreport',
                'menu_link' => '?module=workflow&amp;event=report',
                'menu_alt'  => 'Detailierter Report über WFs und deren Formulardaten',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 706,
                'right_id2' => 705
            )
        )
    );
}

$menuArray['kalender'] = array(
    'name'      => 'Kalender',
    'menu_link' => '?module=calendar',
    'menu_alt'  => 'Termine verwalten',
    'menu_img'  => 'calendar.gif',
    'right_id'  => 412,
    'secure'    => 'Calendar'
);

if (defined('HMCOMPANY') && (HMCOMPANY == 'MESSE DÜSSELDORF' || HMCOMPANY == 'BHS BAD HOMBURGER SERVICEGESELLSCHAFT')) {

    $menuArray['reporting'] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tcatkumu',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tcatkumu',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'       => 'je Struktur',
                        'menu_link'  => '?module=reporting&amp;event=tstruct',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'structure.gif',
                        'right_id'   => 30,
                        'asset.desk' => 0
                    ),
                    array(
                        'name'       => 'je Ger&auml;t',
                        'menu_link'  => '?module=reporting&amp;event=tdevnew',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'computer.gif',
                        'right_id'   => 30,
                        'asset.desk' => 1,
                    ),
                    array(
                        'name'      => 'je Firma',
                        'menu_link' => '?module=reporting&amp;event=company',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Abteilung',
                        'menu_link' => '?module=reporting&amp;event=tdepartment',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kostenstelle',
                        'menu_link' => '?module=reporting&amp;event=tcostcenter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Priorit&auml;t',
                        'menu_link' => '?module=reporting&amp;event=tprio',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Bearbeitungsart',
                        'menu_link' => '?module=reporting&amp;event=tproctype',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Eskalationsstufe',
                        'menu_link' => '?module=reporting&amp;event=tesca',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Benutzerdefinierte Felder',
                        'menu_link' => '?module=reporting&amp;event=deffield',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Ticketerstellkanal',
                        'menu_link' => '?module=reporting&amp;event=getChannelReport',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    )
                )
            ),
            array(
                'name'      => 'Ticketweitergabe',
                'menu_link' => '?module=reporting&amp;event=move',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket_go.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Erweitertes Reporting',
                'menu_link' => '?module=reporting&amp;class=advance',
                'menu_alt'  => 'Erweitertes Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 60,
                'secure'    => 'Reporting',
            ),
//            array(
//                'name'      => 'SLA Reporting',
//                'menu_link' => '?module=sla',
//                'menu_alt'  => 'SLA Reporting',
//                'menu_img'  => 'reporting.gif',
//                'right_id'  => 302
//            ),
            array(
                'name'      => 'Kategorie Reporting',
                'menu_link' => '?module=reporting&amp;event=CatReport',
                'menu_alt'  => 'Kategorie Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 30
            ),
            array(
                'name'      => 'Bewertung',
                'menu_link' => '?module=reporting&amp;event=rating',
                'menu_alt'  => 'Bewertung',
                'menu_img'  => 'ticket_go.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Benutzerrechte',
                'menu_link' => '?module=reporting&amp;class=userrightreport&amp;event=justUsers',
                'menu_alt'  => '',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 310,
            ),
        )
    );
} else if (defined('HMCOMPANY') && HMCOMPANY == 'STADT PADERBORN') {

    $menuArray['reporting'] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tcat',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tcat',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Benutzerdefinierte Felder',
                        'menu_link' => '?module=reporting&amp;event=deffield',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    )
                )
            )
        )
    );
} else {

    $menuArray['reporting'] = array(
        'name'      => 'Reporting',
        'menu_link' => '?module=reporting&amp;event=tuser',
        'menu_alt'  => 'Reporting',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'right_id2' => 872,
        'childs'    => array(
            array(
                'name'      => 'Tickets',
                'menu_link' => '?module=reporting&amp;event=tuser',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket.gif',
                'right_id'  => 30,
                'childs'    => array(
                    array(
                        'name'      => 'je Kontakt',
                        'menu_link' => '?module=reporting&amp;event=tcon',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'kontact.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Benutzer',
                        'menu_link' => '?module=reporting&amp;event=tuser',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'user.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Supporter',
                        'menu_link' => '?module=reporting&amp;event=tsupporter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'user.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Gruppe',
                        'menu_link' => '?module=reporting&amp;event=tgroup',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'group.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie',
                        'menu_link' => '?module=reporting&amp;event=tcat',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kategorie (kumulativ)',
                        'menu_link' => '?module=reporting&amp;event=tcatkumu',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'category.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'       => 'je Struktur',
                        'menu_link'  => '?module=reporting&amp;event=tstruct',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'structure.gif',
                        'right_id'   => 30,
                        'asset.desk' => 0
                    ),
                    array(
                        'name'       => 'je Ger&auml;t',
                        'menu_link'  => '?module=reporting&amp;event=tdevnew',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'computer.gif',
                        'right_id'   => 30,
                        'asset.desk' => 1,
                    ),
                    array(
                        'name'      => 'je Firma',
                        'menu_link' => '?module=reporting&amp;event=company',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Abteilung',
                        'menu_link' => '?module=reporting&amp;event=tdepartment',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Kostenstelle',
                        'menu_link' => '?module=reporting&amp;event=tcostcenter',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'company.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Priorit&auml;t',
                        'menu_link' => '?module=reporting&amp;event=tprio',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Bearbeitungsart',
                        'menu_link' => '?module=reporting&amp;event=tproctype',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Eskalationsstufe',
                        'menu_link' => '?module=reporting&amp;event=tesca',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Schlagwort',
                        'menu_link' => '?module=reporting&amp;event=tTags',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 219,
                    ),
                    array(
                        'name'      => 'je Tickettyp',
                        'menu_link' => '?module=reporting&amp;event=ttype',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                        'secure'    => 'TicketTemplate'
                    ),
                    array(
                        'name'      => 'je Benutzerdefinierte Felder',
                        'menu_link' => '?module=reporting&amp;event=deffield',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'       => 'je Asset',
                        'menu_link'  => '?module=reporting&amp;event=tdevice',
                        'menu_alt'   => 'Reporting',
                        'menu_img'   => 'user.gif',
                        'right_id'   => 30,
                        'asset.desk' => 0,
                        'secure'     => 'Assets'
                    ),
                    array(
                        'name'      => 'je Ticketerstellkanal',
                        'menu_link' => '?module=reporting&amp;event=getChannelReport',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    ),
                    array(
                        'name'      => 'je Ticketvorlage',
                        'menu_link' => '?module=reporting&amp;event=ttemplate',
                        'menu_alt'  => 'Reporting',
                        'menu_img'  => 'reporting.gif',
                        'right_id'  => 30,
                    )
                )
            ), 'ticketweitergabe'      =>
            array(
                'name'      => 'Ticketweitergabe',
                'menu_link' => '?module=reporting&amp;event=move',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'ticket_go.gif',
                'right_id'  => 30,
            ),
            'erweitertes reporting' => array(
                'name'      => 'Erweitertes Reporting',
                'menu_link' => '?module=reporting&amp;class=advance',
                'menu_alt'  => 'Erweitertes Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 60,
                'secure'    => 'Reporting',
            ),
            'SLA reporting'         => array(
                'name'      => 'SLA Reporting',
                'menu_link' => '?module=reporting&amp;event=tsla',
                'menu_alt'  => 'SLA Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 302,
                'secure'    => 'Reporting',
            ),
//            array(
//                'name'      => 'SLA Reporting',
//                'menu_link' => '?module=sla',
//                'menu_alt'  => 'SLA Reporting',
//                'menu_img'  => 'reporting.gif',
//                'right_id'  => 302
//            ),
            'supporter-berichte'    =>
            array(
                'name'      => 'Supporter-Berichte',
                'menu_link' => '?module=reporting&amp;event=TicketReports',
                'menu_alt'  => '',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 48,
                'right_id2' => 60,
            ),
            'userrightreport'       =>
            array(
                'name'      => 'Benutzerrechte',
                'menu_link' => '?module=reporting&amp;class=userrightreport&event=justUsers',
                'menu_alt'  => '',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 310,
            ),
            'ticketbewertung'       =>
            array(
                'name'      => 'Ticketbewertung',
                'menu_link' => '?module=reporting&amp;event=rating',
                'menu_alt'  => 'Reporting',
                'menu_img'  => 'reporting.gif',
                'right_id'  => 872,
                'childs'    => array(
                    array(
                        'name'      => 'nach Ticket',
                        'menu_link' => '?module=reporting&amp;event=rating',
                        'menu_alt'  => 'nach Ticket',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Kategorie',
                        'menu_link' => '?module=reporting&amp;event=ratingcat',
                        'menu_alt'  => 'nach Kategorie',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Supporter',
                        'menu_link' => '?module=reporting&amp;event=ratingsupporter',
                        'menu_alt'  => 'nach Supporter',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Gruppe',
                        'menu_link' => '?module=reporting&amp;event=ratinggroup',
                        'menu_alt'  => 'nach Supporter',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Kontakt',
                        'menu_link' => '?module=reporting&amp;event=ratingcontact',
                        'menu_alt'  => 'nach Kontakt',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Firma',
                        'menu_link' => '?module=reporting&amp;event=ratingcompany',
                        'menu_alt'  => 'nach Firma',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    ),
                    array(
                        'name'      => 'nach Kriterium',
                        'menu_link' => '?module=reporting&amp;event=ratingcriteria',
                        'menu_alt'  => 'nach Kriterium',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 872
                    )
                )
            )
        )
    );
}
if (defined('HMCOMPANY') && (HMCOMPANY == 'FAIR COMPUTER SYSTEMS GMBH' || HMCOMPANY == 'VHS HAMBURG' || HMCOMPANY == 'STADT NETTETAL' )) {

    $menuArray['reporting']['childs'][0]['childs'][] = array(
        'name'      => 'je LDAP Gerät',
        'menu_link' => '?module=reporting&amp;event=tldapdev',
        'menu_alt'  => '',
        'menu_img'  => 'reporting.gif',
        'right_id'  => 30,
        'right_id2' => 62,
    );
}

if (defined('HMCOMPANY') && (HMCOMPANY == 'ACTANO' || HMCOMPANY == 'STADT HILDESHEIM')) {


    $menuArray['reporting']['childs'][] = array(
        'name'      => 'Termintreue',
        'menu_link' => '?module=reporting&amp;event=dating',
        'menu_alt'  => 'Termintreue kontrollieren',
        'menu_img'  => 'dating.gif',
        'right_id'  => 30,
        'childs'    => array(
            array(
                'name'      => 'Termintreue',
                'menu_link' => '?module=reporting&amp;event=dating',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'dating.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Kontakt',
                'menu_link' => '?module=reporting&amp;event=dcontact',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'kontact.gif',
                'right_id'  => 30,
            ),
            array(
                'name'      => 'Benutzer',
                'menu_link' => '?module=reporting&amp;event=duser',
                'menu_alt'  => 'Termintreue kontrollieren',
                'menu_img'  => 'user.gif',
                'right_id'  => 30,
            ),
        )
    );
    $menuArray['reporting']['childs'][] = array(
        'name'      => 'Priorit&auml;ts&auml;nderung',
        'menu_link' => '?module=reporting&amp;event=priohistory',
        'menu_alt'  => 'Priot&auml;ts und F&auml;lligkeitsverlauf',
        'menu_img'  => 'dating.gif',
        'right_id'  => 30,
    );
    $menuArray['reporting']['childs'][] = array(
        'name'      => 'Weitergabe',
        'menu_link' => '?module=reporting&amp;event=handover',
        'menu_alt'  => 'Weitergabeinformation',
        'menu_img'  => 'ticket_go.gif',
        'right_id'  => 30,
    );
}

if (!defined('HISTORY') || (int) HISTORY == 0) {
    $menuArray['verwaltung'] = array(
        'name'      => 'Verwaltung',
        'menu_link' => '',
        'menu_alt'  => 'Systemverwaltung',
        'menu_img'  => 'settings.gif',
        'right_id'  => 0,
        'childs'    => array('benutzer'           =>
            array(
                'name'      => 'Benutzer',
                'menu_link' => '?module=user',
                'menu_alt'  => 'Benutzerverwaltung',
                'menu_img'  => 'user.gif',
                'right_id'  => 40,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=user&amp;event=create',
                        'menu_alt'  => 'Benutzer erstellen',
                        'menu_img'  => 'user_add.gif',
                        'right_id'  => 40
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=user',
                        'menu_alt'  => 'Benutzerliste',
                        'menu_img'  => 'user_list.gif',
                        'right_id'  => 40
                    ),
                    array(
                        'name'      => 'Gruppen',
                        'menu_link' => '?module=groups',
                        'menu_alt'  => 'Benutzergruppen',
                        'menu_img'  => 'group.gif',
                        'right_id'  => 38,
                        'childs'    => array(
                            array(
                                'name'      => 'Liste',
                                'menu_link' => '?module=groups',
                                'menu_alt'  => 'Gruppenliste',
                                'menu_img'  => 'group_list.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'      => 'Neu',
                                'menu_link' => '?module=groups&amp;event=create',
                                'menu_alt'  => 'Gruppe erstellen',
                                'menu_img'  => 'group_add.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'      => 'Benutzerrechte',
                                'menu_link' => '?module=groups&amp;event=GroupRightMatrix',
                                'menu_alt'  => 'Benutzerrechte',
                                'menu_img'  => 'group_rights.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'        => 'LDAP-Zuordnung',
                                'menu_link'   => '?module=groups&amp;class=LDAP',
                                'menu_alt'    => 'LDAP-Gruppen zuordnen',
                                'menu_img'    => 'category_assign.gif',
                                'right_id'    => 38,
                                'ldap.groups' => 1
                            )
                        )
                    )
                )
            ),
            'tickettyp'          =>
            array(
                'name'      => 'Tickettyp',
                'menu_link' => '?module=tickettype',
                'menu_alt'  => '',
                'menu_img'  => '',
                'right_id'  => 860,
                'secure'    => 'TicketTemplate',
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=tickettype&amp;event=create',
                        'menu_alt'  => 'Neuer ',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'secure'    => 'TicketTemplate'
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=tickettype',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'secure'    => 'TicketTemplate'
                    ),
                    array(
                        'name'      => 'Verwaltung',
                        'menu_link' => '',
                        'menu_alt'  => '',
                        'menu_img'  => '',
                        'right_id'  => 860,
                        'right_id2' => 862,
                        'secure'    => 'TicketTemplate',
                        'childs'    => array(
                            array(
                                'name'      => 'Felder',
                                'menu_link' => '?module=field',
                                'menu_alt'  => '',
                                'menu_img'  => '',
                                'right_id'  => 860,
                                'right_id2' => 862,
                                'secure'    => 'TicketTemplate'
                            ),
                            array(
                                'name'      => 'Icons',
                                'menu_link' => '?module=tickettype&amp;event=icons',
                                'menu_alt'  => '',
                                'menu_img'  => '',
                                'right_id'  => 860,
                                'secure'    => 'TicketTemplate'
                            )
                        )
                    )
                )
            ),
            'auswahllisten'      =>
            array(
                'name'      => 'Benutzerdefinierte Auswahllisten',
                'menu_link' => '?module=userfield',
                'menu_alt'  => '',
                'menu_img'  => '',
                'right_id'  => 860,
                'right_id2' => 862,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=userfield&event=newField',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'right_id2' => 862,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=userfield',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'right_id2' => 862,
                    ),
                    array(
                        'name'      => 'Firmenstruktur-Import',
                        'menu_link' => '?module=employee&class=datastructure',
                        'menu_alt'  => 'Firmenstruktur-Import',
                        'menu_img'  => 'contact_import.gif',
                        'right_id'  => 47,
                        'companies' => array('VERBUNDVOLKSBANK OWL EG')
                    )
                )
            ),
            'kontakte'           =>
            array(
                'name'      => 'Kontakte',
                'menu_link' => '?module=contact',
                'menu_alt'  => 'Kontaktliste',
                'menu_img'  => 'kontact.gif',
                'right_id'  => 42,
                'right_id2' => 1005,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=contact&amp;event=create',
                        'menu_alt'  => 'Neuer Kontakte',
                        'menu_img'  => 'contact_add.gif',
                        'right_id'  => 42
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=contact',
                        'menu_alt'  => 'Kontakte',
                        'menu_img'  => 'contact_list.gif',
                        'right_id'  => 42,
                        'right_id2' => 1005
                    ),
                    array(
                        'name'       => 'Mitarbeiter-Import',
                        'menu_link'  => '?module=employee&amp;event=importEmployees',
                        'menu_alt'   => 'Mitarbeiter-Import',
                        'menu_img'   => 'contact_import.gif',
                        'right_id'   => 47,
                        'asset.desk' => 1
                    ),
                    array(
                        'name'       => 'Mitarbeiter-Update',
                        'menu_link'  => '?module=employee&amp;event=updateEmployees',
                        'menu_alt'   => 'Mitarbeiter-update',
                        'menu_img'   => 'contact_refresh.gif',
                        'right_id'   => 47,
                        'asset.desk' => 1
                    ),
                    // RG, 30.07.07: CSV-Importer:
                    array(
                        'name'      => 'CSV-Import',
                        'menu_link' => '?module=employee&amp;event=csvImportEmployees',
                        'menu_alt'  => 'CSV-Import',
                        'menu_img'  => 'csv_import.gif',
                        'right_id'  => 47
                    ),
                    array(
                        'name'        => 'LDAP-Import',
                        'menu_link'   => '?module=employee&amp;event=adImportEmployees',
                        'menu_alt'    => 'LDAP- oder ActiveDirectory-Import',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 47,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'        => 'LDAP-Update',
                        'menu_link'   => '?module=employee&amp;event=adUpdateEmployees',
                        'menu_alt'    => 'LDAP- oder ActiveDirectory-Update',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 47,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'        => 'Azure AD - Import',
                        'menu_link'   => '?module=azure&amp;event=importUsers',
                        'menu_alt'    => 'Import über Azure AD',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 1300,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'      => 'Firmen verwalten',
                        'menu_link' => '?module=contact&amp;class=company',
                        'menu_alt'  => 'Firmen',
                        'right_id'  => 42
                    )
                )
            ),
            'mandanten'          =>
            array(
                'name'      => 'Mandanten',
                'menu_link' => '?module=mandant',
                'menu_alt'  => 'Mandantenverwaltung',
                'menu_img'  => 'category.gif',
                'right_id'  => 850,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=mandant&amp;event=edit',
                        'menu_alt'  => 'Mandant anlegen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 850
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=mandant',
                        'menu_alt'  => 'Mandanten anzeigen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 850
                    )
                )
            ),
            'ticketbewertung'    =>
            array(
                'name'      => 'Ticketbewertung',
                'menu_link' => '?module=criteria',
                'menu_alt'  => 'Bewertung',
                'menu_img'  => '',
                'right_id'  => 870
            ),
            'kategorien'         =>
            array(
                'name'      => 'Kategorien',
                'menu_link' => '?module=category',
                'menu_alt'  => 'Kategorienverwalten',
                'menu_img'  => 'category.gif',
                'right_id'  => 34,
                'right_id2' => 33,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=category&amp;event=create',
                        'menu_alt'  => 'Kategorie anlegen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 34
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=category',
                        'menu_alt'  => 'Kategorienliste',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 34
                    ),
                    array(
                        'name'      => 'Zuordnung',
                        'menu_link' => '?module=category&amp;event=assignCategory',
                        'menu_alt'  => 'Kategorienzuordnung',
                        'menu_img'  => 'category_assign.gif',
                        'right_id'  => 33,
                        'childs'    => array(
                            array(
                                'name'      => 'Gruppenzuordnung',
                                'menu_link' => '?module=category&amp;event=assignCategory',
                                'menu_alt'  => 'Kategorie anlegen',
                                'menu_img'  => 'category_add.gif',
                                'right_id'  => 33
                            ),
                            array(
                                'name'      => 'Tickettypenzuordnung',
                                'menu_link' => '?module=category&amp;event=assignCategoryType',
                                'menu_alt'  => 'Kategorienliste',
                                'menu_img'  => 'category_list.gif',
                                'right_id'  => 33,
                                'secure'    => 'TicketTemplate'
                            )
                        )
                    )
                )
            ),
            //ToDo:
            'garantieabwicklung' =>
            array(
                'name'      => 'Gewährleistungsabwicklung',
                'menu_link' => '?module=wprequest',
                'menu_alt'  => 'Gewährleistungsabwicklung',
                'right_id'  => 34
            ),
            'struktur'           =>
            array(
                'name'       => 'Struktur',
                'menu_link'  => '?module=structure',
                'menu_alt'   => 'Firmenstruktur',
                'menu_img'   => 'structure.gif',
                'right_id'   => 32,
                'asset.desk' => 0,
                'childs'     => array(
                    array(
                        'name'       => 'Liste',
                        'menu_link'  => '?module=structure',
                        'menu_alt'   => 'Firmenstruktur',
                        'menu_img'   => 'structure_list.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    ),
                    array(
                        'name'       => 'Neu',
                        'menu_link'  => '?module=structure&amp;task=new',
                        'menu_alt'   => 'Firmenstruktur erstellen',
                        'menu_img'   => 'structure_add.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    ),
                    array(
                        'name'       => 'Strukturtyp',
                        'menu_link'  => '?module=structure&amp;class=type',
                        'menu_alt'   => 'Strukturtyp',
                        'menu_img'   => 'structure_type.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    )
                )
            ),
            'nachrichten'        =>
            array(
                'name'      => 'Nachrichten',
                'menu_link' => '?module=news',
                'menu_alt'  => 'Nachrichten',
                'menu_img'  => 'news.gif',
                'right_id'  => 46,
                'childs'    => array(
                    array(
                        'name'      => 'Neue Nachricht',
                        'menu_link' => '?module=news&amp;event=editNews',
                        'menu_alt'  => 'Neue Nachricht',
                        'menu_img'  => 'news_add.gif',
                        'right_id'  => 46
                    ),
                    array(
                        'name'      => 'Nachrichtenliste',
                        'menu_link' => '?module=news',
                        'menu_alt'  => 'Nachrichten',
                        'menu_img'  => 'news_list.gif',
                        'right_id'  => 46
                    )
                )
            ),
            'formulare'          =>
            array(
                'name'      => 'Formulare',
                'menu_link' => '?module=formwizard',
                'menu_alt'  => 'Formulare',
                'menu_img'  => 'formwizard.gif',
                'right_id'  => 810,
                'right_id2' => 36,
                'secure'    => 'FormWizard',
            ),
            'ticketvorlagen'     =>
            array(
                'name'      => 'Ticketvorlagen',
                'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
                'menu_alt'  => 'Vorlagen fuer Tickets',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 401,
                'secure'    => 'TicketTemplate',
                'childs'    => array(
                    array(
                        'name'      => 'Neue Vorlage',
                        'menu_link' => '?module=tickettemplate&amp;event=newTemplate',
                        'menu_alt'  => 'Neue Vorlage',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 401,
                        'secure'    => 'TicketTemplate',
                    ),
                    array(
                        'name'      => 'Vorlagen',
                        'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
                        'menu_alt'  => 'Vorlagen verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 401,
                        'secure'    => 'TicketTemplate',
                    ),
                )
            ),
            'listen'             =>
            array(
                'name'      => 'Listen',
                'menu_link' => '?module=selectablelistview&amp;event=standard',
                'menu_alt'  => 'Listen anpassen',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 410,
                'childs'    => array(
                    array(
                        'name'      => 'Ticketliste',
                        'menu_link' => '?module=selectablelistview&event=edit&id=Ticketlist&user=standard',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 410
                    )
                )
            ),
            'bearbeitungsart'    =>
            array(
                'name'      => 'Bearbeitungsart',
                'menu_link' => '?module=processingtypes',
                'menu_alt'  => 'Bearbeitungsart',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 113,
                'childs'    => array(
                    array(
                        'name'      => 'Neue',
                        'menu_link' => '?module=processingtypes&amp;event=edit',
                        'menu_alt'  => 'Neue Bearbeitungsart',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 113,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=processingtypes',
                        'menu_alt'  => 'Bearbeitungsarten verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 113,
                    ),
                )
            ),
            'schlagworte'        =>
            array(
                'name'      => 'Schlagworte',
                'menu_link' => '?module=tags',
                'menu_alt'  => 'Schlagworte für Tickets bearbeiten',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 220,
                'childs'    => array(
                    array(
                        'name'      => 'Neue',
                        'menu_link' => '?module=tags&amp;event=addTags',
                        'menu_alt'  => 'Neue Schlagworte',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 220,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=tags',
                        'menu_alt'  => 'Schlagworte verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 220,
                    )
                )
            ),
            'assetverwaltung'    =>
            array(
                'name'       => 'Assetverwaltung',
                'menu_link'  => '?module=assets',
                'menu_alt'   => 'Assetverwaltung',
                'menu_img'   => 'tickettemplate.gif',
                'right_id'   => 36,
                'secure'     => 'Assets',
                'asset.desk' => 0,
                'childs'     => array(
                    array(
                        'name'      => 'Neues Asset',
                        'menu_link' => '?module=assets&amp;event=editDevice',
                        'menu_alt'  => 'Neues Asset anlegen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 36,
                        'secure'    => 'Assets'
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=assets',
                        'menu_alt'  => 'Assetliste',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 36,
                        'secure'    => 'Assets'
                    ),
                    array(
                        'name'      => 'Assettypen',
                        'menu_link' => '?module=assets&class=assettypes',
                        'menu_alt'  => 'Assettypenverwaltung',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 36,
                        'secure'    => 'Assets',
                        'childs'    => array(
                            array(
                                'name'      => 'Neuer Assettyp',
                                'menu_link' => '?module=assets&class=assettypes&event=editDeviceType',
                                'menu_alt'  => 'Neuen Assettyp anlegen',
                                'menu_img'  => 'tickettemplate_add.gif',
                                'right_id'  => 36,
                                'secure'    => 'Assets'
                            ),
                            array(
                                'name'      => 'Liste',
                                'menu_link' => '?module=assets&class=assettypes',
                                'menu_alt'  => 'Assettypen verwalten',
                                'menu_img'  => 'tickettemplate.gif',
                                'right_id'  => 36,
                                'secure'    => 'Assets',
                            ),
                        )
                    )
                )
            ),
            'textbausteine'      =>
            array(
                'name'      => 'Textbausteine',
                'menu_link' => '?module=ticket&class=snippets&event=manageSnippets',
                'menu_alt'  => 'Textbausteine',
                'menu_img'  => 'settings.gif',
                'right_id'  => 225,
                'right_id2' => 227,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=ticket&class=snippets&event=manageSnippets',
                        'menu_alt'  => 'Liste',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225,
                        'right_id2' => 227
                    ),
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=ticket&class=snippets&event=addNew',
                        'menu_alt'  => 'Neu',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225,
                        'right_id2' => 227,
                    ),
                    array(
                        'name'      => 'Rubriken verwalten',
                        //'menu_link' => '/snippet/rubrics',
                        'menu_link' => '?module=ticket&class=snippets&event=ManageRubrics',
                        'menu_alt'  => 'Rubriken verwalten',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225
                    )
                )
            ),
            'customticketstatus' =>
            array(
                'name' => 'Ticketstatus / Auswirkungsgrad',
                'menu_link' => '?module=customstatus',
                'menu_alt' => 'Benutzerdefinierte Ticketstatus / Auswirkungsgrad',
                'menu_img' => 'settings.gif',
                'right_id' => 36,
                'childs' => array(
                    array(
                        'name' => 'Liste',
                        'menu_link' => '?module=customstatus',
                        'menu_alt' => 'Liste',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36,
                    ),
                    array(
                        'name' => 'Neu',
                        'menu_link' => '?module=customstatus&event=edit',
                        'menu_alt' => 'Neu',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36,
                    )
                )
            ),
            'einstellungen'      =>
            array(
                'name'      => 'Einstellungen',
                'menu_link' => '?module=settings',
                'menu_alt'  => 'Einstellungen',
                'menu_img'  => 'settings.gif',
                'right_id'  => 36,
                'childs'    => array(
                    array(
                        'name'      => 'Datenbank',
                        'menu_link' => '?module=settings#DatenbankPanel',
                        'menu_alt'  => 'Datenbank Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Benachrichtigungen',
                        'menu_link' => '?module=settings#NotificationPanel',
                        'menu_alt'  => 'Benachrichtigungseinstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'MailTemplates',
                        'menu_link' => '?module=settings#MailTemplatePanel',
                        'menu_alt'  => 'E-Mail Templates',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Allgemein',
                        'menu_link' => '?module=settings#AllgemeinPanel',
                        'menu_alt'  => 'Allgemeine Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Ticket',
                        'menu_link' => '?module=settings#TicketPanel',
                        'menu_alt'  => 'Ticket Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Kosten',
                        'menu_link' => '?module=settings#CostsPanel',
                        'menu_alt'  => 'Kostengruppen Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Eskalation',
                        'menu_link' => '?module=settings#EscalationPanel',
                        'menu_alt'  => 'Eskalations Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Optik',
                        'menu_link' => '?module=settings#StylePanel',
                        'menu_alt'  => 'Oberflächen Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Authentifizierung',
                        'menu_link' => '?module=settings#AuthPanel',
                        'menu_alt'  => 'LDAP & Login Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'E-Mail in Ticket',
                        'menu_link' => '?module=settings#Mail2TicketPanel',
                        'menu_alt'  => 'Mail2Ticket Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36,
                        'secure'    => 'POP3'
                    ),
                    array(
                        'name'      => 'Logs',
                        'menu_link' => '?module=settings#LogsPanel',
                        'menu_alt'  => 'Debug',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Dashboard',
                        'menu_link' => '?module=settings#DashboardPanel',
                        'menu_alt'  => 'Loginseite',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Über HEINZELMANN',
                        'menu_link' => '?module=settings#AboutPanel',
                        'menu_alt'  => 'HEINZELMANN Infos',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                )
            )
        )
    );
} else {
    $menuArray['verwaltung'] = array(
        'name'      => 'Verwaltung',
        'menu_link' => '',
        'menu_alt'  => 'Systemverwaltung',
        'menu_img'  => 'settings.gif',
        'right_id'  => 0,
        'childs'    => array('benutzer'           =>
            array(
                'name'      => 'Benutzer',
                'menu_link' => '?module=user',
                'menu_alt'  => 'Benutzerverwaltung',
                'menu_img'  => 'user.gif',
                'right_id'  => 40,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=user&amp;event=create',
                        'menu_alt'  => 'Benutzer erstellen',
                        'menu_img'  => 'user_add.gif',
                        'right_id'  => 40
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=user',
                        'menu_alt'  => 'Benutzerliste',
                        'menu_img'  => 'user_list.gif',
                        'right_id'  => 40
                    ),
                    array(
                        'name'      => 'Gruppen',
                        'menu_link' => '?module=groups',
                        'menu_alt'  => 'Benutzergruppen',
                        'menu_img'  => 'group.gif',
                        'right_id'  => 38,
                        'childs'    => array(
                            array(
                                'name'      => 'Liste',
                                'menu_link' => '?module=groups',
                                'menu_alt'  => 'Gruppenliste',
                                'menu_img'  => 'group_list.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'      => 'Neu',
                                'menu_link' => '?module=groups&amp;event=create',
                                'menu_alt'  => 'Gruppe erstellen',
                                'menu_img'  => 'group_add.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'      => 'Benutzerrechte',
                                'menu_link' => '?module=groups&amp;event=GroupRightMatrix',
                                'menu_alt'  => 'Benutzerrechte',
                                'menu_img'  => 'group_rights.gif',
                                'right_id'  => 38
                            ),
                            array(
                                'name'        => 'LDAP-Zuordnung',
                                'menu_link'   => '?module=groups&amp;class=LDAP',
                                'menu_alt'    => 'LDAP-Gruppen zuordnen',
                                'menu_img'    => 'category_assign.gif',
                                'right_id'    => 38,
                                'ldap.groups' => 1
                            )
                        )
                    )
                )
            ),
            'tickettyp'          =>
            array(
                'name'      => 'Tickettyp',
                'menu_link' => '?module=tickettype',
                'menu_alt'  => '',
                'menu_img'  => '',
                'right_id'  => 860,
                'secure'    => 'TicketTemplate',
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=tickettype&amp;event=create',
                        'menu_alt'  => 'Neuer ',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'secure'    => 'TicketTemplate'
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=tickettype',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'secure'    => 'TicketTemplate'
                    ),
                    array(
                        'name'      => 'Verwaltung',
                        'menu_link' => '',
                        'menu_alt'  => '',
                        'menu_img'  => '',
                        'right_id'  => 860,
                        'right_id2' => 862,
                        'secure'    => 'TicketTemplate',
                        'childs'    => array(
                            array(
                                'name'      => 'Felder',
                                'menu_link' => '?module=field',
                                'menu_alt'  => '',
                                'menu_img'  => '',
                                'right_id'  => 860,
                                'right_id2' => 862,
                                'secure'    => 'TicketTemplate'
                            ),
                            array(
                                'name'      => 'Icons',
                                'menu_link' => '?module=tickettype&amp;event=icons',
                                'menu_alt'  => '',
                                'menu_img'  => '',
                                'right_id'  => 860,
                                'secure'    => 'TicketTemplate'
                            )
                        )
                    )
                )
            ),
            'auswahllisten'      =>
            array(
                'name'      => 'Benutzerdefinierte Auswahllisten',
                'menu_link' => '?module=userfield',
                'menu_alt'  => '',
                'menu_img'  => '',
                'right_id'  => 860,
                'right_id2' => 862,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=userfield&event=newField',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'right_id2' => 862,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=userfield',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 860,
                        'right_id2' => 862,
                    ),
                    array(
                        'name'      => 'Firmenstruktur-Import',
                        'menu_link' => '?module=employee&class=datastructure',
                        'menu_alt'  => 'Firmenstruktur-Import',
                        'menu_img'  => 'contact_import.gif',
                        'right_id'  => 47,
                        'companies' => array('VERBUNDVOLKSBANK OWL EG')
                    )

                )
            ),
            'kontakte'           =>
            array(
                'name'      => 'Kontakte',
                'menu_link' => '?module=contact',
                'menu_alt'  => 'Kontaktliste',
                'menu_img'  => 'kontact.gif',
                'right_id'  => 42,
                'right_id2' => 1005,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=contact&amp;event=create',
                        'menu_alt'  => 'Neuer Kontakte',
                        'menu_img'  => 'contact_add.gif',
                        'right_id'  => 42
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=contact',
                        'menu_alt'  => 'Kontakte',
                        'menu_img'  => 'contact_list.gif',
                        'right_id'  => 42,
                        'right_id2' => 1005
                    ),
                     array(
                        'name'       => 'Mitarbeiter-Import',
                        'menu_link'  => '?module=employee&amp;event=importEmployees',
                        'menu_alt'   => 'Mitarbeiter-Import',
                        'menu_img'   => 'contact_import.gif',
                        'right_id'   => 47,
                        'asset.desk' => 1
                    ),
                    array(
                        'name'       => 'Mitarbeiter-Update',
                        'menu_link'  => '?module=employee&amp;event=updateEmployees',
                        'menu_alt'   => 'Mitarbeiter-update',
                        'menu_img'   => 'contact_refresh.gif',
                        'right_id'   => 47,
                        'asset.desk' => 1
                    ),
                    // RG, 30.07.07: CSV-Importer:
                    array(
                        'name'      => 'CSV-Import',
                        'menu_link' => '?module=employee&amp;event=csvImportEmployees',
                        'menu_alt'  => 'CSV-Import',
                        'menu_img'  => 'csv_import.gif',
                        'right_id'  => 47
                    ),
                    array(
                        'name'        => 'LDAP-Import',
                        'menu_link'   => '?module=employee&amp;event=adImportEmployees',
                        'menu_alt'    => 'LDAP- oder ActiveDirectory-Import',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 47,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'        => 'LDAP-Update',
                        'menu_link'   => '?module=employee&amp;event=adUpdateEmployees',
                        'menu_alt'    => 'LDAP- oder ActiveDirectory-Update',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 47,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'        => 'Azure AD - Import',
                        'menu_link'   => '?module=azure&amp;event=importUsers',
                        'menu_alt'    => 'Import über Azure AD',
                        'menu_img'    => 'csv_import.gif',
                        'right_id'    => 1300,
                        'ldap.import' => 1
                    ),
                    array(
                        'name'      => 'Firmen verwalten',
                        'menu_link' => '?module=contact&amp;class=company',
                        'menu_alt'  => 'Firmen',
                        'right_id'  => 42
                    )
                )
            ),
            'mandanten'          =>
            array(
                'name'      => 'Mandanten',
                'menu_link' => '?module=mandant',
                'menu_alt'  => 'Mandantenverwaltung',
                'menu_img'  => 'category.gif',
                'right_id'  => 850,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=mandant&amp;event=edit',
                        'menu_alt'  => 'Mandant anlegen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 850
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=mandant',
                        'menu_alt'  => 'Mandanten anzeigen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 850
                    )
                )
            ),
            'ticketbewertung'    =>
            array(
                'name'      => 'Ticketbewertung',
                'menu_link' => '?module=criteria',
                'menu_alt'  => 'Bewertung',
                'menu_img'  => '',
                'right_id'  => 870
            ),
            'kategorien'         =>
            array(
                'name'      => 'Kategorien',
                'menu_link' => '?module=category',
                'menu_alt'  => 'Kategorienverwalten',
                'menu_img'  => 'category.gif',
                'right_id'  => 34,
                'right_id2' => 33,
                'childs'    => array(
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=category&amp;event=create',
                        'menu_alt'  => 'Kategorie anlegen',
                        'menu_img'  => 'category_add.gif',
                        'right_id'  => 34
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=category',
                        'menu_alt'  => 'Kategorienliste',
                        'menu_img'  => 'category_list.gif',
                        'right_id'  => 34
                    ),
                    array(
                        'name'      => 'Zuordnung',
                        'menu_link' => '?module=category&amp;event=assignCategory',
                        'menu_alt'  => 'Kategorienzuordnung',
                        'menu_img'  => 'category_assign.gif',
                        'right_id'  => 33,
                        'childs'    => array(
                            array(
                                'name'      => 'Gruppenzuordnung',
                                'menu_link' => '?module=category&amp;event=assignCategory',
                                'menu_alt'  => 'Kategorie anlegen',
                                'menu_img'  => 'category_add.gif',
                                'right_id'  => 33
                            ),
                            array(
                                'name'      => 'Tickettypenzuordnung',
                                'menu_link' => '?module=category&amp;event=assignCategoryType',
                                'menu_alt'  => 'Kategorienliste',
                                'menu_img'  => 'category_list.gif',
                                'right_id'  => 33,
                                'secure'    => 'TicketTemplate'
                            )
                        )
                    )
                )
            ),
            //ToDo:
            'garantieabwicklung' =>
            array(
                'name'      => 'Gewährleistungsabwicklung',
                'menu_link' => '?module=wprequest',
                'menu_alt'  => 'Gewährleistungsabwicklung',
                'right_id'  => 34
            ),
            'struktur'           =>
            array(
                'name'       => 'Struktur',
                'menu_link'  => '?module=structure',
                'menu_alt'   => 'Firmenstruktur',
                'menu_img'   => 'structure.gif',
                'right_id'   => 32,
                'asset.desk' => 0,
                'childs'     => array(
                    array(
                        'name'       => 'Liste',
                        'menu_link'  => '?module=structure',
                        'menu_alt'   => 'Firmenstruktur',
                        'menu_img'   => 'structure_list.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    ),
                    array(
                        'name'       => 'Neu',
                        'menu_link'  => '?module=structure&amp;task=new',
                        'menu_alt'   => 'Firmenstruktur erstellen',
                        'menu_img'   => 'structure_add.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    ),
                    array(
                        'name'       => 'Strukturtyp',
                        'menu_link'  => '?module=structure&amp;class=type',
                        'menu_alt'   => 'Strukturtyp',
                        'menu_img'   => 'structure_type.gif',
                        'right_id'   => 32,
                        'asset.desk' => 0,
                    )
                )
            ),
            'nachrichten'        =>
            array(
                'name'      => 'Nachrichten',
                'menu_link' => '?module=news',
                'menu_alt'  => 'Nachrichten',
                'menu_img'  => 'news.gif',
                'right_id'  => 46,
                'childs'    => array(
                    array(
                        'name'      => 'Neue Nachricht',
                        'menu_link' => '?module=news&amp;event=editNews',
                        'menu_alt'  => 'Neue Nachricht',
                        'menu_img'  => 'news_add.gif',
                        'right_id'  => 46
                    ),
                    array(
                        'name'      => 'Nachrichtenliste',
                        'menu_link' => '?module=news',
                        'menu_alt'  => 'Nachrichten',
                        'menu_img'  => 'news_list.gif',
                        'right_id'  => 46
                    )
                )
            ),
            'formulare'          =>
            array(
                'name'      => 'Formulare',
                'menu_link' => '?module=formwizard',
                'menu_alt'  => 'Formulare',
                'menu_img'  => 'formwizard.gif',
                'right_id'  => 810,
                'right_id2' => 36,
                'secure'    => 'FormWizard',
            ),
            'ticketvorlagen'     =>
            array(
                'name'      => 'Ticketvorlagen',
                'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
                'menu_alt'  => 'Vorlagen fuer Tickets',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 401,
                'secure'    => 'TicketTemplate',
                'childs'    => array(
                    array(
                        'name'      => 'Neue Vorlage',
                        'menu_link' => '?module=tickettemplate&amp;event=newTemplate',
                        'menu_alt'  => 'Neue Vorlage',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 401,
                        'secure'    => 'TicketTemplate',
                    ),
                    array(
                        'name'      => 'Vorlagen',
                        'menu_link' => '?module=tickettemplate&amp;event=listTemplates',
                        'menu_alt'  => 'Vorlagen verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 401,
                        'secure'    => 'TicketTemplate',
                    ),
                )
            ),
            'listen'             =>
            array(
                'name'      => 'Listen',
                'menu_link' => '?module=selectablelistview&amp;event=standard',
                'menu_alt'  => 'Listen anpassen',
                'menu_img'  => 'ticket_list.gif',
                'right_id'  => 410,
                'childs'    => array(
                    array(
                        'name'      => 'Ticketliste',
                        'menu_link' => '?module=selectablelistview&event=edit&id=Ticketlist&user=standard',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 410
                    )
                )
            ),
            'bearbeitungsart'    =>
            array(
                'name'      => 'Bearbeitungsart',
                'menu_link' => '?module=processingtypes',
                'menu_alt'  => 'Bearbeitungsart',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 113,
                'childs'    => array(
                    array(
                        'name'      => 'Neue',
                        'menu_link' => '?module=processingtypes&amp;event=edit',
                        'menu_alt'  => 'Neue Bearbeitungsart',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 113,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=processingtypes',
                        'menu_alt'  => 'Bearbeitungsarten verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 113,
                    ),
                )
            ),
            'schlagworte'        =>
            array(
                'name'      => 'Schlagworte',
                'menu_link' => '?module=tags',
                'menu_alt'  => 'Schlagworte für Tickets bearbeiten',
                'menu_img'  => 'tickettemplate.gif',
                'right_id'  => 220,
                'childs'    => array(
                    array(
                        'name'      => 'Neue',
                        'menu_link' => '?module=tags&amp;event=addTags',
                        'menu_alt'  => 'Neue Schlagworte',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 220,
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=tags',
                        'menu_alt'  => 'Schlagworte verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 220,
                    )
                )
            ),
            'assetverwaltung'    =>
            array(
                'name'       => 'Assetverwaltung',
                'menu_link'  => '?module=assets',
                'menu_alt'   => 'Assetverwaltung',
                'menu_img'   => 'tickettemplate.gif',
                'right_id'   => 270,
                'asset.desk' => 0,
                'secure'     => 'Assets',
                'childs'     => array(
                    array(
                        'name'      => 'Neues Asset',
                        'menu_link' => '?module=assets&amp;event=editDevice',
                        'menu_alt'  => 'Neues Asset anlegen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 270,
                        'secure'    => 'Assets',
                    ),
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=assets',
                        'menu_alt'  => 'Assets verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 270,
                        'secure'    => 'Assets',
                    ),
                    array(
                        'name'      => 'Assettypen',
                        'menu_link' => '?module=assets&class=assettypes',
                        'menu_alt'  => 'Assettypen verwalten',
                        'menu_img'  => 'tickettemplate.gif',
                        'right_id'  => 270,
                        'secure'    => 'Assets',
                        'childs'    => array(
                            array(
                                'name'      => 'Neuer Assettyp',
                                'menu_link' => '?module=assets&class=assettypes&event=editDeviceType',
                                'menu_alt'  => 'Neuen Assettyp anlegen',
                                'menu_img'  => 'tickettemplate_add.gif',
                                'right_id'  => 270,
                                'secure'    => 'Assets',
                            ),
                            array(
                                'name'      => 'Liste',
                                'menu_link' => '?module=assets&class=assettypes',
                                'menu_alt'  => 'Assettypen verwalten',
                                'menu_img'  => 'tickettemplate.gif',
                                'right_id'  => 270,
                                'secure'    => 'Assets',
                            ),
                        )
                    )
                )
            ),
            'textbausteine'      =>
            array(
                'name'      => 'Textbausteine',
                'menu_link' => '?module=ticket&class=snippets&event=manageSnippets',
                'menu_alt'  => 'Textbausteine',
                'menu_img'  => 'settings.gif',
                'right_id'  => 225,
                'right_id2' => 227,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=ticket&class=snippets&event=manageSnippets',
                        'menu_alt'  => 'Liste',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225,
                        'right_id2' => 227
                    ),
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=ticket&class=snippets&event=addNew',
                        'menu_alt'  => 'Neu',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225,
                        'right_id2' => 227,
                    ),
                    array(
                        'name'      => 'Rubriken verwalten',
                        //'menu_link' => '/snippet/rubrics',
                        'menu_link' => '?module=ticket&class=snippets&event=ManageRubrics',
                        'menu_alt'  => 'Rubriken verwalten',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 225
                    )
                )
            ),
            'customticketstatus'      =>
            array(
                'name'      => 'Ticketstatus / Auswirkungsgrad',
                'menu_link' => '?module=customstatus',
                'menu_alt'  => 'Benutzerdefinierte Ticketstatus / Auswirkungsgrad',
                'menu_img'  => 'settings.gif',
                'right_id'  => 36,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=customstatus',
                        'menu_alt'  => 'Liste',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36,
                    ),
                    array(
                        'name'      => 'Neu',
                        'menu_link' => '?module=customstatus&event=edit',
                        'menu_alt'  => 'Neu',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36,
                    )
                )
            ),
            'einstellungen'      =>
            array(
                'name'      => 'Einstellungen',
                'menu_link' => '?module=settings',
                'menu_alt'  => 'Einstellungen',
                'menu_img'  => 'settings.gif',
                'right_id'  => 36,
                'childs'    => array(
                    array(
                        'name'      => 'Datenbank',
                        'menu_link' => '?module=settings#DatenbankPanel',
                        'menu_alt' => 'Datenbank Einstellungen',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36
                    ),
                    array(
                        'name' => 'Benachrichtigungen',
                        'menu_link' => '?module=settings#NotificationPanel',
                        'menu_alt' => 'Benachrichtigungseinstellungen',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36
                    ),
                    array(
                        'name' => 'MailTemplates',
                        'menu_link' => '?module=settings#MailTemplatePanel',
                        'menu_alt' => 'E-Mail Templates',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36
                    ),
                    array(
                        'name' => 'Allgemein',
                        'menu_link' => '?module=settings#AllgemeinPanel',
                        'menu_alt' => 'Allgemeine Einstellungen',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36
                    ),
                    array(
                        'name' => 'Ticket',
                        'menu_link' => '?module=settings#TicketPanel',
                        'menu_alt' => 'Ticket Einstellungen',
                        'menu_img' => 'settings.gif',
                        'right_id' => 36
                    ),
                    array(
                        'name'      => 'Rest-API',
                        'menu_link' => '?module=settings#RestPanel',
                        'menu_alt'  => 'Rest-API Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Kosten',
                        'menu_link' => '?module=settings#CostsPanel',
                        'menu_alt'  => 'Kostengruppen Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Eskalation',
                        'menu_link' => '?module=settings#EscalationPanel',
                        'menu_alt'  => 'Eskalations Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Optik',
                        'menu_link' => '?module=settings#StylePanel',
                        'menu_alt'  => 'Oberflächen Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Authentifizierung',
                        'menu_link' => '?module=settings#AuthPanel',
                        'menu_alt'  => 'LDAP & Login Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'E-Mail in Ticket',
                        'menu_link' => '?module=settings#Mail2TicketPanel',
                        'menu_alt'  => 'Mail2Ticket Einstellungen',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36,
                        'secure'    => 'POP3'
                    ),
                    array(
                        'name'      => 'Logs',
                        'menu_link' => '?module=settings#LogsPanel',
                        'menu_alt'  => 'Debug',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Dashboard',
                        'menu_link' => '?module=settings#DashboardPanel',
                        'menu_alt'  => 'Loginseite',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Über HEINZELMANN',
                        'menu_link' => '?module=settings#AboutPanel',
                        'menu_alt'  => 'HEINZELMANN Infos',
                        'menu_img'  => 'settings.gif',
                        'right_id'  => 36
                    ),
                )
            ),
            'historie'           =>
            array(
                'name'      => 'Historie',
                'menu_link' => '?module=history',
                'menu_alt'  => '',
                'menu_img'  => '',
                'right_id'  => 1200,
                'childs'    => array(
                    array(
                        'name'      => 'Knowledgebase',
                        'menu_link' => '?module=history&class=knowledgebase',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    ),
                    array(
                        'name'      => 'Einstellung',
                        'menu_link' => '?module=history&class=settings',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 36
                    ),
                    array(
                        'name'      => 'Benutzer',
                        'menu_link' => '?module=history&class=user',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    ),
                    array(
                        'name'      => 'Gruppe',
                        'menu_link' => '?module=history&class=groups',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    ),
                    array(
                        'name'      => 'Kontakt',
                        'menu_link' => '?module=history&class=contact',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    ),
                    array(
                        'name'      => 'Projekt',
                        'menu_link' => '?module=history&class=project',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    ),
                    array(
                        'name'      => 'Kategorie',
                        'menu_link' => '?module=history&class=category',
                        'menu_alt'  => '',
                        'menu_img'  => '.gif',
                        'right_id'  => 1200
                    )
                )
            )
        )
    );
}

$menuArray['knowledgebase'] = array(
    'name'      => 'Knowledgebase',
    'menu_link' => '?module=knowledgebase',
    'menu_alt'  => 'Knowledgebase',
    'menu_img'  => 'kb.gif',
    'right_id'  => 31,
    'childs'    => array(
        array(
            'name'      => 'Erweiterte Volltextsuche',
            'menu_link' => '?module=knowledgebase&amp;event=search',
            'menu_alt'  => 'Erweiterte Volltextsuche',
            'menu_img'  => 'kb_search.gif',
            'right_id'  => 31,
        ),
        /*
        array(
            'name'      => 'Rubriken verwalten',
            'menu_link' => '?module=knowledgebase&amp;class=category',
            'menu_alt'  => 'Rubriken verwalten',
            'menu_img'  => 'kb_categories.gif',
            'right_id'  => 19,
        ),*/
        array(
            'name'      => 'Beitrag erstellen',
            'menu_link' => '?module=knowledgebase&amp;event=create',
            'menu_alt'  => 'Beitrag erstellen',
            'menu_img'  => 'kb_add.gif',
            'right_id'  => 15,
        ),
        array(
            'name'      => 'Beitragsfreigabe',
            'menu_link' => '?module=knowledgebase&amp;event=release',
            'menu_alt'  => 'Beitragsfreigabe',
            'menu_img'  => 'kb_publish.gif',
            'right_id'  => 19,
        )
    )
);

if (defined('HMCOMPANY') && (strpos(HMCOMPANY, 'STEUTE ') !== FALSE)) {



    $menuArray['projekte'] = array(
        'name'      => 'Projekte',
        'menu_link' => '?module=project',
        'menu_alt'  => 'Projekte',
        'menu_img'  => 'project.png',
        'right_id'  => 500,
        'secure'    => 'Projects',
        'childs'    => array(
            array(
                'name'      => 'Neues Projekt',
                'menu_link' => '?module=project&amp;event=newProject',
                'menu_alt'  => 'Neues Projekt anlegen',
                'menu_img'  => 'project_add.png',
                'right_id'  => 501,
                'secure'    => 'Projects'
            ),
            array(
                'name'      => 'Projektliste',
                'menu_link' => '?module=project',
                'menu_alt'  => 'Bestehende Projekte auflisten',
                'menu_img'  => 'project.png',
                'right_id'  => 500,
                'secure'    => 'Projects'
            ),
            array(
                'name'      => 'Projekttypen',
                'menu_link' => '?module=project&amp;class=projecttype',
                'menu_alt'  => 'Projekttypen verwalten',
                'menu_img'  => 'type.png',
                'right_id'  => 503,
                'secure'    => 'Projects'
            )
        )
    );

    $menuArray['mehr'] = array(
        'name'     => 'Mehr...',
        'right_id' => 0,
        'childs'   => array(
            array(
                'name'      => 'Services',
                'menu_link' => '?module=services&amp;class=sla',
                'menu_alt'  => 'Services',
                'menu_img'  => 'project.png',
                'secure'    => 'ITILServices',
                'right_id'  => 821,
                'childs'    => array(
                    array(
                        'name'      => 'Service Contracts (SLAs)',
                        'menu_link' => '?module=services&amp;class=sla',
                        'menu_alt'  => 'SLAs',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Service',
                        'menu_link' => '?module=services&amp;class=service&amp;event=create',
                        'menu_alt'  => 'Neuer Service',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicekatalog',
                        'menu_link' => '?module=services&amp;class=service',
                        'menu_alt'  => 'Servicekatalog',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Servicetyp',
                        'menu_link' => '?module=services&amp;class=servicetype&amp;event=create',
                        'menu_alt'  => 'Neuer Servicetyp',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicetypen Liste',
                        'menu_link' => '?module=services&amp;class=servicetype',
                        'menu_alt'  => 'Servicetypen Liste',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Servicelevel',
                        'menu_link' => '?module=services&amp;class=servicelvl&amp;event=create',
                        'menu_alt'  => 'Neuen Servicelevel anlegen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicelevel Liste',
                        'menu_link' => '?module=services&amp;class=servicelvl',
                        'menu_alt'  => 'Servicelevel Liste',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    )
                )
            ),
            array(
                'name'      => 'ChangeRequests',
                'menu_link' => '?module=changerequest',
                'menu_alt'  => 'ChangeRequests',
                'menu_img'  => 'tickettemplate_add.gif',
                'right_id'  => 304,
                'secure'    => 'ChangeRequest',
                'childs'    => array(
                    array(
                        'name'      => 'Neuer ChangeRequest',
                        'menu_link' => '?module=changerequest&amp;event=create',
                        'menu_alt'  => 'Neuen Request erstellen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 304,
                        'secure'    => 'ChangeRequest'
                    ),
                    array(
                        'name'      => 'ChangeRequest Liste',
                        'menu_link' => '?module=changerequest',
                        'menu_alt'  => 'Auflistung aller Requests',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 304,
                        'secure'    => 'ChangeRequest'
                    ),
                )
            )
        )
    );
} else {
    $menuArray['mehr'] = array(
        'name'     => 'Mehr...',
        'right_id' => 0,
        'childs'   => array(
            array(
                'name'      => 'Services',
                'menu_link' => '?module=services&amp;class=sla',
                'menu_alt'  => 'Services',
                'menu_img'  => 'project.png',
                'secure'    => 'ITILServices',
                'right_id'  => 821,
                'childs'    => array(
                    array(
                        'name'      => 'Service Contracts (SLAs)',
                        'menu_link' => '?module=services&amp;class=sla',
                        'menu_alt'  => 'SLAs',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Service',
                        'menu_link' => '?module=services&amp;class=service&amp;event=create',
                        'menu_alt'  => 'Neuer Service',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicekatalog',
                        'menu_link' => '?module=services&amp;class=service',
                        'menu_alt'  => 'Servicekatalog',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Servicetyp',
                        'menu_link' => '?module=services&amp;class=servicetype&amp;event=create',
                        'menu_alt'  => 'Neuer Servicetyp',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicetypen Liste',
                        'menu_link' => '?module=services&amp;class=servicetype',
                        'menu_alt'  => 'Servicetypen Liste',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Neuer Servicelevel',
                        'menu_link' => '?module=services&amp;class=servicelvl&amp;event=create',
                        'menu_alt'  => 'Neuen Servicelevel anlegen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    ),
                    array(
                        'name'      => 'Servicelevel Liste',
                        'menu_link' => '?module=services&amp;class=servicelvl',
                        'menu_alt'  => 'Servicelevel Liste',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 821,
                        'secure'    => 'ITILServices'
                    )
                )
            ),
            array(
                'name'      => 'ChangeRequests',
                'menu_link' => '?module=changerequest',
                'menu_alt'  => 'ChangeRequests',
                'menu_img'  => 'tickettemplate_add.gif',
                'right_id'  => 304,
                'secure'    => 'ChangeRequest',
                'childs'    => array(
                    array(
                        'name'      => 'Neuer ChangeRequest',
                        'menu_link' => '?module=changerequest&amp;event=create',
                        'menu_alt'  => 'Neuen Request erstellen',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 304,
                        'secure'    => 'ChangeRequest'
                    ),
                    array(
                        'name'      => 'ChangeRequest Liste',
                        'menu_link' => '?module=changerequest',
                        'menu_alt'  => 'Auflistung aller Requests',
                        'menu_img'  => 'tickettemplate_add.gif',
                        'right_id'  => 304,
                        'secure'    => 'ChangeRequest'
                    ),
                )
            ),
            array(
                'name'      => 'Projekte',
                'menu_link' => '?module=project',
                'menu_alt'  => 'Projekte',
                'menu_img'  => 'project.png',
                'right_id'  => 500,
                'secure'    => 'Projects',
                'childs'    => array(
                    array(
                        'name'      => 'Neues Projekt',
                        'menu_link' => '?module=project&amp;event=newProject',
                        'menu_alt'  => 'Neues Projekt anlegen',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 501,
                        'secure'    => 'Projects'
                    ),
                    array(
                        'name'      => 'Projektliste',
                        'menu_link' => '?module=project',
                        'menu_alt'  => 'Bestehende Projekte auflisten',
                        'menu_img'  => 'project.png',
                        'right_id'  => 500,
                        'secure'    => 'Projects'
                    ),
                    array(
                        'name'      => 'Projekttypen',
                        'menu_link' => '?module=project&amp;class=projecttype',
                        'menu_alt'  => 'Projekttypen verwalten',
                        'menu_img'  => 'type.png',
                        'right_id'  => 503,
                        'secure'    => 'Projects'
                    )
                )
            ),
            array(
                'name'      => 'SCRUM',
                'menu_link' => '?module=backlog',
                'menu_alt'  => 'SCRUM',
                'menu_img'  => 'project.png',
                'right_id'  => 900,
                'secure'    => 'Backlog',
                'childs'    => array(
                    array(
                        'name'      => 'Neues Backlog',
                        'menu_link' => '?module=backlog&amp;event=create',
                        'menu_alt'  => 'Neues Backlog',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 900,
                        'secure'    => 'Backlog',
                    ),
                    array(
                        'name'      => 'Backlogliste',
                        'menu_link' => '?module=backlog',
                        'menu_alt'  => 'Backlogliste',
                        'menu_img'  => 'project.png',
                        'right_id'  => 900,
                        'secure'    => 'Backlog',
                    )
                )
            ),
            array(
                'name'      => 'Web-Formulare',
                'menu_link' => '?module=webformular',
                'menu_alt'  => 'Web-Formulare',
                'menu_img'  => 'project.png',
                'right_id'  => 36,
                'secure'    => 'Webform',
            ),
            array(
                'name'      => 'Fehlerbilder',
                'menu_link' => '?module=errorpatterns&event=report',
                'menu_alt'  => 'Fehlerbilder',
                'menu_img'  => 'project.png',
                'right_id'  => 1100,
                'childs'    => array(
                    array(
                        'name'      => 'Report',
                        'menu_link' => '?module=errorpatterns&event=report',
                        'menu_alt'  => 'Fehlerbilder und Kriterien auswerten',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 1100,
                    ),
                    array(
                        'name'      => 'Verwalten',
                        'menu_link' => '?module=errorpatterns&event=ManagePatterns',
                        'menu_alt'  => 'Fehlerbilder Verwalten',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 1100,
                    ),
                    array(
                        'name'      => 'Fehlerbild-Objekte verwalten',
                        'menu_link' => '?module=errorpatterns&event=Patterns',
                        'menu_alt'  => 'Fehlerbild-Objekte verwalten',
                        'menu_img'  => 'project.png',
                        'right_id'  => 1100,
                    )
                )
            ),
            array(
                'name'      => 'Klassifikation',
                'menu_link' => '?module=errorpatterns&event=classifications',
                'menu_alt'  => 'Klassifikation',
                'menu_img'  => 'project.png',
                'right_id'  => 1100,
                'childs'    => array(
                    array(
                        'name'      => 'Liste',
                        'menu_link' => '?module=errorpatterns&event=classifications',
                        'menu_alt'  => 'Klassifikation',
                        'menu_img'  => 'project_add.png',
                        'right_id'  => 1100,
                    ),
                    array(
                        'name'      => 'Klassifkation zufügen',
                        'menu_link' => '?module=errorpatterns&event=addclassifications',
                        'menu_alt'  => 'Klassifkation zufügen',
                        'menu_img'  => 'project.png',
                        'right_id'  => 1100,
                    )
                )
            )
        )
    );
}

if (defined('HMCOMPANY') && (HMCOMPANY == 'BADEN-WüRTTEMBERGISCHER GENOSSENSCHAFTSVERBAND E.V')) {
    unset($menuArray['reporting']['childs']['ticketweitergabe']);
    unset($menuArray['reporting']['childs']['supporter-berichte']);
}


if (!defined('PA_SERVICENAME') || ( defined('HMCOMPANY') && (HMCOMPANY != 'SENNEBOGEN MASCHINENFABRIK GMBH'))) {
    unset($menuArray['verwaltung']['childs']['garantieabwicklung']);
    unset($menuArray['neu']['childs']['garantieabwicklung']);
}
