| [ Index ] |
|
Code source de b2evolution 2.1.0-beta |
1 <?php 2 /** 3 * This file implements the UI view for the Direct accesses stats. 4 * 5 * This file is part of the evoCore framework - {@link http://evocore.net/} 6 * See also {@link http://sourceforge.net/projects/evocms/}. 7 * 8 * @copyright (c)2003-2007 by Francois PLANQUE - {@link http://fplanque.net/} 9 * 10 * {@internal License choice 11 * - If you have received this file as part of a package, please find the license.txt file in 12 * the same folder or the closest folder above for complete license terms. 13 * - If you have received this file individually (e-g: from http://evocms.cvs.sourceforge.net/) 14 * then you must choose one of the following licenses before using the file: 15 * - GNU General Public License 2 (GPL) - http://www.opensource.org/licenses/gpl-license.php 16 * - Mozilla Public License 1.1 (MPL) - http://www.opensource.org/licenses/mozilla1.1.php 17 * }} 18 * 19 * {@internal Open Source relicensing agreement: 20 * }} 21 * 22 * @package admin 23 * 24 * @version $Id: _stats_direct.view.php,v 1.1 2007/06/25 11:01:02 fplanque Exp $ 25 */ 26 if( !defined('EVO_MAIN_INIT') ) die( 'Please, do not access this page directly.' ); 27 28 /** 29 * View funcs 30 */ 31 require_once dirname(__FILE__).'/_stats_view.funcs.php'; 32 33 34 global $blog, $admin_url, $rsc_url; 35 36 ?> 37 <h2><?php echo T_('Direct browser hits') ?></h2> 38 <p><?php echo T_('These are browser hits from people who came to this blog system by direct access (either by typing the URL directly, or using a bookmark. Invalid (too short) referers are also listed here.)') ?></p> 39 <?php 40 // Create result set: 41 $Results = & new Results( " 42 SELECT hit_ID, hit_datetime, hit_blog_ID, hit_uri, hit_remote_addr, blog_shortname 43 FROM T_hitlog INNER JOIN T_useragents ON hit_agnt_ID = agnt_ID 44 LEFT JOIN T_blogs ON hit_blog_ID = blog_ID 45 WHERE hit_referer_type = 'direct' 46 AND agnt_type = 'browser'" 47 .( empty($blog) ? '' : "AND hit_blog_ID = $blog "), 'lstref_', 'D' ); 48 49 $Results->title = T_('Direct browser hits'); 50 51 // datetime: 52 $Results->cols[] = array( 53 'th' => T_('Date Time'), 54 'order' => 'hit_datetime', 55 'td_class' => 'timestamp', 56 'td' => '%mysql2localedatetime_spans( \'$hit_datetime$\' )%', 57 ); 58 59 // Referer: 60 if( $current_User->check_perm( 'stats', 'edit' ) ) 61 { 62 $Results->cols[] = array( 63 'th' => /* TRANS: Abbrev. for Delete (stats) */ T_('Del'), 64 'td' => ' <a href="%regenerate_url( \'action\', \'action=delete&hit_ID=$hit_ID$\')%" title="' 65 .T_('Delete this hit!').'">'.get_icon('delete').'</a>', 66 ); 67 } 68 69 // Target Blog: 70 if( empty($blog) ) 71 { 72 $Results->cols[] = array( 73 'th' => T_('Target Blog'), 74 'order' => 'hit_blog_ID', 75 'td' => '$blog_shortname$', 76 ); 77 } 78 79 // Requested URI (linked to blog's baseurlroot+URI): 80 $Results->cols[] = array( 81 'th' => T_('Requested URI'), 82 'order' => 'hit_uri', 83 'td' => '%stats_format_req_URI( #hit_blog_ID#, #hit_uri# )%', 84 ); 85 86 // Remote address (IP): 87 $Results->cols[] = array( 88 'th' => '<span title="'.T_('Remote address').'">'.T_('IP').'</span>', 89 'order' => 'hit_remote_addr', 90 'td' => '% $GLOBALS[\'Plugins\']->get_trigger_event( \'FilterIpAddress\', $tmp_params = array(\'format\'=>\'htmlbody\', \'data\'=>\'$hit_remote_addr$\') ) %', 91 ); 92 93 // Display results: 94 $Results->display(); 95 96 /* 97 * $Log: _stats_direct.view.php,v $ 98 * Revision 1.1 2007/06/25 11:01:02 fplanque 99 * MODULES (refactored MVC) 100 * 101 * Revision 1.5 2007/04/26 00:11:12 fplanque 102 * (c) 2007 103 * 104 * Revision 1.4 2007/03/20 09:53:26 fplanque 105 * Letting boggers view their own stats. 106 * + Letthing admins view the aggregate by default. 107 * 108 * Revision 1.3 2006/11/24 18:27:26 blueyed 109 * Fixed link to b2evo CVS browsing interface in file docblocks 110 */ 111 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Thu Nov 29 23:58:50 2007 | par Balluche grâce à PHPXref 0.7 |
|