3 require_once('session.php');
5 $skin_info = $freeside->skin_info( array(
6 'session_id' => $_COOKIE['session_id'],
10 if ( isset($skin_info['error']) && $skin_info['error'] ) {
11 $error = $skin_info['error'];
12 header('Location:index.php?error='. urlencode($error));
19 <style type="text/css">
30 $menu_array = explode("\n", $menu);
33 foreach ($menu_array AS $menu_item) {
34 if ( preg_match('/^\s*$/', $menu_item) ) {
35 print_menu($submenu, $current_menu, $menu_disable);
38 $submenu[] = $menu_item;
41 print_menu($submenu, $current_menu, $menu_disable);
43 function print_menu($submenu_array, $current_menu, $menu_disable) {
44 if ( count($submenu_array) == 0 ) { return; }
48 foreach ($submenu_array AS $submenu_item) {
49 $pieces = preg_split('/\s+/', $submenu_item, 2, PREG_SPLIT_NO_EMPTY);
50 $links[] = $pieces[0];
51 $labels[] = $pieces[1];
54 print_link($links[0], $labels[0], $current_menu, $links);
56 if ( count($links) > 1 ) {
57 if ( in_array( $current_menu, $links ) ) {
58 echo '<img src="images/dropdown_arrow_white.gif">';
60 echo '<img src="images/dropdown_arrow_white.gif" style="display:none;">';
61 echo '<img src="images/dropdown_arrow_grey.gif">';
70 if ( count($links) > 0 ) {
72 foreach ($links AS $link) {
73 $label = array_shift($labels);
74 if ( in_array($label, $menu_disable) == 0) {
75 print_link($link, $label, $current_menu, array($link) );
86 function print_link($link, $label, $current_menu, $search_array) {
87 echo '<li><a href="'. $link. '"';
88 if ( in_array( $current_menu, $search_array ) ) {
89 echo ' class="current_menu"';
98 <div style="clear:both;"></div>
99 <table cellpadding="0" cellspacing="0" border="0" style="min-width:666px">