_hk){ return AU_SEO_URL . $this->_ic; } return $_hk; } function _ejs() { global $pagenow; if($pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->_ap)){ wp_enqueue_script('postbox'); wp_enqueue_script('dashboard'); wp_enqueue_script('thickbox'); wp_enqueue_script('media-upload'); } } function _ecs(){ global $pagenow; if($pagenow == 'admin.php' && isset($_GET['page']) && in_array($_GET['page'], $this->_ap)){ wp_enqueue_style('dashboard'); wp_enqueue_style('thickbox'); wp_enqueue_style('global'); wp_enqueue_style('wp-admin'); wp_enqueue_style('tools', AU_SEO_URL . 'css/tools.css'); } } function _rp(){ add_menu_page($this->_pt, $this->_mt, $this->_lv, 'g', array(&$this,'_g_gsp'), AU_SEO_URL.'/css/images/au_16.png'); add_submenu_page('g','Title Tag Settings','Title Tag Settings',$this->_lv, 't', array(&$this,'_g_ttp')); add_submenu_page('g','Permalinks','Permalinks',$this->_lv, 'p', array(&$this,'_g_plp')); add_submenu_page('g','Indexing','Indexing',$this->_lv, 'i', array(&$this,'_g_inp')); add_submenu_page('g','Follow/Nofollow Rules','Follow/Nofollow Rules',$this->_lv, 'n', array(&$this,'_g_nfp')); add_submenu_page('g','Robot Settings','Robot Settings',$this->_lv, 'r', array(&$this,'_g_rsp')); add_submenu_page('g','301 Redirects','301 Redirects',$this->_lv, '3', array(&$this,'_g_301p')); add_submenu_page('g','Breadcrumbs','Breadcrumbs',$this->_lv, 'b', array(&$this,'_g_bcp')); add_submenu_page('g','Clean Head Tag','Clean Head Tag',$this->_lv, 'h', array(&$this,'_g_chp')); add_submenu_page('g','Webmaster Tools','Webmaster Tools',$this->_lv, 'w', array(&$this,'_g_wbp')); add_submenu_page('g','RSS Settings','RSS Settings',$this->_lv, 'f', array(&$this,'_g_fdp')); add_submenu_page('g','Code Inserter','Code Inserter',$this->_lv, 'c', array(&$this,'_g_cip')); add_submenu_page('g','File Editor','File Editor',$this->_lv, 'e', array(&$this,'_g_fep')); add_submenu_page('g','Backup/Restore','Backup/Restore',$this->_lv, 'k', array(&$this,'_g_bkp')); global $submenu; if(isset($submenu['g'])) $submenu['g'][0][0] = 'Dashboard'; } function _pu(){ return admin_url('admin.php?page=g'); } function _psl($_ls, $_f){ static $_sp; if(empty($_sp)) $_sp = $this->_fl; if($_f == $_sp){ $_l = 'Cofigurations'; array_unshift($_ls, $_l); } return $_ls; } function _cb($_i, $_l, $_lf = false, $_o = ''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } if(!isset($_os[$_i])) $_os[$_i] = false; $_ol = ''; $_oi = ' '; if($_lf) { $_h = $_ol . $_oi; }else{ $_h = $_oi . $_ol; } return $_h . '
'; } function _ti($_i, $_l, $_o = ''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } $_v = ''; if(isset($_os[$_i])) $_v = htmlspecialchars($_os[$_i]); return '' . '
'; } function _ta($_i, $_l, $_o=''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } $_v = ''; if(isset($_os[$_i])) $_v = htmlspecialchars($_os[$_i]); return ''.'
'; } function _fe($_i, $_l, $_f, $_o = ''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } global $is_apache; if($_f == '.htaccess'){ if($is_apache){ $_hac = get_home_path() . $_f; $_ex = file_exists($_hac); $_wr = is_writable($_hac); if($_ex && !$_wr){ return '

.htaccess file exists but is not writable. You can only edit the file once you have permissions set.

'; } $_c = file_get_contents($_hac); return ''.'
'; }else{ return '

You are not using apache web server and thus there is no .htaccess file to edit.

'; } }else if($_f == 'robots.txt'){ $_rb = get_home_path() . $_f; $_ex = file_exists($_rb); $_wr = is_writable($_rb); if(!$_ex){ return ''.'
'; } if($_ex && !$_wr){ return '

robots.txt file exists but is not writable. You can only edit the file once you have permissions set.

'; } $_c = file_get_contents($_rb); return ''.'
'; } } function _hi($_i, $_x = '', $_o = '') { if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } if(!empty($_x)) $_v = $_x; if(isset($_os[$_i])) $_v = htmlspecialchars($_os[$_i]); return ''; } function _st($_i, $_l, $_vs, $_o = ''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } $_h = ''; $_h .= ''; return $_h . '
'; } function _hn($_i, $_o = ''){ if($_o == ''){ $_os = _gso(); $_o = !empty($_o) ? $_o : $this->_cp; }else{ $_os = get_option($_o); } if(!isset($_os[$_i])) $_os[$_i] = ''; return ''; } function _ft($_rs){ $_h = ''; foreach ($_rs as $_r){ $_h .= ''; } $_h .= '
'; if(isset($_r['_i']) && $_r['_i'] != '') $_h .= ''; else $_h .= $_r['_l']; if(isset($_r['_d']) && $_r['_d'] != '') $_h .= '
'.$_r['_d'].''; $_h .= '
'; $_h .= $_r['_c']; $_h .= '
'; return $_h; } function _cpb($_i, $_t, $_h){ ?>

For any problems or suggestions please contact us at support@alquemie.net.

'; $this->_cpb($this->_hk.'suggestions', 'Plugin Support', $_h); } function _wpguid(){ $_h = ''; $this->_cpb($this->_hk.'insmanual', 'Alquemie SEO Instruction Manual', $_h); } function _wp2np(){ /* $this->_cpb('Plugins','B2 Foundry\'s Products',''); */ } function _lt($_t, $_c, $_f = '…'){ if(strlen($_t) > $_c) { $_t = substr($_t, 0, $_c); $_t = substr($_t, 0, -(strlen(strrchr( $_t,' ')))); $_t .= $_f; } return $_t; } } } ?>