From 7346c0ed11a48911f34a73693a4147c68420e877 Mon Sep 17 00:00:00 2001 From: oldperl Date: Mon, 2 May 2011 10:30:11 +0000 Subject: [PATCH] update: renaming and new file comment header --- ...database.php => semmelstatzR-database.php} | 26 ++-- ...z-history.php => semmelstatzR-history.php} | 26 ++-- ...mmelstatz-log.php => semmelstatzR-log.php} | 34 ++++-- ...z-options.php => semmelstatzR-options.php} | 38 +++--- ...statz-statz.php => semmelstatzR-statz.php} | 54 ++++---- ...mplates.php => semmelstatzR-templates.php} | 24 ++-- trunk/{semmelstatz.css => semmelstatzR.css} | 26 ++-- trunk/{semmelstatz.php => semmelstatzR.php} | 115 ++++++++++-------- 8 files changed, 206 insertions(+), 137 deletions(-) rename trunk/{semmelstatz-database.php => semmelstatzR-database.php} (85%) rename trunk/{semmelstatz-history.php => semmelstatzR-history.php} (91%) rename trunk/{semmelstatz-log.php => semmelstatzR-log.php} (86%) rename trunk/{semmelstatz-options.php => semmelstatzR-options.php} (95%) rename trunk/{semmelstatz-statz.php => semmelstatzR-statz.php} (93%) rename trunk/{semmelstatz-templates.php => semmelstatzR-templates.php} (93%) rename trunk/{semmelstatz.css => semmelstatzR.css} (79%) rename trunk/{semmelstatz.php => semmelstatzR.php} (89%) diff --git a/trunk/semmelstatz-database.php b/trunk/semmelstatzR-database.php similarity index 85% rename from trunk/semmelstatz-database.php rename to trunk/semmelstatzR-database.php index 609a284..fdb61b3 100644 --- a/trunk/semmelstatz-database.php +++ b/trunk/semmelstatzR-database.php @@ -1,11 +1,19 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); @@ -17,8 +25,8 @@ if(!current_user_can('manage_statz')) { print "
"; print "
"; - print "

"; - print "

Semmelstatz › Datenbank

"; + print "

"; + print "

SemmelstatzR › Datenbank

"; print "
Datenbank
"; print ""; diff --git a/trunk/semmelstatz-history.php b/trunk/semmelstatzR-history.php similarity index 91% rename from trunk/semmelstatz-history.php rename to trunk/semmelstatzR-history.php index b5d1fbf..4cedc8f 100644 --- a/trunk/semmelstatz-history.php +++ b/trunk/semmelstatzR-history.php @@ -1,11 +1,19 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); @@ -175,8 +183,8 @@ ### ANZEIGE HISTORY print "
"; - print "

"; - print "

Semmelstatz › Historie

"; + print "

"; + print "

SemmelstatzR › Historie

"; sem_drawLast30DaysGoo(); sem_drawAllMonthGoo(); diff --git a/trunk/semmelstatz-log.php b/trunk/semmelstatzR-log.php similarity index 86% rename from trunk/semmelstatz-log.php rename to trunk/semmelstatzR-log.php index e9a93ba..46e7cae 100644 --- a/trunk/semmelstatz-log.php +++ b/trunk/semmelstatzR-log.php @@ -1,12 +1,20 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ -/*********************************************** - * * - * semmelstatz_log.php v3.3 * - * Copyright: © 2005-2009 kopfhoch-studio * - * * - ***********************************************/ - if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); } @@ -15,14 +23,14 @@ if(!current_user_can('manage_statz')) { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_datarecs_limit"]; $mask = $sem_options["statz_mask_referer"]; $completerecords = $wpdb->get_results("SELECT id, ip, time, referer, page, username FROM ".$wpdb->statz." ORDER BY time DESC LIMIT 0, ".$limit); print "
"; - print "

"; - print "

Semmelstatz › Log

"; + print "

"; + print "

SemmelstatzR › Log

"; print "
Die neuesten ".$limit." Datensätze
"; if ($completerecords == NULL) { @@ -77,11 +85,11 @@ if(!current_user_can('manage_statz')) { print "
"; print ""; + "; print ""; diff --git a/trunk/semmelstatz-options.php b/trunk/semmelstatzR-options.php similarity index 95% rename from trunk/semmelstatz-options.php rename to trunk/semmelstatzR-options.php index 044757b..7414f3c 100644 --- a/trunk/semmelstatz-options.php +++ b/trunk/semmelstatzR-options.php @@ -1,11 +1,19 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); @@ -34,7 +42,7 @@ if(!current_user_can('manage_statz')) { $sem_options['statz_show_todayusers'] = $_POST['statz_show_todayusers']; $sem_options['statz_on_dashboard'] = $_POST['statz_on_dashboard']; $sem_options['statz_datarecs_limit'] = $_POST['statz_datarecs_limit']; - update_option("semmelstatz_options", $sem_options); + update_option("semmelstatzR_options", $sem_options); echo '

Einstellungen gespeichert

'; } @@ -49,7 +57,7 @@ if(!current_user_can('manage_statz')) { $sem_options["statz_recdays_limit"] = $_POST["statz_recdays_limit"]; if($sem_options["statz_recdays_limit"] < 1 || (!is_numeric($sem_options["statz_recdays_limit"]))) $sem_options["statz_recdays_limit"] = 1; - update_option("semmelstatz_options", $sem_options); + update_option("semmelstatzR_options", $sem_options); echo "

Der Wert für das Limit wurde erfolgreich gespeichert.

"; } @@ -74,7 +82,7 @@ if(!current_user_can('manage_statz')) { $sem_options['statz_do_cron'] = true; $sem_options['statz_next_cron'] = time() + 86400; } - update_option("semmelstatz_options", $sem_options); + update_option("semmelstatzR_options", $sem_options); } ?> @@ -83,8 +91,8 @@ if(!current_user_can('manage_statz')) { -

-

Semmelstatz › Einstellungen

+

+

SemmelstatzR › Einstellungen

@@ -239,7 +247,7 @@ if(!current_user_can('manage_statz')) { - + @@ -258,8 +266,8 @@ if(!current_user_can('manage_statz')) { -

-

Semmelstatz › Statz-Tabellen

+

+

SemmelstatzR › Statz-Tabellen

".$date." -   +   -   +   - "; if ($referer == "--") { print "--
Anzahl Datensätze im LogAnzahl Datensätze im Log " style="text-align:center;" size="3" maxlength="4" />
diff --git a/trunk/semmelstatz-statz.php b/trunk/semmelstatzR-statz.php similarity index 93% rename from trunk/semmelstatz-statz.php rename to trunk/semmelstatzR-statz.php index 2d17d7b..eb0e158 100644 --- a/trunk/semmelstatz-statz.php +++ b/trunk/semmelstatzR-statz.php @@ -1,11 +1,19 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); @@ -16,7 +24,7 @@ if(!current_user_can('manage_statz')) { function sem_showWhoIsOnline() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $onlinetime = $sem_options["statz_online_time"]; $onlineusers = $wpdb->get_results("SELECT DISTINCT username, page, ip, time @@ -60,11 +68,11 @@ if(!current_user_can('manage_statz')) { print ""; print ""; + "; print ""; print ""; } @@ -123,7 +131,7 @@ if(!current_user_can('manage_statz')) { function sem_showDailyStatz() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_days_limit"]; $daylimit = $limit - 1; @@ -175,7 +183,7 @@ if(!current_user_can('manage_statz')) { print ""; } print ""; - print ""; + print ""; print ""; print ""; print "
".$title." -   +   -   +   - $time
mehr...mehr...
"; @@ -185,7 +193,7 @@ if(!current_user_can('manage_statz')) { function sem_showReferers() { global $wpdb, $homehost; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_referer_limit"]; $mask = $sem_options["statz_mask_referer"]; @@ -234,7 +242,7 @@ if(!current_user_can('manage_statz')) { function sem_showKeyword() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_keyword_limit"]; $results = $wpdb->get_results("SELECT referer, time, ip FROM $wpdb->statz WHERE referer != 'NULL' ORDER BY time DESC"); @@ -267,11 +275,11 @@ if(!current_user_can('manage_statz')) { print "".$keyword.""; print " -   +   -   +   - "; + "; print ""; $i++; @@ -324,7 +332,7 @@ if(!current_user_can('manage_statz')) { function sem_showTopReads() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_topreads_limit"]; $topreads = $wpdb->get_results("SELECT post_title AS posttitle, post_name as postname, guid AS postid, @@ -432,7 +440,7 @@ if(!current_user_can('manage_statz')) { function sem_showCommenters() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $limit = $sem_options["statz_comment_limit"]; $topcommenters = $wpdb->get_results("SELECT comment_author AS commenter, COUNT(comment_ID) AS count, @@ -482,9 +490,9 @@ if(!current_user_can('manage_statz')) { print "
"; print "
"; - print "

"; - print "

Semmelstatz › Aktuell

"; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + print "

"; + print "

SemmelstatzR › Aktuell

"; + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen if ($sem_options["statz_show_useronline"]) sem_showWhoIsOnline(); sem_draw24HoursGoo(); if ($sem_options["statz_show_todayusers"]) sem_showWhoWasOnlineToday(); diff --git a/trunk/semmelstatz-templates.php b/trunk/semmelstatzR-templates.php similarity index 93% rename from trunk/semmelstatz-templates.php rename to trunk/semmelstatzR-templates.php index 9966562..8097a63 100644 --- a/trunk/semmelstatz-templates.php +++ b/trunk/semmelstatzR-templates.php @@ -1,11 +1,19 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + */ if(!current_user_can('manage_statz')) { die('Zugriff verweigert'); @@ -33,7 +41,7 @@ if(!current_user_can('manage_statz')) { print "
"; print "
"; print "

"; - print "

Semmelstatz › Template-Funktionen

"; + print "

SemmelstatzR › Template-Funktionen

"; print "
"; print ""; print ""; diff --git a/trunk/semmelstatz.css b/trunk/semmelstatzR.css similarity index 79% rename from trunk/semmelstatz.css rename to trunk/semmelstatzR.css index c0a8c89..c3a8e1c 100644 --- a/trunk/semmelstatz.css +++ b/trunk/semmelstatzR.css @@ -1,12 +1,18 @@ - - /********************************************** - * * - * semmelstatz.css v3.3 * - * Copyright: © 2005-2009 kopfhoch-studio * - * Kontakt: http://www.kopfhoch-studio.de/ * - * * - ***********************************************/ - +/** + * file semmelstatzR.css + * + * @package SemmelstatzR + * @version $Rev$ + * @author Ortwin Pinke + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ +*/ p.statz, div.statz { /* font-family: tahoma,verdana,arial,helvetica; */ @@ -112,7 +118,7 @@ table.chartelement { background: #eee; } -#icon-semmelstatz { +#icon-semmelstatzR { background: transparent url(img/icon_observe.png); } diff --git a/trunk/semmelstatz.php b/trunk/semmelstatzR.php similarity index 89% rename from trunk/semmelstatz.php rename to trunk/semmelstatzR.php index 79dd57b..8129511 100644 --- a/trunk/semmelstatz.php +++ b/trunk/semmelstatzR.php @@ -1,28 +1,43 @@ + * @author Andreas 'Redunzl' Mueller + * @copyright (c)2011 PHP-Backoffice + * @copyright (c)2005-2009 kopfhoch-studio + * @link http://www.php-backoffice.de/projects/semmelstatzR + * @link http://sourceforge.net/projects/semmelstatz/ + * @license http://www.gnu.org/licenses/gpl-2.0.html + * + * $Id$ + * + * Copyright (c) 2005-2009 Andreas 'Redunzl' Mueller (redunzl@gmx.de) + * Copyright (c) 2011- Ortwin Pinke (info@php-backoffice.de) + * + * 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 */ ### konstante für version @@ -43,22 +58,22 @@ with this program; if not, write to the Free Software Foundation, Inc., } ### Erstellen des Top-Level-Menus im Adminbereich - add_action('admin_menu', 'semmelstatz_menu'); - function semmelstatz_menu() { + add_action('admin_menu', 'semmelstatzR_menu'); + function semmelstatzR_menu() { if (function_exists('add_menu_page')) { - add_menu_page('Semmelstatz','Semmelstatz', 'manage_statz', 'semmelstatz/semmelstatz-statz.php', '', plugins_url('semmelstatz/img/statz_small.png')); + add_menu_page('SemmelstatzR','SemmelstatzR', 'manage_statz', 'semmelstatzR/semmelstatzR-statz.php', '', plugins_url('semmelstatzR/img/statz_small.png')); } if (function_exists('add_submenu_page')) { - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Aktuell', 'Aktuell', 'manage_statz', 'semmelstatz/semmelstatz-statz.php'); - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Historie', 'Historie', 'manage_statz', 'semmelstatz/semmelstatz-history.php'); - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Log', 'Log', 'manage_statz', 'semmelstatz/semmelstatz-log.php'); - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Datenbank', 'Datenbank', 'manage_statz', 'semmelstatz/semmelstatz-database.php'); - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Templates', 'Templates', 'manage_statz', 'semmelstatz/semmelstatz-templates.php'); - add_submenu_page('semmelstatz/semmelstatz-statz.php', 'Einstellungen', 'Einstellungen', 'manage_statz', 'semmelstatz/semmelstatz-options.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Aktuell', 'Aktuell', 'manage_statz', 'semmelstatzR/semmelstatzR-statz.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Historie', 'Historie', 'manage_statz', 'semmelstatzR/semmelstatzR-history.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Log', 'Log', 'manage_statz', 'semmelstatzR/semmelstatzR-log.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Datenbank', 'Datenbank', 'manage_statz', 'semmelstatzR/semmelstatzR-database.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Templates', 'Templates', 'manage_statz', 'semmelstatzR/semmelstatzR-templates.php'); + add_submenu_page('semmelstatzR/semmelstatzR-statz.php', 'Einstellungen', 'Einstellungen', 'manage_statz', 'semmelstatzR/semmelstatzR-options.php'); } } -### Default-Werte der statz-Optionen in das Array 'semmelstatz_options' schreiben +### Default-Werte der statz-Optionen in das Array 'semmelstatzR_options' schreiben add_action('init', 'sem_init_options'); function sem_init_options() { global $wpdb; @@ -67,7 +82,7 @@ add_action('init', 'sem_init_options'); $wpdb->query("DELETE FROM $wpdb->options WHERE option_name LIKE 'statz%';"); // Löschen der alten Optionen } - if(!get_option('semmelstatz_options')) { + if(!get_option('semmelstatzR_options')) { $sem_options = array( "statz_comment_limit" => 10, "statz_datarecs_limit" => 100, @@ -93,12 +108,12 @@ add_action('init', 'sem_init_options'); "statz_write_admins" => false, "statz_write_users" => false ); - add_option( 'semmelstatz_options', $sem_options ); + add_option( 'semmelstatzR_options', $sem_options ); } } ### Anlegen der Tabellen, Optionen schreiben - add_action('activate_semmelstatz/semmelstatz.php', 'sem_statzsetup'); + add_action('activate_semmelstatzR/semmelstatzR.php', 'sem_statzsetup'); function sem_statzsetup() { global $wpdb; if(@is_file(ABSPATH.'/wp-admin/upgrade-functions.php')) { @@ -152,7 +167,7 @@ add_action('init', 'sem_init_options'); add_action('wp_head', 'sem_writeStatz'); function sem_writeStatz() { global $wpdb, $wp_query, $isBot, $isAdmin, $page; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen sem_writeYesterdayToHist(); $useragent = $wpdb->escape($_SERVER['HTTP_USER_AGENT']); @@ -197,30 +212,30 @@ add_action('init', 'sem_init_options'); ### Zeitgesteuertes Limitieren der statz-Tabelle // Wenn semmelKron JA UND statz_next_cron älter JETZT, dann... - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen if($sem_options['statz_do_cron'] == true && $sem_options['statz_next_cron'] < time()) { add_action('shutdown', 'sem_doCronStatzLimit'); // ...limitiere statz-Tabelle auf vorgegebenen Wert } ### CSS für den SEMMELSTATZ-Admin-Bereich - add_action('admin_head', 'semmelstatz_css'); - function semmelstatz_css() { - print "\n"; + add_action('admin_head', 'semmelstatzR_css'); + function semmelstatzR_css() { + print "\n"; } ### Rendert eine Mini-STATZ. Idee: René Tauchnitz function sem_dashboardStatz() { print "

".sem_showNumUsersOnline() . " Besucher online - Heute: ".sem_showTodayStatz()."  - »»

"; + »»

"; } ### Widget für die Mini-STATZ add_action('wp_dashboard_setup', 'sem_dashboardStatz_setup'); function sem_dashboardStatz_setup() { - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen if(!current_user_can('manage_statz')) return; if($sem_options['statz_on_dashboard'] != TRUE) return; - wp_add_dashboard_widget( 'sem_dashboardStatz', 'Semmelstatz', 'sem_dashboardStatz' ); + wp_add_dashboard_widget( 'sem_dashboardStatz', 'SemmelstatzR', 'sem_dashboardStatz' ); } ### Mini-Statz für Dashboard-Widget & AKTUELL-Anzeige @@ -579,18 +594,18 @@ add_action('init', 'sem_init_options'); ### Wenn Tage in statz-Tabelle kleiner als Tage in Daily-Statz, dann nimm Tage in Daily-Statz function sem_compareLimitDays2DailyStatz () { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen if (sem_countDaysInStatzTable() << $sem_options["statz_days_limit"]) { $sem_options["statz_days_limit"] = sem_countDaysInStatzTable(); - update_option("semmelstatz_options", $sem_options); + update_option("semmelstatzR_options", $sem_options); } } ### Zeigt Copyright-Notiz an function sem_showCopyright() { - print ""; +

"; } ### statz-Tabelle leeren (NICHT LÖSCHEN!!!) @@ -628,7 +643,7 @@ add_action('init', 'sem_init_options'); ### Datensätze älter als statz_recdays_limit-Tage löschen function sem_delOutOfLimit() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $today = time(); $days = $sem_options["statz_recdays_limit"]; $enddatum = $today - ($days * 86400); $enddatum = date("Y-m-d", $enddatum) . " 23:59:59"; @@ -639,10 +654,10 @@ add_action('init', 'sem_init_options'); ### Wenn AUTOMATISCHES LIMIT aktiviert, dann LIMITIERE und erhöhe NEXT_CRON function sem_doCronStatzLimit() { sem_delOutOfLimit(); - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $statz_next_cron = $sem_options["statz_next_cron"] + 86400; $sem_options["statz_next_cron"] = $statz_next_cron; - update_option("semmelstatz_options", $sem_options); + update_option("semmelstatzR_options", $sem_options); } ### Konvertiert Strings von utf-8 in ISO-8859 @@ -950,7 +965,7 @@ add_action('init', 'sem_init_options'); ### Anzahl der Online-Besucher - Verweildauer in den Einstellungen function sem_showNumUsersOnline() { global $wpdb; - $sem_options = get_option('semmelstatz_options'); ### optionsarray auslesen + $sem_options = get_option('semmelstatzR_options'); ### optionsarray auslesen $onlinetime = $sem_options["statz_online_time"]; $numonline = $wpdb->get_var("SELECT COUNT(DISTINCT ip) FROM ".$wpdb->statz." WHERE time > Now() - INTERVAL ".$onlinetime." SECOND"); return $numonline; // Ganzzahl