Changeset 45233
- Timestamp:
- 05/11/08 11:41:44 (2 months ago)
- Files:
-
- zdstats/tags/1.1 (copied) (copied from zdstats/trunk)
- zdstats/tags/1.1/flags (copied) (copied from zdstats/trunk/flags)
- zdstats/tags/1.1/geoip (copied) (copied from zdstats/trunk/geoip)
- zdstats/tags/1.1/lang (copied) (copied from zdstats/trunk/lang)
- zdstats/tags/1.1/lang/zd_stats-fr_FR.mo (modified) (previous)
- zdstats/tags/1.1/lang/zd_stats-fr_FR.po (modified) (2 diffs)
- zdstats/tags/1.1/lang/zdstats.pot (modified) (1 diff)
- zdstats/tags/1.1/readme.txt (copied) (copied from zdstats/trunk/readme.txt) (1 diff)
- zdstats/tags/1.1/screenshot-1.png (copied) (copied from zdstats/trunk/screenshot-1.png)
- zdstats/tags/1.1/zd_stats.php (modified) (7 diffs)
- zdstats/trunk/lang/zd_stats-fr_FR.mo (modified) (previous)
- zdstats/trunk/lang/zd_stats-fr_FR.po (modified) (2 diffs)
- zdstats/trunk/lang/zdstats.pot (modified) (1 diff)
- zdstats/trunk/readme.txt (modified) (1 diff)
- zdstats/trunk/zd_stats.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
zdstats/tags/1.1/lang/zd_stats-fr_FR.po
r45175 r45233 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2008-05-02 14:06+0200\n" 6 "PO-Revision-Date: 2008-05-1 0 15:21+0100\n"6 "PO-Revision-Date: 2008-05-11 13:34+0100\n" 7 7 "Last-Translator: Anthony PETITBOIS <anthony@zen-dreams.com>\n" 8 8 "Language-Team: \n" … … 205 205 msgstr "Détails non trouvés, nous sommes désolé de ce contre-temps" 206 206 207 msgid "Delete marked entries" 208 msgstr "Supprime les entrées cochées" 209 210 msgid "Mark" 211 msgstr "Cocher" 212 213 msgid "Delete all pageviews for this IP" 214 msgstr "Supprime toutes les visites de cette IP" 215 216 msgid "*: Note this is an irreversible operation" 217 msgstr "*: Veuillez noter que cette opération est irréversible" 218 zdstats/tags/1.1/lang/zdstats.pot
r45175 r45233 262 262 msgid "Details not found, sorry for the inconvenience" 263 263 msgstr "" 264 265 #: 266 msgid "Delete marked entries" 267 msgstr "" 268 269 #: 270 msgid "Mark" 271 msgstr "" 272 273 #: 274 msgid "Delete all pageviews for this IP" 275 msgstr "" 276 277 #: 278 msgid "*: Note this is an irreversible operation" 279 msgstr "" zdstats/tags/1.1/readme.txt
r45220 r45233 5 5 Requires at least: 2.5.0 6 6 Tested up to: 2.5.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 9 9 ZdStats is a flexible statistics plugin for wordpress zdstats/tags/1.1/zd_stats.php
r45174 r45233 184 184 global $wpdb; 185 185 $table_name = $wpdb->prefix.'zd_stats_entry'; 186 187 if ($_POST) { 188 $EntryList=$_POST['mark']; 189 if ($EntryList) { 190 foreach ($EntryList as $ID => $EntryID) { 191 $Entries.=$EntryID.', '; 192 } 193 $Entries=substr($Entries, 0, -2); 194 $query="DELETE FROM $table_name where EntryID in ($Entries)"; 195 $wpdb->query($query); 196 } 197 $_GET['hour']=$_POST['hour']; 198 $_GET['nb_days']=$_POST['nb_days']; 199 $_GET['start_date']=$_POST['start_date']; 200 $_GET['view_all']=$_POST['view_all']; 201 } 202 186 203 $Nb_Days=$_GET['nb_days']; 187 204 $Start_Date=($_GET['start_date']) ? $_GET['start_date'] : 0; … … 200 217 $row=$wpdb->get_results($query, ARRAY_A); 201 218 if ($row) { 219 echo '<form action="'.$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__).'" method="post">'; 220 echo '<input type="hidden" name="ftc" value="pageviews" />'; 221 echo '<input type="hidden" name="hour" value="'.$_GET['hour'].'" />'; 222 echo '<input type="hidden" name="nb_days" value="'.$_GET['nb_days'].'" />'; 223 echo '<input type="hidden" name="start_date" value="'.$_GET['start_date'].'" />'; 224 echo '<input type="hidden" name="view_all" value="'.$_GET['view_all'].'" />'; 202 225 echo '<table class="widefat">'; 203 echo '<tr><td colspan="4"><h2>'.sprintf(__('Pageviews for %s at %s','zd_stats'),date_i18n(get_option('date_format'),strtotime($LastWeek)), $Hour."h").'</h2></td></tr>'; 226 echo '<tr><td colspan="3"><h2>'.sprintf(__('Pageviews for %s at %s','zd_stats'),date_i18n(get_option('date_format'),strtotime($LastWeek)), $Hour."h").'</h2></td>'; 227 echo '<td colspan="2"><input type="submit" value="'.__('Delete marked entries','zd_stats').' *" /></td>'; 228 echo '</tr>'; 204 229 echo '<tr>'; 205 230 echo '<td >'.__('Date & Time','zd_stats').'</td>'; … … 207 232 echo '<td >'.__('IP Adress','zd_stats').'</td>'; 208 233 echo '<td >'.__('Referer','zd_stats').'</td>'; 234 echo '<td >'.__('Mark','zd_stats').'</td>'; 209 235 echo '</tr>'; 210 236 foreach ($row as $Index => $Values) { … … 216 242 echo '<td style="padding: 0px;"><a href="'.$Values['Referer'].'" title="'.$Values['Referer'].'">'.zd_stats_ExtractSiteName($Values['Referer']).'</a></td>'; 217 243 else echo '<td style="padding: 0px;"> - </td>'; 244 echo '<td style="padding: 0px; text-align: right;"><input type="checkbox" name="mark[]" value="'.$Values['EntryID'].'" /></td>'; 218 245 echo '</tr>'; 219 246 } 220 247 echo '</table>'; 248 echo '<br /><em>'.__('*: Note this is an irreversible operation','zd_stats').'</em>'; 249 echo '</form>'; 221 250 } 222 251 } else if ($_GET['detail']) { … … 967 996 global $wpdb; 968 997 $table_name = $wpdb->prefix.'zd_stats_entry'; 998 999 1000 if ($_POST['option']=="delete") { 1001 $IP=base64_decode($_POST['IP']); 1002 $_GET['NbDays']=$_POST['NbDays']; 1003 $_GET['start_date']=$_POST['start_date']; 1004 $_GET['view_all']=$_POST['view_all']; 1005 $_GET['IP']=$_POST['IP']; 1006 $query="DELETE FROM $table_name where IP='$IP';"; 1007 $wpdb->query($query); 1008 } 1009 1010 969 1011 $BaseURL=$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__); 970 1012 $NbDays=$_GET['NbDays']; … … 981 1023 $query="SELECT * FROM $table_name WHERE IP='$IPAdress' AND `DateTime`<'$Today' AND `DateTime`>'$LastWeek' order by DateTime"; 982 1024 $result=$wpdb->get_results($query, ARRAY_A); 1025 echo '<form action="'.$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__).'" method="post" style="text-align: right;">'; 1026 echo '<input type="hidden" name="fct" value="navsum" />'; 1027 echo '<input type="hidden" name="option" value="delete" />'; 1028 echo '<input type="hidden" name="IP" value="'.$_GET['IP'].'" />'; 1029 echo '<input type="hidden" name="NbDays" value="'.$_GET['NbDays'].'" />'; 1030 echo '<input type="hidden" name="start_date" value="'.$_GET['start_date'].'" />'; 1031 echo '<input type="hidden" name="view_all" value="'.$_GET['view_all'].'" />'; 1032 echo '<input type="submit" value="'.__('Delete all pageviews for this IP','zd_stats').' *" />'; 1033 echo '<br /><em>'.__('*: Note this is an irreversible operation','zd_stats').'</em>'; 1034 echo '</form>'; 983 1035 } 984 1036 … … 1013 1065 geoip_close($gi); 1014 1066 1015 echo '<tr><td style="width: 25%; background: #E4F2FD;">'.__('Geolocalization','zd_stats').'</td><td><img src="../'.PLUGINDIR . '/' . dirname(plugin_basename (__FILE__)) .'/flags/'.strtolower($CodePays).'.png"> '.$Pays.', '.$CityName.'</td></tr>';1067 echo '<tr><td style="width: 25%; background: #E4F2FD;">'.__('Geolocalization','zd_stats').'</td><td><img src="../'.PLUGINDIR . '/' . dirname(plugin_basename (__FILE__)) .'/flags/'.strtolower($CodePays).'.png"> <a href="http://maps.google.com/maps?f=q&q='.$Pays.', '.$CityName.'"/>'.$Pays.', '.$CityName.'</a></td></tr>'; 1016 1068 echo '</table>'; 1017 1069 echo '<table class="widefat">'; zdstats/trunk/lang/zd_stats-fr_FR.po
r45175 r45233 4 4 "Report-Msgid-Bugs-To: \n" 5 5 "POT-Creation-Date: 2008-05-02 14:06+0200\n" 6 "PO-Revision-Date: 2008-05-1 0 15:21+0100\n"6 "PO-Revision-Date: 2008-05-11 13:34+0100\n" 7 7 "Last-Translator: Anthony PETITBOIS <anthony@zen-dreams.com>\n" 8 8 "Language-Team: \n" … … 205 205 msgstr "Détails non trouvés, nous sommes désolé de ce contre-temps" 206 206 207 msgid "Delete marked entries" 208 msgstr "Supprime les entrées cochées" 209 210 msgid "Mark" 211 msgstr "Cocher" 212 213 msgid "Delete all pageviews for this IP" 214 msgstr "Supprime toutes les visites de cette IP" 215 216 msgid "*: Note this is an irreversible operation" 217 msgstr "*: Veuillez noter que cette opération est irréversible" 218 zdstats/trunk/lang/zdstats.pot
r45175 r45233 262 262 msgid "Details not found, sorry for the inconvenience" 263 263 msgstr "" 264 265 #: 266 msgid "Delete marked entries" 267 msgstr "" 268 269 #: 270 msgid "Mark" 271 msgstr "" 272 273 #: 274 msgid "Delete all pageviews for this IP" 275 msgstr "" 276 277 #: 278 msgid "*: Note this is an irreversible operation" 279 msgstr "" zdstats/trunk/readme.txt
r45220 r45233 5 5 Requires at least: 2.5.0 6 6 Tested up to: 2.5.1 7 Stable tag: 1. 07 Stable tag: 1.1 8 8 9 9 ZdStats is a flexible statistics plugin for wordpress zdstats/trunk/zd_stats.php
r45174 r45233 184 184 global $wpdb; 185 185 $table_name = $wpdb->prefix.'zd_stats_entry'; 186 187 if ($_POST) { 188 $EntryList=$_POST['mark']; 189 if ($EntryList) { 190 foreach ($EntryList as $ID => $EntryID) { 191 $Entries.=$EntryID.', '; 192 } 193 $Entries=substr($Entries, 0, -2); 194 $query="DELETE FROM $table_name where EntryID in ($Entries)"; 195 $wpdb->query($query); 196 } 197 $_GET['hour']=$_POST['hour']; 198 $_GET['nb_days']=$_POST['nb_days']; 199 $_GET['start_date']=$_POST['start_date']; 200 $_GET['view_all']=$_POST['view_all']; 201 } 202 186 203 $Nb_Days=$_GET['nb_days']; 187 204 $Start_Date=($_GET['start_date']) ? $_GET['start_date'] : 0; … … 200 217 $row=$wpdb->get_results($query, ARRAY_A); 201 218 if ($row) { 219 echo '<form action="'.$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__).'" method="post">'; 220 echo '<input type="hidden" name="ftc" value="pageviews" />'; 221 echo '<input type="hidden" name="hour" value="'.$_GET['hour'].'" />'; 222 echo '<input type="hidden" name="nb_days" value="'.$_GET['nb_days'].'" />'; 223 echo '<input type="hidden" name="start_date" value="'.$_GET['start_date'].'" />'; 224 echo '<input type="hidden" name="view_all" value="'.$_GET['view_all'].'" />'; 202 225 echo '<table class="widefat">'; 203 echo '<tr><td colspan="4"><h2>'.sprintf(__('Pageviews for %s at %s','zd_stats'),date_i18n(get_option('date_format'),strtotime($LastWeek)), $Hour."h").'</h2></td></tr>'; 226 echo '<tr><td colspan="3"><h2>'.sprintf(__('Pageviews for %s at %s','zd_stats'),date_i18n(get_option('date_format'),strtotime($LastWeek)), $Hour."h").'</h2></td>'; 227 echo '<td colspan="2"><input type="submit" value="'.__('Delete marked entries','zd_stats').' *" /></td>'; 228 echo '</tr>'; 204 229 echo '<tr>'; 205 230 echo '<td >'.__('Date & Time','zd_stats').'</td>'; … … 207 232 echo '<td >'.__('IP Adress','zd_stats').'</td>'; 208 233 echo '<td >'.__('Referer','zd_stats').'</td>'; 234 echo '<td >'.__('Mark','zd_stats').'</td>'; 209 235 echo '</tr>'; 210 236 foreach ($row as $Index => $Values) { … … 216 242 echo '<td style="padding: 0px;"><a href="'.$Values['Referer'].'" title="'.$Values['Referer'].'">'.zd_stats_ExtractSiteName($Values['Referer']).'</a></td>'; 217 243 else echo '<td style="padding: 0px;"> - </td>'; 244 echo '<td style="padding: 0px; text-align: right;"><input type="checkbox" name="mark[]" value="'.$Values['EntryID'].'" /></td>'; 218 245 echo '</tr>'; 219 246 } 220 247 echo '</table>'; 248 echo '<br /><em>'.__('*: Note this is an irreversible operation','zd_stats').'</em>'; 249 echo '</form>'; 221 250 } 222 251 } else if ($_GET['detail']) { … … 967 996 global $wpdb; 968 997 $table_name = $wpdb->prefix.'zd_stats_entry'; 998 999 1000 if ($_POST['option']=="delete") { 1001 $IP=base64_decode($_POST['IP']); 1002 $_GET['NbDays']=$_POST['NbDays']; 1003 $_GET['start_date']=$_POST['start_date']; 1004 $_GET['view_all']=$_POST['view_all']; 1005 $_GET['IP']=$_POST['IP']; 1006 $query="DELETE FROM $table_name where IP='$IP';"; 1007 $wpdb->query($query); 1008 } 1009 1010 969 1011 $BaseURL=$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__); 970 1012 $NbDays=$_GET['NbDays']; … … 981 1023 $query="SELECT * FROM $table_name WHERE IP='$IPAdress' AND `DateTime`<'$Today' AND `DateTime`>'$LastWeek' order by DateTime"; 982 1024 $result=$wpdb->get_results($query, ARRAY_A); 1025 echo '<form action="'.$_SERVER['PHP_SELF'].'?page='.plugin_basename (__FILE__).'" method="post" style="text-align: right;">'; 1026 echo '<input type="hidden" name="fct" value="navsum" />'; 1027 echo '<input type="hidden" name="option" value="delete" />'; 1028 echo '<input type="hidden" name="IP" value="'.$_GET['IP'].'" />'; 1029 echo '<input type="hidden" name="NbDays" value="'.$_GET['NbDays'].'" />'; 1030 echo '<input type="hidden" name="start_date" value="'.$_GET['start_date'].'" />'; 1031 echo '<input type="hidden" name="view_all" value="'.$_GET['view_all'].'" />'; 1032 echo '<input type="submit" value="'.__('Delete all pageviews for this IP','zd_stats').' *" />'; 1033 echo '<br /><em>'.__('*: Note this is an irreversible operation','zd_stats').'</em>'; 1034 echo '</form>'; 983 1035 } 984 1036 … … 1013 1065 geoip_close($gi); 1014 1066 1015 echo '<tr><td style="width: 25%; background: #E4F2FD;">'.__('Geolocalization','zd_stats').'</td><td><img src="../'.PLUGINDIR . '/' . dirname(plugin_basename (__FILE__)) .'/flags/'.strtolower($CodePays).'.png"> '.$Pays.', '.$CityName.'</td></tr>';1067 echo '<tr><td style="width: 25%; background: #E4F2FD;">'.__('Geolocalization','zd_stats').'</td><td><img src="../'.PLUGINDIR . '/' . dirname(plugin_basename (__FILE__)) .'/flags/'.strtolower($CodePays).'.png"> <a href="http://maps.google.com/maps?f=q&q='.$Pays.', '.$CityName.'"/>'.$Pays.', '.$CityName.'</a></td></tr>'; 1016 1068 echo '</table>'; 1017 1069 echo '<table class="widefat">';
