diff options
author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-10-26 12:37:36 +0000 |
---|---|---|
committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2005-10-26 12:37:36 +0000 |
commit | c4e55f1f4469cedb258ae38528b9c447a57b2a72 (patch) | |
tree | c388d5b72524f66bdaec3e3ad5ccbe9b4d6b258c | |
parent | d3c1c5036d9083af113019bc3225853c1c2f2dbf (diff) | |
download | wordpress-mu-c4e55f1f4469cedb258ae38528b9c447a57b2a72.tar.gz wordpress-mu-c4e55f1f4469cedb258ae38528b9c447a57b2a72.tar.xz wordpress-mu-c4e55f1f4469cedb258ae38528b9c447a57b2a72.zip |
Make Referers page a little nicer when no referers
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@410 7be80a69-a1ef-0310-a953-fb0f7c49ff36
-rw-r--r-- | wp-inst/wp-content/mu-plugins/doc_referers.php | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/wp-inst/wp-content/mu-plugins/doc_referers.php b/wp-inst/wp-content/mu-plugins/doc_referers.php index d1b593e..304879e 100644 --- a/wp-inst/wp-content/mu-plugins/doc_referers.php +++ b/wp-inst/wp-content/mu-plugins/doc_referers.php @@ -318,8 +318,8 @@ class DOC_Referers { $result = $wpdb->get_results($query, ARRAY_A ); $rows = $wpdb->num_rows; - if( $result ) - { + print "<h2>Referers</h2>"; + if( $result ) { // javascript from http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_10105441.html and // http://members.aol.com/grassblad/html/chkAllBut.html print "<script langage='javascript'> @@ -380,7 +380,6 @@ class DOC_Referers { $nav .= " | <a href='edit.php?page=" . $_GET[ 'page' ] . "".$this->makeURL( "more", ($more + 10) )."'>More Hits</a>"; $nav .= " | <a href='edit.php?page=" . $_GET[ 'page' ] . "".$this->makeURL( "more", ($more - 10) )."'>Less Hits</a>"; $nav .= "<br />"; - print "<h2>Referers</h2>"; print $nav; $today = date( 'd' ); if( $day > $today ) @@ -480,6 +479,14 @@ class DOC_Referers { print "</table>"; print $nav; print "</form>"; + } else { + print "<p>No Referers found today!</p>"; + print "<ul><li><a href='edit.php?page=mu-plugins/doc_referers.php&action=month'>Month View</a> displays the last month of stats.</li>"; + if( $ignoreDIRECT == 'yes' ) + print "<li><a href='".$this->makeURL( "ignoreDIRECT", 'no' )."'>Display DIRECT hits</a> - some browsers don't report what page they come from. You're hiding this information right now.</li>"; + if( $internal == 'yes' ) + print "<li><a href='".$this->makeURL( "internal", 'no' )."'>Display internal hits</a> - it's not always very interesting where people wander around your blog. You're hiding this information right now.</li>"; + print "</ul>"; } break; default: |