|
1 | | -<?php if ( !defined( 'HABARI_PATH' ) ) { die('No direct access'); } ?> |
| 1 | +<?php if ( !defined( 'HABARI_PATH' ) ) { die( 'No direct access' ); } |
| 2 | +header( 'X-Frame-Options: DENY' ); |
| 3 | +?> |
2 | 4 | <!doctype html> |
3 | 5 | <html> |
4 | 6 | <head> |
|
7 | 9 | <script type="text/javascript"> |
8 | 10 | var habari = { |
9 | 11 | url: { |
10 | | - habari: '<?php Site::out_url('habari'); ?>', |
11 | | - ajaxDashboard: '<?php echo URL::get('admin_ajax', array('context' => 'dashboard')); ?>', |
12 | | - ajaxUpdatePosts: '<?php echo URL::get('admin_ajax', array('context' => 'update_posts')); ?>', |
13 | | - ajaxLogDelete: '<?php echo URL::get('admin_ajax', array('context' => 'delete_logs')); ?>', |
14 | | - ajaxUpdateUsers: '<?php echo URL::get('admin_ajax', array('context' => 'update_users')); ?>', |
15 | | - ajaxUpdateGroups: '<?php echo URL::get('admin_ajax', array('context' => 'update_groups')); ?>', |
16 | | - ajaxUpdateComment: '<?php echo URL::get('admin_ajax', array('context' => 'update_comment')); ?>', |
17 | | - ajaxAddBlock: '<?php echo URL::get('admin_ajax', array('context' => 'add_block')); ?>', |
18 | | - ajaxDeleteBlock: '<?php echo URL::get('admin_ajax', array('context' => 'delete_block')); ?>', |
19 | | - ajaxSaveAreas: '<?php echo URL::get('admin_ajax', array('context' => 'save_areas')); ?>' |
| 12 | + habari: '<?php Site::out_url( 'habari' ); ?>', |
| 13 | + ajaxDashboard: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'dashboard' ) ); ?>', |
| 14 | + ajaxUpdatePosts: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_posts' ) ); ?>', |
| 15 | + ajaxLogDelete: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'delete_logs' ) ); ?>', |
| 16 | + ajaxUpdateUsers: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_users' ) ); ?>', |
| 17 | + ajaxUpdateGroups: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_groups' ) ); ?>', |
| 18 | + ajaxUpdateComment: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'update_comment' ) ); ?>', |
| 19 | + ajaxAddBlock: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'add_block' ) ); ?>', |
| 20 | + ajaxDeleteBlock: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'delete_block' ) ); ?>', |
| 21 | + ajaxSaveAreas: '<?php echo URL::get( 'admin_ajax', array( 'context' => 'save_areas' ) ); ?>' |
20 | 22 | } |
21 | 23 | }; |
| 24 | + // An almost "catch all" for those old browsers that don't support the X-Frame-Options header. We don't bust out, we just don't show any content |
| 25 | + if ( top != self ) { |
| 26 | + self.location.replace( 'about:blank' ); |
| 27 | + } |
22 | 28 | </script> |
23 | 29 | <?php |
24 | 30 | Plugins::act( 'admin_header', $this ); |
25 | | - Stack::out( 'admin_header_javascript', array('Stack', 'scripts') ); |
26 | | - Stack::out( 'admin_stylesheet', array('Stack', 'styles') ); |
| 31 | + Stack::out( 'admin_header_javascript', array( 'Stack', 'scripts' ) ); |
| 32 | + Stack::out( 'admin_stylesheet', array( 'Stack', 'styles' ) ); |
27 | 33 | ?> |
28 | 34 | <!--[if IE 7]> |
29 | | - <link rel="stylesheet" type="text/css" href="<?php Site::out_url('admin_theme'); ?>/css/ie.css" media="screen"> |
| 35 | + <link rel="stylesheet" type="text/css" href="<?php Site::out_url( 'admin_theme' ); ?>/css/ie.css" media="screen"> |
30 | 36 | <![endif]--> |
31 | 37 |
|
32 | 38 | <?php |
|
43 | 49 |
|
44 | 50 | <div id="menulist" class="dropbuttonlist"> |
45 | 51 | <ul> |
46 | | - <?php foreach($mainmenu as $menu_id => $menu): ?> |
47 | | - <li id="link-<?php echo $menu_id ?>" class="<?php if ($menu['selected'] == true) { echo 'selected'; } ?><?php if (isset($menu['submenu'])): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?> |
48 | | - <?php if ( isset($menu['hotkey']) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?> |
| 52 | + <?php foreach ( $mainmenu as $menu_id => $menu ): ?> |
| 53 | + <li id="link-<?php echo $menu_id ?>" class="<?php if ( $menu['selected'] == true ) { echo 'selected'; } ?><?php if ( isset( $menu['submenu'] ) ): ?> submenu<?php endif; ?>" title="<?php echo $menu['title']; ?>"><a class="top" href="<?php echo $menu['url']; ?>"><?php echo $menu['text']; ?> |
| 54 | + <?php if ( isset( $menu['hotkey'] ) && $menu['hotkey'] != '' ): ?><span class="hotkey"><?php echo $menu['hotkey']; ?></span><?php endif; ?> |
49 | 55 | </a> |
50 | | - <?php if ( isset($menu['submenu']) ): ?> |
| 56 | + <?php if ( isset( $menu['submenu'] ) ): ?> |
51 | 57 | <ul class="submenu"> |
52 | | - <?php foreach($menu['submenu'] as $submenu_id => $submenu_item): ?> |
53 | | - <li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if (isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != ''): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?> |
54 | | - <?php if ( isset($submenu_item['hotkey']) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?> |
| 58 | + <?php foreach ( $menu['submenu'] as $submenu_id => $submenu_item ): ?> |
| 59 | + <li id="link-<?php echo $submenu_id ?>" title="<?php echo $submenu_item['title']; ?>" class="sub<?php if ( isset($submenu_item['hotkey'] ) && $submenu_item['hotkey'] != '' ): ?> hotkey-<?php echo $submenu_item['hotkey']; ?><?php endif; ?>"><a href="<?php echo $submenu_item['url']; ?>"><?php echo $submenu_item['text']; ?> |
| 60 | + <?php if ( isset( $submenu_item['hotkey'] ) && $submenu_item['hotkey'] != '' ): ?><span class="hotkey"><?php echo $submenu_item['hotkey']; ?></span><?php endif; ?> |
55 | 61 | </a></li> |
56 | 62 | <?php endforeach; ?> |
57 | 63 | </ul> |
|
62 | 68 | </div> |
63 | 69 | </div> |
64 | 70 |
|
65 | | - <a href="<?php Site::out_url('habari'); ?>" id="site" title="<?php _e('Go to Site'); ?>"><?php Options::out('title'); ?></a> |
| 71 | + <a href="<?php Site::out_url( 'habari' ); ?>" id="site" title="<?php _e( 'Go to Site' ); ?>"><?php Options::out( 'title' ); ?></a> |
66 | 72 |
|
67 | 73 | </div> |
68 | 74 |
|
69 | 75 | <div id="spinner"></div> |
70 | 76 |
|
71 | 77 | <div id="page"> |
72 | 78 |
|
73 | | -<?php Plugins::act('admin_info', $theme, $page); ?> |
| 79 | +<?php Plugins::act( 'admin_info', $theme, $page ); ?> |
0 commit comments