Пример #1
0
 /**
  * Main administration page
  *
  * @return void
  **/
 function admin_spider()
 {
     if (current_user_can('administrator')) {
         include_once dirname(__FILE__) . '/models/spider.php';
         $sub = $this->submenu();
         if ($sub == '') {
             $this->admin_index();
         } elseif ($sub == 'log') {
             $this->admin_log();
         } elseif ($sub == 'options') {
             $this->admin_options();
         } elseif ($sub == 'modules') {
             $this->render_admin('modules', array('types' => Search_Module_Factory::available(), 'options' => $this->get_options()));
         } elseif ($sub == 'filters') {
             $this->admin_filters();
         } elseif ($sub == 'support') {
             $this->render_admin('support');
         }
     } else {
         $this->render_message(__('You are not allowed access to this resource', 'search-unleashed'));
     }
 }