$view = new view; $view->name = 'stats_access_log'; $view->description = 'Stats access log view'; $view->tag = ''; $view->view_php = ''; $view->base_table = 'accesslog'; $view->is_cacheable = FALSE; $view->api_version = 2; $view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ $handler = $view->new_display('default', 'Defaults', 'default'); $handler->override_option('fields', array( 'timestamp' => array( 'label' => 'Time___________', 'alter' => array( 'alter_text' => 0, 'text' => '[timestamp]', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'date_format' => 'small', 'custom_date_format' => 'd&\\\\nb\\sp;M&\\\\nb\\sp;Y&\\\\nb\\sp;H:i:s', 'exclude' => 0, 'id' => 'timestamp', 'table' => 'accesslog', 'field' => 'timestamp', 'relationship' => 'none', ), 'title' => array( 'label' => 'Page viewed', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'admin/reports/stats-view/pagetitle/[title]', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '60', 'word_boundary' => 0, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'display_as_link' => 0, 'exclude' => 0, 'id' => 'title', 'table' => 'accesslog', 'field' => 'title', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'url_2' => array( 'label' => 'Referrer', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'display_as_link' => 0, 'exclude' => 1, 'id' => 'url_2', 'table' => 'accesslog', 'field' => 'url', 'relationship' => 'none', ), 'hostname' => array( 'label' => 'Visitor', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 1, 'path' => 'admin/reports/stats-view/hostname/[hostname]', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'strip_tags' => 0, 'html' => 0, ), 'exclude' => 0, 'id' => 'hostname', 'table' => 'accesslog', 'field' => 'hostname', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), 'url' => array( 'label' => 'From Page', 'alter' => array( 'alter_text' => 0, 'text' => '[url_2]', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 1, 'max_length' => '60', 'word_boundary' => 0, 'ellipsis' => 1, 'html' => 0, ), 'display_as_link' => 0, 'exclude' => 0, 'id' => 'url', 'table' => 'accesslog', 'field' => 'url', 'relationship' => 'none', ), 'url_1' => array( 'label' => '+', 'alter' => array( 'alter_text' => 1, 'text' => '+', 'make_link' => 1, 'path' => '[url_2]', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 0, 'ellipsis' => 1, 'html' => 0, ), 'display_as_link' => 1, 'exclude' => 0, 'id' => 'url_1', 'table' => 'accesslog', 'field' => 'url', 'relationship' => 'none', ), 'hostname_1' => array( 'label' => 'Hostname', 'alter' => array( 'alter_text' => 0, 'text' => '', 'make_link' => 0, 'path' => '', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'exclude' => 1, 'id' => 'hostname_1', 'table' => 'accesslog', 'field' => 'hostname', 'relationship' => 'none', ), 'nothing' => array( 'label' => 'Location', 'alter' => array( 'text' => '', 'make_link' => 1, 'path' => 'http://api.hostip.info/get_html.php?ip=[hostname_1]', 'alt' => '', 'prefix' => '', 'suffix' => '', 'help' => '', 'trim' => 0, 'max_length' => '', 'word_boundary' => 1, 'ellipsis' => 1, 'html' => 0, ), 'exclude' => 0, 'id' => 'nothing', 'table' => 'views', 'field' => 'nothing', 'relationship' => 'none', 'override' => array( 'button' => 'Override', ), ), )); $handler->override_option('access', array( 'type' => 'role', 'role' => array( '3' => 3, ), )); $handler->override_option('cache', array( 'type' => 'none', )); $handler->override_option('title', 'Advanced visitor data'); $handler->override_option('items_per_page', 40); $handler->override_option('use_pager', '1'); $handler->override_option('style_plugin', 'table'); $handler->override_option('style_options', array( 'grouping' => '', 'override' => 1, 'sticky' => 1, 'order' => 'desc', 'columns' => array( 'timestamp' => 'timestamp', 'title' => 'title', 'hostname' => 'hostname', 'url' => 'url', 'hostname_1' => 'hostname_1', 'nothing' => 'nothing', 'url_1' => 'url_1', ), 'info' => array( 'timestamp' => array( 'sortable' => 1, 'separator' => '', ), 'title' => array( 'sortable' => 1, 'separator' => '', ), 'hostname' => array( 'sortable' => 1, 'separator' => '', ), 'url' => array( 'sortable' => 1, 'separator' => '', ), 'hostname_1' => array( 'sortable' => 1, 'separator' => '', ), 'nothing' => array( 'separator' => '', ), 'url_1' => array( 'sortable' => 0, 'separator' => '', ), ), 'default' => 'timestamp', )); $handler = $view->new_display('page', 'Page', 'page_1'); $handler->override_option('path', 'admin/reports/stats-view/main'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'Page-Hostname', 'page_2'); $handler->override_option('arguments', array( 'hostname' => array( 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'All hits from %1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'id' => 'hostname', 'table' => 'accesslog', 'field' => 'hostname', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'poll' => 0, 'page' => 0, 'pagenotitle' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '4' => 0, '3' => 0, ), 'validate_argument_type' => 'tid', 'user_argument_type' => '', 'restrict_user_roles' => 0, 'user_roles' => array(), 'validate_argument_php' => '', ), )); $handler->override_option('path', 'admin/reports/stats-view/hostname/%'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, )); $handler = $view->new_display('page', 'Page-PageTitle', 'page_3'); $handler->override_option('arguments', array( 'title' => array( 'default_action' => 'not found', 'style_plugin' => 'default_summary', 'style_options' => array(), 'wildcard' => 'all', 'wildcard_substitution' => 'All', 'title' => 'All visits to page: %1', 'default_argument_type' => 'fixed', 'default_argument' => '', 'validate_type' => 'none', 'validate_fail' => 'not found', 'glossary' => 0, 'limit' => '0', 'case' => 'none', 'path_case' => 'none', 'transform_dash' => 0, 'id' => 'title', 'table' => 'accesslog', 'field' => 'title', 'override' => array( 'button' => 'Use default', ), 'relationship' => 'none', 'default_options_div_prefix' => '', 'default_argument_user' => 0, 'default_argument_fixed' => '', 'default_argument_php' => '', 'validate_argument_node_type' => array( 'blog' => 0, 'poll' => 0, 'page' => 0, 'pagenotitle' => 0, 'story' => 0, ), 'validate_argument_node_access' => 0, 'validate_argument_nid_type' => 'nid', 'validate_argument_vocabulary' => array( '4' => 0, '3' => 0, ), 'validate_argument_type' => 'tid', 'user_argument_type' => '', 'restrict_user_roles' => 0, 'user_roles' => array(), 'validate_argument_php' => '', ), )); $handler->override_option('path', 'admin/reports/stats-view/pagetitle/%'); $handler->override_option('menu', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, 'name' => 'navigation', )); $handler->override_option('tab_options', array( 'type' => 'none', 'title' => '', 'description' => '', 'weight' => 0, ));