1
0
Fork 0

edit: phpdoc stuff

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
Dieser Commit ist enthalten in:
Oldperl 2011-11-14 14:21:22 +00:00
Ursprung 187cc396c4
Commit 86383bb510
53 geänderte Dateien mit 26319 neuen und 380 gelöschten Zeilen

Datei anzeigen

@ -2,18 +2,48 @@
/**
* file semmelstatzR_options.php
*
* @package SemmelstatzR
* @version $Rev$
* @author Ortwin Pinke <info@dceonline.de>
* @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
* @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');
@ -45,12 +75,12 @@ if(!current_user_can('manage_statz')) {
$sem_options['statz_use_img'] = $_POST['statz_use_img'];
update_option("semmelstatzR_options", $sem_options);
echo '<div class="updated fade"><p>'.semr_e('Options saved').'</strong></p></div>';
echo '<div class="updated fade"><p>'.semr_i18n('Options saved').'</strong></p></div>';
}
if(isset($_POST['trunc_save'])) {
if ($result == sem_truncateStatzTable()) {
echo "<div class='updated'><p>".semr_e('<i>statz</i>-table emptied succesfully.')."</p></div>";
if (sem_truncateStatzTable()) {
echo "<div class='updated'><p>".semr_i18n('<i>statz</i>-table emptied succesfully.')."</p></div>";
}
}
@ -93,18 +123,18 @@ if(!current_user_can('manage_statz')) {
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>?page=<?php echo plugin_basename(__FILE__); ?>">
<div id='icon-semmelstatzR' class='icon32'><br /></div>
<h2>SemmelstatzR &rsaquo; <?php echo semr_e('Options'); ?></h2>
<h2>SemmelstatzR &rsaquo; <?php echo semr_i18n('Options'); ?></h2>
<p><input type="submit" class="button-secondary" name="options_save" value="<?php echo semr_e('Save Changes'); ?>" /></p>
<p><input type="submit" class="button-secondary" name="options_save" value="<?php echo semr_i18n('Save Changes'); ?>" /></p>
<table class="form-table">
<tr style="background:#eee;" valign="middle">
<th><?php echo semr_e('Use tracking image'); ?></th>
<th><?php echo semr_i18n('Use tracking image'); ?></th>
<td><input name="statz_use_img" type="checkbox" id="statz_write_admins" value="statz_use_img"
<?php if($sem_options["statz_use_img"] == TRUE) {?> checked="checked" <?php } ?> />
</td>
<td><?php echo semr_e('Use a pixelimage in the footer to track visitors. Only needed with some cache-plugins. - (Default: Off)'); ?></td>
<td><?php echo semr_i18n('Use a pixelimage in the footer to track visitors. Only needed with some cache-plugins. - (Default: Off)'); ?></td>
</tr>
<tr style="background:#eee;" valign="middle">