86383bb510
add: pChart lib - no more usage of google api. There has to be the wp-content/cache writable for images add: test-folder for later use new: class agents, new isBot-functionality within this class, old function is deprecated, uses an ini-file with botnames
255 Zeilen
Kein EOL
9,1 KiB
PHP
255 Zeilen
Kein EOL
9,1 KiB
PHP
<?php
|
|
/**
|
|
* file semmelstatzR_templates.php
|
|
*
|
|
* @package SemmelstatzR
|
|
* @version $Rev$
|
|
* @since 1.0.0 Beta
|
|
* @author SEM-Team
|
|
* @copyright (c)2011 SEM-Team
|
|
* @link http://sourceforge.net/projects/semmelstatz/
|
|
* @license http://www.gnu.org/licenses/gpl-3.0.html
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*
|
|
* $Id$
|
|
*
|
|
*/
|
|
/**
|
|
* based upon semmelstatz
|
|
* Copyright (c) 2005-2009 Andreas 'Redunzl' Mueller (redunzl@gmx.de)
|
|
*
|
|
* @license http://www.gnu.org/licenses/gpl-2.0.html
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License (version 2) as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
*/
|
|
|
|
if(!current_user_can('manage_statz')) {
|
|
die('Zugriff verweigert');
|
|
}
|
|
|
|
### TEMPLATES
|
|
|
|
$totalposts = sem_showTotalPosts();
|
|
$totalcomments = sem_showTotalComments();
|
|
$totalusers = sem_showTotalUsers();
|
|
$averageuserperday = sem_showAverageUserPerDay();
|
|
$firstpostdate = sem_showFirstPostDate();
|
|
$postdays = sem_showPostDays();
|
|
$firstcommentdate = sem_showFirstCommentDate();
|
|
$commentdays = sem_showCommentDays();
|
|
$postsperday = sem_showPostsPerDay();
|
|
$commentsperday = sem_showCommentsPerDay();
|
|
$numcommenters = sem_showNumCommenters();
|
|
$statzstartdate = sem_showStatzStartDate();
|
|
$statzdays = sem_showStatzDays();
|
|
$numusersonline = sem_showNumUsersOnline();
|
|
|
|
### DIE ANZEIGE
|
|
|
|
print "<form>";
|
|
print "<div class='wrap'>";
|
|
print "<div id='icon-template' class='icon32'><br /></div>";
|
|
print "<h2>SemmelstatzR › Template-Funktionen</h2>";
|
|
print "<br />";
|
|
print "<table class='statzelement'>";
|
|
print "<thead>";
|
|
print "<tr>";
|
|
print "<th style='text-align:left;'>Funktion</th>";
|
|
print "<th style='text-align:left;width:26em;'>Syntax</th>";
|
|
print "<th style='text-align:left;'>Rückgabewert</th>";
|
|
print "<th style='text-align:left;'>Hier</th>";
|
|
print "<th style='text-align:left;'>Bemerkung</th>";
|
|
print "</tr>";
|
|
print "</thead>";
|
|
print "<tbody>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showTotalPosts</td>";
|
|
print "<td><input type='text' value='<?php sem_showTotalPosts(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$totalposts</td>";
|
|
print "<td>Anzahl aller Beiträge</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showTotalComments</td>";
|
|
print "<td><input type='text' value='<?php sem_showTotalComments(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$totalcomments</td>";
|
|
print "<td>Anzahl aller Kommentare</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showTotalUsers</td>";
|
|
print "<td><input type='text' value='<?php sem_showTotalUsers(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$totalusers</td>";
|
|
print "<td>Gesamtzahl aller Besucher seit Statistikaufzeichnung</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showAverageUserPerDay</td>";
|
|
print "<td><input type='text' value='<?php sem_showAverageUserPerDay(); ?>' class='regular-text' /></td>";
|
|
print "<td>Dezimal</td>";
|
|
print "<td>$averageuserperday</td>";
|
|
print "<td>Durchschnittliche Anzahl der täglichen Besucher</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showFirstPostDate</td>";
|
|
print "<td><input type='text' value='<?php sem_showFirstPostDate(); ?>' class='regular-text' /></td>";
|
|
print "<td>Datum (d.m.y)</td>";
|
|
print "<td>$firstpostdate</td>";
|
|
print "<td>Datum des 1. Posts</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showPostDays</td>";
|
|
print "<td><input type='text' value='<?php sem_showPostDays(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$postdays</td>";
|
|
print "<td>Zeitraum in Tagen seit 1. Beitrag</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>em_showFirstCommentDate</td>";
|
|
print "<td><input type='text' value='<?php sem_showFirstCommentDate(); ?>' class='regular-text' /></td>";
|
|
print "<td>Datum (d.m.y)</td>";
|
|
print "<td>$firstcommentdate</td>";
|
|
print "<td>Datum des 1. Kommentars</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showCommentDays</td>";
|
|
print "<td><input type='text' value='<?php sem_showCommentDays(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$commentdays</td>";
|
|
print "<td>Zeitraum in Tagen seit 1. Kommentar</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showPostsPerDay</td>";
|
|
print "<td><input type='text' value='<?php sem_showPostsPerDay(); ?>' class='regular-text' /></td>";
|
|
print "<td>Dezimal</td>";
|
|
print "<td>$postsperday</td>";
|
|
print "<td>Durchschnittliche Anzahl der Beiträge pro Tag</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showCommentsPerDay</td>";
|
|
print "<td><input type='text' value='<?php sem_showCommentsPerDay(); ?>' class='regular-text' /></td>";
|
|
print "<td>Dezimal</td>";
|
|
print "<td>$commentsperday</td>";
|
|
print "<td>Durchschnittliche Anzahl der Kommentare pro Tag</td>";
|
|
print "</tr>";
|
|
|
|
print "<td>sem_showNumCommenters</td>";
|
|
print "<td><input type='text' value='<?php sem_showNumCommenters(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$numcommenters</td>";
|
|
print "<td>Gesamtzahl aller Kommentierer</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showStatzStartDate</td>";
|
|
print "<td><input type='text' value='<?php sem_showStatzStartDate(); ?>' class='regular-text' /></td>";
|
|
print "<td>Datum (d.m.y)</td>";
|
|
print "<td>$statzstartdate</td>";
|
|
print "<td>Beginn der Statistik</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showStatzDays</td>";
|
|
print "<td><input type='text' value='<?php sem_showStatzDays(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$statzdays</td>";
|
|
print "<td>Zeitraum der Statistik in Tagen</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showNumUsersOnline</td>";
|
|
print "<td><input type='text' value='<?php sem_showNumUsersOnline(); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>$numusersonline</td>";
|
|
print "<td>User Online</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showLastComments</td>";
|
|
print "<td><input type='text' value='<?php sem_showLastComments(10); ?>' class='regular-text' /></td>";
|
|
print "<td>Formatierte Liste</td>";
|
|
print "<td>n/a</td>";
|
|
print "<td>Die neusten 'n' Kommentare mit Autor, Post, abwärts sortiert nach Datum<br />CSS-ID: #lastcomments</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showLastPosts</td>";
|
|
print "<td><input type='text' value='<?php sem_showLastPosts(10); ?>' class='regular-text' /></td>";
|
|
print "<td>Formatierte Liste</td>";
|
|
print "<td>n/a</td>";
|
|
print "<td>Die neusten 'n' Posts mit Titel, abwärts sortiert nach Datum<br />CSS-ID: #lastposts</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showMostReads</td>";
|
|
print "<td><input type='text' value='<?php sem_showMostReads(10); ?>' class='regular-text' /></td>";
|
|
print "<td>Formatierte Liste</td>";
|
|
print "<td>n/a</td>";
|
|
print "<td>Die 'n' meist gelesenen Post/Pages mit Hits in Klammern<br />CSS-ID: #mostreads</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>sem_showPostHitsInLoop</td>";
|
|
print "<td><input type='text' value='<?php sem_showPostHitsInLoop(get_the_ID()); ?>' class='regular-text' /></td>";
|
|
print "<td>Ganzzahl</td>";
|
|
print "<td>Nur im Loop</td>";
|
|
print "<td>Zeigt die Anzahl der Hits eines Posts an. Funktioniert nur im LOOP.</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td colspan='5'>";
|
|
print "Sämtliche Funktionen (bis auf die letzte) sind außerhalb des LOOPS zu verwenden. Wird
|
|
SEMMELSTATZ deaktiviert, und die Verfügbarkeit der Templatefunktion ist nicht mittels
|
|
<code>if (function_exists...</code> sichergestellt, wird die Indexseite des Blogs fehlerhaft bzw.
|
|
überhaupt nicht dargestellt.";
|
|
print "</td>";
|
|
print "</tr>";
|
|
|
|
print "<tr>";
|
|
print "<td>";
|
|
print "</td>";
|
|
print "</tr>";
|
|
|
|
print "</tbody>";
|
|
print "</table>";
|
|
print "<hr />";
|
|
|
|
if (function_exists('sem_showCopyright')) sem_showCopyright();
|
|
|
|
print "</div>";
|
|
|
|
print "</form>";
|
|
|
|
?>
|