start(); $user->setup(false, $style); // Set the locale $cur_locale = $eqdkp->config['default_locale']; setlocale(LC_ALL, $cur_locale); // Start plugin management $pm = new EQdkp_Plugin_Manager(true, DEBUG); // Populate the admin menu if we're in an admin page, they have admin permissions, and $gen_simple_header is false if ( (defined('IN_ADMIN')) && (IN_ADMIN === true) ) { if ( $user->check_auth('a_', false) ) { if ( !$gen_simple_header ) { include($eqdkp_root_path . 'admin/index.php'); } } } /** * Applies addslashes() to the provided data * * @param $data Array of data or a single string * @return mixed Array or string of data */ function slash_global_data($data) { if ( is_array($data) ) { foreach ( $data as $k => $v ) { $data[$k] = ( is_array($v) ) ? slash_global_data($v) : addslashes($v); } } return $data; } ?>