{ $url = preg_replace('/(&|&|&)?_wpnonce=([^&]+)/', '', $url); return str_replace(array('.php', '.', '/', '?', '='), array('', '_', '_', '_', '_'), $url); } function wp_ozh_adminmenu_color($col) { return '#' . str_replace('#', '', urldecode($col)); // Make sure there's always a # prefixing color code } function wp_ozh_adminmenu_true_if_set($param) { return isset($_GET[$param]) && $_GET[$param] == 1 ? true : false; } // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from somewhere else $plugin = isset($_GET['p']) ? make_link_relative($_GET['p']) : ''; $admin = isset($_GET['a']) ? make_link_relative($_GET['a']) : ''; $icons = wp_ozh_adminmenu_true_if_set('i'); $wpicons = wp_ozh_adminmenu_true_if_set('w'); $compact = wp_ozh_adminmenu_true_if_set('c'); $minimode = wp_ozh_adminmenu_true_if_set('m'); $hidebubble = wp_ozh_adminmenu_true_if_set('h'); $display_fav = wp_ozh_adminmenu_true_if_set('f'); $nograd = wp_ozh_adminmenu_true_if_set('n'); $dir = isset($_GET['d']) && $_GET['d'] == 'right' ? 'right' : 'left'; // text direction $opdir = isset($_GET['r']) && $_GET['r'] == 'right' ? 'left' : 'right'; // OPposite DIRection $grad = isset($_GET['g']) ? wp_ozh_adminmenu_color($_GET['g']) : '#676768'; header('Content-type:text/css'); ?>
function make_link_relative( $link ) { return preg_replace('|https?://[^/]+(/.*)|i', '$1', $link ); } function wp_ozh_adminmenu_sanitize_id($url) { $url = preg_replace('/(&|&|&)?_wpnonce=([^&]+)/', '', $url); return str_replace(array('.php','.','/','?','='),array('','_','_','_','_'),$url); } function wp_ozh_adminmenu_color($col) { return '#'.str_replace('#', '', urldecode($col)); // Make sure there's always a # prefixing color code } // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from somewhere else $plugin = make_link_relative( $_GET['p'] ); $admin = make_link_relative( $_GET['a'] ); $icons = ($_GET['i'] == 1) ? true : false ; $wpicons = ($_GET['w'] == 1) ? true : false ; $compact = ($_GET['c'] == 1) ? true : false ; $minimode = ($_GET['m'] == 1) ? true : false ; $hidebubble = ($_GET['h'] == 1) ? true : false ; $display_fav = ($_GET['f'] == 1) ? true : false ; $nograd = ($_GET['n'] == 1) ? true : false ; $dir = ($_GET['d'] == 'right') ? 'right' : 'left' ; // text direction $opdir = ($_GET['d'] == 'right') ? 'left' : 'right' ; // OPposite DIRection $grad = ($_GET['g']) ? wp_ozh_adminmenu_color($_GET['g']) : '#676768' ; header('Content-type:text/css'); ?>
function make_link_relative($link) { return preg_replace('|https?://[^/]+(/.*)|i', '$1', $link); } function wp_ozh_adminmenu_sanitize_id($url) { $url = preg_replace('/(&|&|&)?_wpnonce=([^&]+)/', '', $url); return str_replace(array('.php', '.', '/', '?', '='), array('', '_', '_', '_', '_'), $url); } function wp_ozh_adminmenu_color($col) { return '#' . str_replace('#', '', urldecode($col)); // Make sure there's always a # prefixing color code } // Get vars & needed links, make them relative to be sure no one will be leeching icons or anything from somewhere else $plugin = make_link_relative($_GET['p']); $icons = $_GET['i'] == 1 ? true : false; $wpicons = $_GET['w'] == 1 ? true : false; $compact = $_GET['c'] == 1 ? true : false; $minimode = $_GET['m'] == 1 ? true : false; $hidebubble = $_GET['h'] == 1 ? true : false; $display_fav = $_GET['f'] == 1 ? true : false; $nograd = $_GET['n'] == 1 ? true : false; $dir = $_GET['d'] == 'right' ? 'right' : 'left'; // text direction $opdir = $_GET['d'] == 'right' ? 'left' : 'right'; // OPposite DIRection $grad = $_GET['g'] ? wp_ozh_adminmenu_color($_GET['g']) : '#676768'; // $mu = ($_GET['mu'] == 1) ? true : false; $mu = false; header('Content-type:text/css');