diff options
| author | Christopher Burger <burgerc@freeside.biz> | 2018-10-02 12:49:33 -0400 |
|---|---|---|
| committer | Christopher Burger <burgerc@freeside.biz> | 2018-10-03 07:40:08 -0400 |
| commit | bb930ebb29f1a000ef096de937dc69cd9d83615b (patch) | |
| tree | 7a3a3bb28081ee568dd93b59e26633f4ceb19ec4 /min_selfservice/elements/menu.php | |
| parent | b9bbcb931c701704f1ab3075c6728c287501afad (diff) | |
Revert "RT# 39340 - Created minimal selfservice that only allows payments to be made, authorization is based on ip and mac address. This is not done yet need to write routine to get mac address from radius server based on ip address."
This reverts commit 7668262421ea253ffaf95e0233e037f2857f7071.
Diffstat (limited to 'min_selfservice/elements/menu.php')
| -rw-r--r-- | min_selfservice/elements/menu.php | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/min_selfservice/elements/menu.php b/min_selfservice/elements/menu.php deleted file mode 100644 index 5f600d5c0..000000000 --- a/min_selfservice/elements/menu.php +++ /dev/null @@ -1,100 +0,0 @@ -<? - -require_once('session.php'); - -$skin_info = $freeside->skin_info( array( - 'session_id' => $_COOKIE['session_id'], -) ); - -extract($skin_info); - -?> -<style type="text/css"> -#menu_ul ul li { - display: inline; - width: 100%; -} -</style> - -<ul id="menu_ul"> - -<? - - $menu_array = array( - 'payment.php Payments', - 'payment_cc.php Credit Card Payment', - 'payment_ach.php Electronic check payment', - 'payment_paypal.php PayPal payment', - 'payment_webpay.php Webpay payment', - ); - $submenu = array(); - - foreach ($menu_array AS $menu_item) { - if ( preg_match('/^\s*$/', $menu_item) ) { - print_menu($submenu, $current_menu, $menu_disable); - $submenu = array(); - } else { - $submenu[] = $menu_item; - } - } - print_menu($submenu, $current_menu, $menu_disable); - - function print_menu($submenu_array, $current_menu, $menu_disable) { - if ( count($submenu_array) == 0 ) { return; } - - $links = array(); - $labels = array(); - foreach ($submenu_array AS $submenu_item) { - $pieces = preg_split('/\s+/', $submenu_item, 2, PREG_SPLIT_NO_EMPTY); - $links[] = $pieces[0]; - $labels[] = $pieces[1]; - } - - print_link($links[0], $labels[0], $current_menu, $links); - - if ( count($links) > 1 ) { - if ( in_array( $current_menu, $links ) ) { - echo '<img src="images/dropdown_arrow_white.gif">'; - } else { - echo '<img src="images/dropdown_arrow_white.gif" style="display:none;">'; - echo '<img src="images/dropdown_arrow_grey.gif">'; - } - } - - array_shift($links); - array_shift($labels); - - echo '</a>'; - - if ( count($links) > 0 ) { - echo '<ul>'; - foreach ($links AS $link) { - $label = array_shift($labels); - if ( in_array($label, $menu_disable) == 0) { - print_link($link, $label, $current_menu, array($link) ); - echo '</a></li>'; - } - } - echo '</ul>'; - } - - echo '</li>'; - - } - - function print_link($link, $label, $current_menu, $search_array) { - echo '<li><a href="'. $link. '"'; - if ( in_array( $current_menu, $search_array ) ) { - echo ' class="current_menu"'; - } - echo '>'. _($label); - } - -?> - -</ul> - -<div style="clear:both;"></div> -<table cellpadding="0" cellspacing="0" border="0" style="min-width:666px"> -<tr> -<td class="page">
\ No newline at end of file |
