function check_stats($string) { global $globals, $current_user; if (preg_match('/^!top/', $string)) return do_top($string); if (preg_match('/^!statsu/', $string)) return do_statsu($string); if (preg_match('/^!stats2/', $string)) return do_stats2($string); if (preg_match('/^!stats3/', $string)) return do_stats3($string); if (preg_match('/^!stats1{0,1}/', $string)) return do_stats1($string); if (preg_match('/^!time/', $string)) return date(" d-m-Y H:i:s T"); if (preg_match('/^!help/', $string)) return _('comandos') . ': http://meneame.wikispaces.com/Comandos'; if (preg_match('/^!cabal/', $string)) return do_cabal($string); if (preg_match('/^!dariaunojo/', $string)) return do_ojo($string); if (preg_match('/^!wiki/', $string)) return 'wiki: http://meneame.wikispaces.com/'; if (preg_match('/^!promote/', $string)) return 'http://' . get_server_name().$globals['base_url']. 'promote.php'; if (preg_match('/^!hoygan/', $string)) return '¡HOYGAN! BISITEN http://' . get_server_name().$globals['base_url']. 'sneak.php?hoygan=1 GRASIAS DE HANTEMANO'; if (preg_match('/^!webstats/', $string)) return 'http://www.quantcast.com/'.get_server_name(); if (preg_match('/^!ignore/', $string)) return do_ignore($string); if (preg_match('/^!admins/', $string)) return do_admins($string); if (preg_match('/^!bloggers/', $string)) return do_bloggers($string); if (preg_match('/^!last/', $string)) return do_last($string); if (preg_match('/^!gs/', $string)) return do_fon_gs($string); // if (preg_match('/^!rae/', $string)) return do_rae($string); if (preg_match('/^!values/', $string)) return do_values(); if (preg_match('/^!load/', $string)) return do_load(); return false; }
wp_enqueue_style('wd'); // js wp_register_script('wd', $path . '/js/load.js', false); wp_enqueue_script('wd'); } function do_load() { /** * Base URL of lib * * @var string */ define('WD_BASE_URL', get_bloginfo('url') . '/wp-content/WD'); /** * requires */ // meta box functions require_once dirname(__FILE__) . '/functions/meta_box.php'; // taxonomy functions require_once dirname(__FILE__) . '/functions/taxonomy.php'; // pages functions require_once dirname(__FILE__) . '/functions/pages.php'; // wd form, is necessary include manually because the name do not follow the convention require_once dirname(__FILE__) . '/Form/WD_Form.php'; add_action('admin_init', 'wd_admin_init'); } if (function_exists('get_bloginfo')) { do_load(); } // Load only in a WordPress environment spl_autoload_register('wdAutoloader');