return TRUE; } ?> <!-- Begin Main Menu --> <div class="phpmaker"> <?php // Generate all menu items $RootMenu = new cMenu("RootMenu"); $RootMenu->IsRoot = TRUE; $RootMenu->AddMenuItem(25, $Language->MenuPhrase("25", "MenuText"), "", -1, "", IsLoggedIn()); $RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "tbl_backlink_statlist.php", 25, "", AllowListMenu('tbl_backlink_stat')); $RootMenu->AddMenuItem(3, $Language->MenuPhrase("3", "MenuText"), "tbl_ga_statlist.php", 25, "", AllowListMenu('tbl_ga_stat')); $RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "tbl_index_statlist.php", 25, "", AllowListMenu('tbl_index_stat')); $RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "tbl_rank_statlist.php", 25, "", AllowListMenu('tbl_rank_stat')); $RootMenu->AddMenuItem(27, $Language->MenuPhrase("27", "MenuText"), "", 25, "", IsLoggedIn()); $RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "tbl_facebook_statlist.php", 27, "", AllowListMenu('tbl_facebook_stat')); $RootMenu->AddMenuItem(10, $Language->MenuPhrase("10", "MenuText"), "tbl_twitter_statlist.php", 27, "", AllowListMenu('tbl_twitter_stat')); $RootMenu->AddMenuItem(26, $Language->MenuPhrase("26", "MenuText"), "", -1, "", IsLoggedIn()); $RootMenu->AddMenuItem(4, $Language->MenuPhrase("4", "MenuText"), "tbl_grouplist.php", 26, "", AllowListMenu('tbl_group')); $RootMenu->AddMenuItem(5, $Language->MenuPhrase("5", "MenuText"), "tbl_group_profilelist.php", 26, "", AllowListMenu('tbl_group_profile')); $RootMenu->AddMenuItem(7, $Language->MenuPhrase("7", "MenuText"), "tbl_profilelist.php", 26, "", AllowListMenu('tbl_profile')); $RootMenu->AddMenuItem(9, $Language->MenuPhrase("9", "MenuText"), "tbl_targetlist.php", 26, "", AllowListMenu('tbl_target')); $RootMenu->AddMenuItem(28, $Language->MenuPhrase("28", "MenuText"), "tbl_userlist.php", 26, "", AllowListMenu('tbl_user')); $RootMenu->AddMenuItem(-2, $Language->Phrase("ChangePwd"), "changepwd.php", -1, "", IsLoggedIn() && !IsSysAdmin()); $RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn()); $RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) != "login.php"); $RootMenu->Render(); ?> </div> <!-- End Main Menu -->
$RootMenu->AddMenuItem(12, "mmi_passanger", $Language->MenuPhrase("12", "MenuText"), "passangerlist.php", 7, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}passanger'), FALSE); $RootMenu->AddMenuItem(28, "mmci_Configuration", $Language->MenuPhrase("28", "MenuText"), "", 91, "", IsLoggedIn(), FALSE, TRUE); $RootMenu->AddMenuItem(1, "mmi_air_port", $Language->MenuPhrase("1", "MenuText"), "air_portlist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}air_port'), FALSE); $RootMenu->AddMenuItem(5, "mmi_bank", $Language->MenuPhrase("5", "MenuText"), "banklist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}bank'), FALSE); $RootMenu->AddMenuItem(6, "mmi_bank_account", $Language->MenuPhrase("6", "MenuText"), "bank_accountlist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}bank_account'), FALSE); $RootMenu->AddMenuItem(16, "mmi_reservation_status", $Language->MenuPhrase("16", "MenuText"), "reservation_statuslist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}reservation_status'), FALSE); $RootMenu->AddMenuItem(20, "mmi_upload_file_detail_status", $Language->MenuPhrase("20", "MenuText"), "upload_file_detail_statuslist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}upload_file_detail_status'), FALSE); $RootMenu->AddMenuItem(2, "mmi_airplane", $Language->MenuPhrase("2", "MenuText"), "airplanelist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}airplane'), FALSE); $RootMenu->AddMenuItem(21, "mmi_upload_file_status", $Language->MenuPhrase("21", "MenuText"), "upload_file_statuslist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}upload_file_status'), FALSE); $RootMenu->AddMenuItem(13, "mmi_passanger_type", $Language->MenuPhrase("13", "MenuText"), "passanger_typelist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}passanger_type'), FALSE); $RootMenu->AddMenuItem(9, "mmi_card_type", $Language->MenuPhrase("9", "MenuText"), "card_typelist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}card_type'), FALSE); $RootMenu->AddMenuItem(14, "mmi_pay_type", $Language->MenuPhrase("14", "MenuText"), "pay_typelist.php", 28, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}pay_type'), FALSE); $RootMenu->AddMenuItem(29, "mmci_Conciliation", $Language->MenuPhrase("29", "MenuText"), "", 91, "", IsLoggedIn(), FALSE, TRUE); $RootMenu->AddMenuItem(10, "mmi_conciliation", $Language->MenuPhrase("10", "MenuText"), "conciliationlist.php", 29, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}conciliation'), FALSE); $RootMenu->AddMenuItem(17, "mmi_transference", $Language->MenuPhrase("17", "MenuText"), "transferencelist.php", 29, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}transference'), FALSE); $RootMenu->AddMenuItem(18, "mmi_upload_file", $Language->MenuPhrase("18", "MenuText"), "upload_filelist.php", 29, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}upload_file'), FALSE); $RootMenu->AddMenuItem(19, "mmi_upload_file_detail", $Language->MenuPhrase("19", "MenuText"), "upload_file_detaillist.php", 18, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}upload_file_detail'), FALSE); $RootMenu->AddMenuItem(44, "mmci_Users_Profiles", $Language->MenuPhrase("44", "MenuText"), "", 91, "", IsLoggedIn(), FALSE, TRUE); $RootMenu->AddMenuItem(24, "mmi_user_levels", $Language->MenuPhrase("24", "MenuText"), "user_levelslist.php", 44, "", (@$_SESSION[EW_SESSION_USER_LEVEL] & EW_ALLOW_ADMIN) == EW_ALLOW_ADMIN, FALSE); $RootMenu->AddMenuItem(23, "mmi_user_level_permissions", $Language->MenuPhrase("23", "MenuText"), "user_level_permissionslist.php", 24, "", (@$_SESSION[EW_SESSION_USER_LEVEL] & EW_ALLOW_ADMIN) == EW_ALLOW_ADMIN, FALSE); $RootMenu->AddMenuItem(45, "mmci_My_User", $Language->MenuPhrase("45", "MenuText"), "", -1, "", TRUE, FALSE, TRUE); $RootMenu->AddMenuItem(8, "mmi_card", $Language->MenuPhrase("8", "MenuText"), "cardlist.php", 45, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}card'), FALSE); $RootMenu->AddMenuItem(22, "mmi_user", $Language->MenuPhrase("22", "MenuText"), "userlist.php", 45, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}user'), FALSE); $RootMenu->AddMenuItem(15, "mmi_reservation", $Language->MenuPhrase("15", "MenuText"), "reservationlist.php", 45, "", AllowListMenu('{B2F6402D-7C0A-4760-82AD-045088CEBA18}reservation'), FALSE); $RootMenu->AddMenuItem(-2, "mmi_changepwd", $Language->Phrase("ChangePwd"), "changepwd.php", -1, "", IsLoggedIn() && !IsSysAdmin()); $RootMenu->AddMenuItem(-1, "mmi_logout", $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn()); $RootMenu->AddMenuItem(-1, "mmi_login", $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) != "login.php"); $RootMenu->Render(); ?> <!-- End Main Menu -->