cvs: docweb /www notes_stats.php
[email protected] ("Sean Coates")
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <cvssean1122856677@cvsserver> |
sean Sun Jul 31 20:37:57 2005 EDT
Modified files:
/docweb/www notes_stats.php
Log:
reworked for template system
http://cvs.php.net/diff.php/docweb/www/notes_stats.php?r1=1.4&r2=1.5&ty=u
Index: docweb/www/notes_stats.php
diff -u /dev/null docweb/www/notes_stats.php:1.5
--- /dev/null Sun Jul 31 20:37:57 2005
+++ docweb/www/notes_stats.php Sun Jul 31 20:37:57 2005
@@ -0,0 +1,61 @@
+<?php
+/*
++----------------------------------------------------------------------+
+| PHP Documentation Site Source Code |
++----------------------------------------------------------------------+
+| Copyright (c) 2005 The PHP Group |
++----------------------------------------------------------------------+
+| This source file is subject to version 3.0 of the PHP license, |
+| that is bundled with this package in the file LICENSE, and is |
+| available at through the world-wide-web at |
+| http://www.php.net/license/3_0.txt. |
+| If you did not receive a copy of the PHP license and are unable to |
+| obtain it through the world-wide-web, please send a note to |
+| [email protected] so we can mail you a copy immediately. |
++----------------------------------------------------------------------+
+| Authors: Sean Coates <[email protected]> |
+| Credits: Vincent Gevers <[email protected]> |
++----------------------------------------------------------------------+
+$Id: notes_stats.php,v 1.5 2005/08/01 00:37:57 sean Exp $
+*/
+
+
+require_once('../include/init.inc.php');
+
+@include('note_stats-data.php');
+
+if (!is_array($notesData) || !$notesData) {
+ echo DocWeb_Template::get(
+ 'shared/error_msg.tpl.php',
+ array(
+ 'header' => 'docweb.common.header.stats-not-available',
+ 'body' => array(
+ '&docweb.common.error.stats-not-available;',
+ false
+ )
+ )
+ );
+ return;
+} elseif ($notesData['last_article'] < 50000) {
+ echo DocWeb_Template::get(
+ 'shared/error_msg.tpl.php',
+ array(
+ 'header' => 'docweb.common.header.stats-not-available-yet',
+ 'body' => array(
+ '&docweb.common.error.stats-not-available-yet;',
+ false
+ )
+ )
+ );
+ return;
+}
+
+
+echo site_header("docweb.common.header.notes-stats");
+echo DocWeb_Template::get(
+ 'notes_stats.tpl.php',
+ $notesData
+ );
+echo site_footer();
+
+?>