Changeset 14541

Show
Ignore:
Timestamp:
06/26/07 07:45:07 (1 year ago)
Author:
GamerZ
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wp-stats/trunk/readme.html

    r13483 r14541  
    33<head>       
    44      <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    5       <title>WP-Stats 2.11 Readme</title> 
     5      <title>WP-Stats 2.20 Readme</title> 
    66      <style type="text/css" media="screen"> 
    77            /* Default Style */ 
     
    204204<div id="Container"> 
    205205      <!-- Title --> 
    206       <div id="Title">WP-Stats 2.11&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
     206      <div id="Title">WP-Stats 2.20&nbsp;&nbsp;&nbsp;<span style="color: #aaaaaa;">Readme</span></div> 
    207207 
    208208      <!-- Tabs --> 
     
    230230                        <script type="text/javascript"> 
    231231                              /* <![CDATA[*/ 
    232                               document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Stats%202.11%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
     232                              document.write(' <a href="mailto:gamerz84@hotmail.com?Subject=WP-Stats%202.20%20Support" title="EMail To gamerz84@hotmail.com">gamerz84@hotmail.com</a>'); 
    233233                              /* ]]> */ 
    234234                        </script> 
     
    243243                  <p> 
    244244                        <strong>Download:</strong><br /> 
    245                         <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=8" title="http://www.lesterchan.net/others/downloads.php?id=8">WP-Stats 2.11 For WordPress 2.1.x And Above</a><br /> 
     245                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads.php?id=8" title="http://www.lesterchan.net/others/downloads.php?id=8">WP-Stats 2.20 For WordPress 2.1.x And Above</a><br /> 
    246246                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-stats206.zip" title="http://www.lesterchan.net/others/downloads/wp-stats206.zip">WP-Stats 2.06 For WordPress 2.0.x</a><br /> 
    247247                        <strong>&raquo;</strong> <a href="http://www.lesterchan.net/others/downloads/wp-stats.zip" title="http://www.lesterchan.net/others/downloads/wp-stats.zip">WP-Stats 1.00 For WordPress 1.5.2 </a> 
     
    264264                  <p> 
    265265                        <strong>Updated:</strong><br /> 
    266                         <strong>&raquo;</strong> 1st June 2007 
     266                        <strong>&raquo;</strong> 1st October 2007 
    267267                  </p> 
    268268                  <p> 
     
    286286                  <ul> 
    287287                        <li> 
     288                              <strong>Version 2.20 (01-10-2007)</strong> 
     289                              <ul> 
     290                                    <li>NEW: Ability To Uninstall WP-Stats</li> 
     291                                    <li>NEW: Added WP-DownloadManager Stats</li> 
     292                              </ul> 
     293                        </li> 
     294                        <li> 
    288295                              <strong>Version 2.11 (01-06-2007)</strong> 
    289296                              <ul> 
     
    387394            <div id="Upgrade" style="display: none;"> 
    388395                  <div class="SubTitle">&raquo; Upgrade Instructions</div> 
    389                   <div class="SubSubTitle">From v1.0x To v2.11</div> 
     396                  <div class="SubSubTitle">From v1.0x To v2.20</div> 
    390397                  <ol> 
    391398                        <li> 
     
    458465      </div> 
    459466</div> 
    460 <p id="Copyright">WP-Stats 2.11<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
     467<p id="Copyright">WP-Stats 2.20<br />Copyright &copy; 2007 Lester 'GaMerZ' Chan. All Rights Reserved.</p> 
    461468</body> 
    462469</html> 
  • wp-stats/trunk/stats/stats-options.php

    r7971 r14541  
    33+----------------------------------------------------------------+ 
    44|                                                                                                                                         | 
    5 |     WordPress 2.1 Plugin: WP-Stats 2.1 1                                                          | 
     5|     WordPress 2.1 Plugin: WP-Stats 2.20                                                           | 
    66|     Copyright (c) 2007 Lester "GaMerZ" Chan                                                   | 
    77|                                                                                                                                         | 
     
    2121$base_name = plugin_basename('stats/stats-options.php'); 
    2222$base_page = 'admin.php?page='.$base_name; 
    23 $stats_mostlimit = intval(get_option('stats_mostlimit')); 
    24 $stats_display = get_option('stats_display'); 
    25  
    26 ### If Form Is Submitted 
    27 if($_POST['Submit']) { 
    28       $stats_url = addslashes(trim($_POST['stats_url'])); 
    29       $stats_mostlimit = intval(trim($_POST['stats_mostlimit'])); 
    30       $stats_display = $_POST['stats_display']; 
    31       if($stats_display) { 
    32             foreach($stats_display as $stat_display) { 
    33                   $stat_display = addslashes($stat_display); 
    34                   $stats_display_array[$stat_display] = 1; 
    35             } 
    36       } 
    37       $stats_display = $stats_display_array; 
    38       $update_stats_queries = array(); 
    39       $update_stats_text = array(); 
    40       $update_stats_queries[] = update_option('stats_url', $stats_url); 
    41       $update_stats_queries[] = update_option('stats_mostlimit', $stats_mostlimit); 
    42       $update_stats_queries[] = update_option('stats_display', $stats_display); 
    43       $update_stats_text[] = __('Stats URL', 'wp-stats'); 
    44       $update_stats_text[] = __('Stats Most Limit', 'wp-stats'); 
    45       $update_stats_text[] = __('Stats Display Options', 'wp-stats'); 
    46       $i=0; 
    47       $text = ''; 
    48       foreach($update_stats_queries as $update_stats_query) { 
    49             if($update_stats_query) { 
    50                   $text .= '<font color="green">'.$update_stats_text[$i].' '.__('Updated', 'wp-stats').'</font><br />'; 
    51             } 
    52             $i++; 
    53       } 
    54       if(empty($text)) { 
    55             $text = '<font color="red">'.__('No Stats Option Updated', 'wp-stats').'</font>'; 
     23$mode = trim($_GET['mode']); 
     24$stats_settings = array('stats_mostlimit', 'stats_display', 'stats_url', 'widget_stats'); 
     25 
     26 
     27### Form Processing  
     28if(!empty($_POST['do'])) { 
     29      // Decide What To Do 
     30      switch($_POST['do']) { 
     31            case __('Update Options', 'wp-stats'): 
     32                  $stats_url = addslashes(trim($_POST['stats_url'])); 
     33                  $stats_mostlimit = intval(trim($_POST['stats_mostlimit'])); 
     34                  $stats_display = $_POST['stats_display']; 
     35                  if($stats_display) { 
     36                        foreach($stats_display as $stat_display) { 
     37                              $stat_display = addslashes($stat_display); 
     38                              $stats_display_array[$stat_display] = 1; 
     39                        } 
     40                  } 
     41                  $stats_display = $stats_display_array; 
     42                  $update_stats_queries = array(); 
     43                  $update_stats_text = array(); 
     44                  $update_stats_queries[] = update_option('stats_url', $stats_url); 
     45                  $update_stats_queries[] = update_option('stats_mostlimit', $stats_mostlimit); 
     46                  $update_stats_queries[] = update_option('stats_display', $stats_display); 
     47                  $update_stats_text[] = __('Stats URL', 'wp-stats'); 
     48                  $update_stats_text[] = __('Stats Most Limit', 'wp-stats'); 
     49                  $update_stats_text[] = __('Stats Display Options', 'wp-stats'); 
     50                  $i=0; 
     51                  $text = ''; 
     52                  foreach($update_stats_queries as $update_stats_query) { 
     53                        if($update_stats_query) { 
     54                              $text .= '<font color="green">'.$update_stats_text[$i].' '.__('Updated', 'wp-stats').'</font><br />'; 
     55                        } 
     56                        $i++; 
     57                  } 
     58                  if(empty($text)) { 
     59                        $text = '<font color="red">'.__('No Stats Option Updated', 'wp-stats').'</font>'; 
     60                  } 
     61                  break; 
     62            // Uninstall WP-Stats 
     63            case __('UNINSTALL WP-Stats', 'wp-stats') : 
     64                  if(trim($_POST['uninstall_stats_yes']) == 'yes') { 
     65                        echo '<div id="message" class="updated fade">'; 
     66                        echo '<p>'; 
     67                        foreach($stats_settings as $setting) { 
     68                              $delete_setting = delete_option($setting); 
     69                              if($delete_setting) { 
     70                                    echo '<font color="green">'; 
     71                                    printf(__('Setting Key \'%s\' has been deleted.', 'wp-stats'), "<strong><em>{$setting}</em></strong>"); 
     72                                    echo '</font><br />'; 
     73                              } else { 
     74                                    echo '<font color="red">'; 
     75                                    printf(__('Error deleting Setting Key \'%s\'.', 'wp-stats'), "<strong><em>{$setting}</em></strong>"); 
     76                                    echo '</font><br />'; 
     77                              } 
     78                        } 
     79                        echo '</p>'; 
     80                        echo '</div>';  
     81                        $mode = 'end-UNINSTALL'; 
     82                  } 
     83                  break; 
    5684      } 
    5785} 
     86 
     87 
     88### Determines Which Mode It Is 
     89switch($mode) { 
     90            //  Deactivating WP-Stats 
     91            case 'end-UNINSTALL': 
     92                  $deactivate_url = 'plugins.php?action=deactivate&amp;plugin=stats/stats.php'; 
     93                  if(function_exists('wp_nonce_url')) {  
     94                        $deactivate_url = wp_nonce_url($deactivate_url, 'deactivate-plugin_stats/stats.php'); 
     95                  } 
     96                  echo '<div class="wrap">'; 
     97                  echo '<h2>'.__('Uninstall WP-Stats', 'wp-stats').'</h2>'; 
     98                  echo '<p><strong>'.sprintf(__('<a href="%s">Click Here</a> To Finish The Uninstallation And WP-Stats Will Be Deactivated Automatically.', 'wp-stats'), $deactivate_url).'</strong></p>'; 
     99                  echo '</div>'; 
     100                  break; 
     101      // Main Page 
     102      default: 
     103            $stats_mostlimit = intval(get_option('stats_mostlimit')); 
     104            $stats_display = get_option('stats_display'); 
    58105?> 
    59106<?php if(!empty($text)) { echo '<!-- Last Action --><div id="message" class="updated fade"><p>'.$text.'</p></div>'; } ?> 
     107<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">  
    60108<div class="wrap">  
    61109      <h2><?php _e('Stats Options', 'wp-stats'); ?></h2>  
    62       <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">  
    63             <fieldset class="options"> 
    64                   <legend><?php _e('Stats Options', 'wp-stats'); ?></legend> 
    65                   <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
    66                          <tr valign="top"> 
    67                               <th align="left" width="30%"><?php _e('Stats URL', 'wp-stats'); ?></th> 
    68                               <td align="left"> 
    69                                     <input type="text" name="stats_url" value="<?php echo get_option('stats_url'); ?>" size="50" /><br /><?php _e('URL To Stats Page.<br />Example: http://www.yoursite.com/blogs/stats/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-stats'); ?> 
    70                               </td> 
    71                         </tr> 
    72                          <tr valign="top"> 
    73                               <th align="left" width="30%"><?php _e('Stats Most Limit', 'wp-stats'); ?></th> 
    74                               <td align="left"> 
    75                                     <input type="text" name="stats_mostlimit" value="<?php echo $stats_mostlimit ?>" size="2" /><br /><?php _e('Top X Stats, where X is the most limit.', 'wp-stats'); ?> 
    76                               </td> 
    77                         </tr> 
    78                          <tr valign="top"> 
    79                               <th align="left" width="30%"><?php _e('Type Of Stats To Display', 'wp-stats'); ?></th> 
    80                               <td align="left"> 
    81                                     <p><strong><?php _e('General Stats', 'wp-stats'); ?></strong></p> 
    82                                     <input type="checkbox" name="stats_display[]" value="total_stats"<?php checked(1, $stats_display['total_stats']); ?> />&nbsp;&nbsp;Total<br /> 
    83                                     <p><strong><?php _e('Plugin Stats', 'wp-stats'); ?></strong></p> 
    84                                     <?php  
    85                                           if(function_exists('wp_email')) { 
    86                                                 echo '<input type="checkbox" name="stats_display[]" value="email"'; 
    87                                                 checked(1, $stats_display['email']); 
    88                                                 echo ' />&nbsp;&nbsp;'.__('WP-EMail', 'wp-stats').'<br />'."\n"; 
    89                                           } 
    90                                           if(function_exists('get_poll')) { 
    91                                                 echo '<input type="checkbox" name="stats_display[]" value="polls"'; 
    92                                                 checked(1, $stats_display['polls']); 
    93                                                 echo ' />&nbsp;&nbsp;'.__('WP-Polls', 'wp-stats').'<br />'."\n"; 
    94                                           } 
    95                                           if(function_exists('the_ratings')) { 
    96                                                 echo '<input type="checkbox" name="stats_display[]" value="ratings"'; 
    97                                                 checked(1, $stats_display['ratings']); 
    98                                                 echo ' />&nbsp;&nbsp;'.__('WP-PostRatings', 'wp-stats').'<br />'."\n"; 
    99                                           } 
    100                                           if(function_exists('the_views')) { 
    101                                                 echo '<input type="checkbox" name="stats_display[]" value="views"'; 
    102                                                 checked(1, $stats_display['views']); 
    103                                                 echo ' />&nbsp;&nbsp;'.__('WP-PostViews', 'wp-stats').'<br />'."\n"; 
    104                                           } 
    105                                           if(function_exists('useronline')) { 
    106                                                 echo '<input type="checkbox" name="stats_display[]" value="useronline"'; 
    107                                                 checked(1, $stats_display['views']); 
    108                                                 echo ' />&nbsp;&nbsp;'.__('WP-UserOnline', 'wp-stats').'<br />'."\n"; 
    109                                           } 
    110                                     ?> 
    111                                     <p><strong><?php printf(__('Top %s Post Stats', 'wp-stats'), get_option('stats_mostlimit')); ?></strong></p> 
    112                                     <input type="checkbox" name="stats_display[]" value="recent_posts"<?php checked(1, $stats_display['recent_posts']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Posts', 'wp-stats'); ?><br /> 
    113                                     <input type="checkbox" name="stats_display[]" value="recent_commtents"<?php checked(1, $stats_display['recent_commtents']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Comments', 'wp-stats'); ?><br /> 
    114                                     <input type="checkbox" name="stats_display[]" value="commented_post"<?php checked(1, $stats_display['commented_post']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Commented Posts', 'wp-stats'); ?><br /> 
    115                                     <?php  
    116                                           if(function_exists('wp_email')) { 
    117                                                 echo '<input type="checkbox" name="stats_display[]" value="emailed_most"'; 
    118                                                 checked(1, $stats_display['emailed_most']); 
    119                                                 echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Emailed Posts', 'wp-stats').'<br />'."\n"; 
    120                                           } 
    121                                           if(function_exists('the_ratings')) { 
    122                                                 echo '<input type="checkbox" name="stats_display[]" value="rated_highest"'; 
    123                                                 checked(1, $stats_display['rated_highest']); 
    124                                                 echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Highest Rated Posts', 'wp-stats').'<br />'."\n"; 
    125                                                 echo '<input type="checkbox" name="stats_display[]" value="rated_most"'; 
    126                                                 checked(1, $stats_display['rated_most']); 
    127                                                 echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Rated Posts', 'wp-stats').'<br />'."\n"; 
    128                                           } 
    129                                           if(function_exists('the_views')) { 
    130                                                 echo '<input type="checkbox" name="stats_display[]" value="viewed_most"'; 
    131                                                 checked(1, $stats_display['viewed_most']); 
    132                                                 echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Viewed Posts', 'wp-stats').'<br />'."\n"; 
    133                                           } 
    134                                     ?> 
    135                                     <p><strong><?php _e('Authors Stats', 'wp-stats'); ?></strong></p> 
    136                                     <input type="checkbox" name="stats_display[]" value="authors"<?php checked(1, $stats_display['authors']); ?> />&nbsp;&nbsp;<?php _e('Authors', 'wp-stats'); ?><br /> 
    137                                     <p><strong><?php _e('Comments\' Members Stats', 'wp-stats'); ?></strong></p> 
    138                                     <input type="checkbox" name="stats_display[]" value="comment_members"<?php checked(1, $stats_display['comment_members']); ?> />&nbsp;&nbsp;<?php _e('Comment Members', 'wp-stats'); ?><br /> 
    139                                     <p><strong><?php _e('Misc Stats', 'wp-stats'); ?></strong></p> 
    140                                     <input type="checkbox" name="stats_display[]" value="post_cats"<?php checked(1, $stats_display['post_cats']); ?> />&nbsp;&nbsp;<?php _e('Post Categories', 'wp-stats'); ?><br /> 
    141                                     <input type="checkbox" name="stats_display[]" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> />&nbsp;&nbsp;<?php _e('Link Categories', 'wp-stats'); ?><br /> 
    142                               </td> 
    143                         </tr> 
    144                   </table> 
    145             </fieldset> 
    146             <div align="center"> 
    147                   <input type="submit" name="Submit" class="button" value="<?php _e('Update Options'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="Cancel" class="button" onclick="javascript:history.go(-1)" />  
    148             </div> 
    149       </form>  
     110      <fieldset class="options"> 
     111            <legend><?php _e('Stats Options', 'wp-stats'); ?></legend> 
     112            <table width="100%"  border="0" cellspacing="3" cellpadding="3"> 
     113                   <tr valign="top"> 
     114                        <th align="left" width="30%"><?php _e('Stats URL', 'wp-stats'); ?></th> 
     115                        <td align="left"> 
     116                              <input type="text" name="stats_url" value="<?php echo get_option('stats_url'); ?>" size="50" /><br /><?php _e('URL To Stats Page.<br />Example: http://www.yoursite.com/blogs/stats/<br />Example: http://www.yoursite.com/blogs/?page_id=2', 'wp-stats'); ?> 
     117                        </td> 
     118                  </tr> 
     119                   <tr valign="top"> 
     120                        <th align="left" width="30%"><?php _e('Stats Most Limit', 'wp-stats'); ?></th> 
     121                        <td align="left"> 
     122                              <input type="text" name="stats_mostlimit" value="<?php echo $stats_mostlimit ?>" size="2" /><br /><?php _e('Top X Stats, where X is the most limit.', 'wp-stats'); ?> 
     123                        </td> 
     124                  </tr> 
     125                   <tr valign="top"> 
     126                        <th align="left" width="30%"><?php _e('Type Of Stats To Display', 'wp-stats'); ?></th> 
     127                        <td align="left"> 
     128                              <p><strong><?php _e('General Stats', 'wp-stats'); ?></strong></p> 
     129                              <input type="checkbox" name="stats_display[]" value="total_stats"<?php checked(1, $stats_display['total_stats']); ?> />&nbsp;&nbsp;Total<br /> 
     130                              <p><strong><?php _e('Plugin Stats', 'wp-stats'); ?></strong></p> 
     131                              <?php  
     132                                    if(function_exists('wp_email')) { 
     133                                          echo '<input type="checkbox" name="stats_display[]" value="email"'; 
     134                                          checked(1, $stats_display['email']); 
     135                                          echo ' />&nbsp;&nbsp;'.__('WP-EMail', 'wp-stats').'<br />'."\n"; 
     136                                    } 
     137                                    if(function_exists('get_poll')) { 
     138                                          echo '<input type="checkbox" name="stats_display[]" value="polls"'; 
     139                                          checked(1, $stats_display['polls']); 
     140                                          echo ' />&nbsp;&nbsp;'.__('WP-Polls', 'wp-stats').'<br />'."\n"; 
     141                                    } 
     142                                    if(function_exists('the_ratings')) { 
     143                                          echo '<input type="checkbox" name="stats_display[]" value="ratings"'; 
     144                                          checked(1, $stats_display['ratings']); 
     145                                          echo ' />&nbsp;&nbsp;'.__('WP-PostRatings', 'wp-stats').'<br />'."\n"; 
     146                                    } 
     147                                    if(function_exists('the_views')) { 
     148                                          echo '<input type="checkbox" name="stats_display[]" value="views"'; 
     149                                          checked(1, $stats_display['views']); 
     150                                          echo ' />&nbsp;&nbsp;'.__('WP-PostViews', 'wp-stats').'<br />'."\n"; 
     151                                    } 
     152                                    if(function_exists('useronline')) { 
     153                                          echo '<input type="checkbox" name="stats_display[]" value="useronline"'; 
     154                                          checked(1, $stats_display['useronline']); 
     155                                          echo ' />&nbsp;&nbsp;'.__('WP-UserOnline', 'wp-stats').'<br />'."\n"; 
     156                                    } 
     157                                    if(function_exists('download_file')) { 
     158                                          echo '<input type="checkbox" name="stats_display[]" value="downloads"'; 
     159                                          checked(1, $stats_display['downloads']); 
     160                                          echo ' />&nbsp;&nbsp;'.__('WP-DownloadManager', 'wp-stats').'<br />'."\n"; 
     161                                    } 
     162                              ?> 
     163                              <p><strong><?php printf(__('Top %s Post Stats', 'wp-stats'), get_option('stats_mostlimit')); ?></strong></p> 
     164                              <input type="checkbox" name="stats_display[]" value="recent_posts"<?php checked(1, $stats_display['recent_posts']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Posts', 'wp-stats'); ?><br /> 
     165                              <input type="checkbox" name="stats_display[]" value="recent_commtents"<?php checked(1, $stats_display['recent_commtents']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Recent Comments', 'wp-stats'); ?><br /> 
     166                              <?php 
     167                                    if(function_exists('download_file')) { 
     168                                          echo '<input type="checkbox" name="stats_display[]" value="recent_downloads"'; 
     169                                          checked(1, $stats_display['recent_downloads']); 
     170                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Recent Downloads', 'wp-stats').'<br />'."\n"; 
     171                                    } 
     172                              ?> 
     173                              <input type="checkbox" name="stats_display[]" value="commented_post"<?php checked(1, $stats_display['commented_post']); ?> />&nbsp;&nbsp;<?php echo $stats_mostlimit ?> <?php _e('Most Commented Posts', 'wp-stats'); ?><br /> 
     174                              <?php  
     175                                    if(function_exists('wp_email')) { 
     176                                          echo '<input type="checkbox" name="stats_display[]" value="emailed_most"'; 
     177                                          checked(1, $stats_display['emailed_most']); 
     178                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Emailed Posts', 'wp-stats').'<br />'."\n"; 
     179                                    } 
     180                                    if(function_exists('the_ratings')) { 
     181                                          echo '<input type="checkbox" name="stats_display[]" value="rated_highest"'; 
     182                                          checked(1, $stats_display['rated_highest']); 
     183                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Highest Rated Posts', 'wp-stats').'<br />'."\n"; 
     184                                          echo '<input type="checkbox" name="stats_display[]" value="rated_most"'; 
     185                                          checked(1, $stats_display['rated_most']); 
     186                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Rated Posts', 'wp-stats').'<br />'."\n"; 
     187                                    } 
     188                                    if(function_exists('the_views')) { 
     189                                          echo '<input type="checkbox" name="stats_display[]" value="viewed_most"'; 
     190                                          checked(1, $stats_display['viewed_most']); 
     191                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Viewed Posts', 'wp-stats').'<br />'."\n"; 
     192                                    } 
     193                                    if(function_exists('download_file')) { 
     194                                          echo '<input type="checkbox" name="stats_display[]" value="downloaded_most"'; 
     195                                          checked(1, $stats_display['downloaded_most']); 
     196                                          echo ' />&nbsp;&nbsp;'.$stats_mostlimit.' '.__('Most Downloaded File', 'wp-stats').'<br />'."\n"; 
     197                                    } 
     198                              ?> 
     199                              <p><strong><?php _e('Authors Stats', 'wp-stats'); ?></strong></p> 
     200                              <input type="checkbox" name="stats_display[]" value="authors"<?php checked(1, $stats_display['authors']); ?> />&nbsp;&nbsp;<?php _e('Authors', 'wp-stats'); ?><br /> 
     201                              <p><strong><?php _e('Comments\' Members Stats', 'wp-stats'); ?></strong></p> 
     202                              <input type="checkbox" name="stats_display[]" value="comment_members"<?php checked(1, $stats_display['comment_members']); ?> />&nbsp;&nbsp;<?php _e('Comment Members', 'wp-stats'); ?><br /> 
     203                              <p><strong><?php _e('Misc Stats', 'wp-stats'); ?></strong></p> 
     204                              <input type="checkbox" name="stats_display[]" value="post_cats"<?php checked(1, $stats_display['post_cats']); ?> />&nbsp;&nbsp;<?php _e('Post Categories', 'wp-stats'); ?><br /> 
     205                              <input type="checkbox" name="stats_display[]" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> />&nbsp;&nbsp;<?php _e('Link Categories', 'wp-stats'); ?><br /> 
     206                        </td> 
     207                  </tr> 
     208            </table> 
     209      </fieldset> 
     210      <div align="center"> 
     211            <input type="submit" name="do" class="button" value="<?php _e('Update Options', 'wp-stats'); ?>" />&nbsp;&nbsp;<input type="button" name="cancel" value="<?php _e('Cancel', 'wp-stats'); ?>" class="button" onclick="javascript:history.go(-1)" />  
     212      </div> 
     213</div> 
     214</form> 
     215 
     216<!-- Uninstall WP-Stats --> 
     217<form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>">  
     218<div class="wrap">  
     219      <h2><?php _e('Uninstall WP-Stats', 'wp-stats'); ?></h2> 
     220      <p style="text-align: left;"> 
     221            <?php _e('Deactivating WP-Stats plugin does not remove any data that may have been created, such as the stats options. To completely remove this plugin, you can uninstall it here.', 'wp-stats'); ?> 
     222      </p> 
     223      <p style="text-align: left; color: red"> 
     224            <strong><?php _e('WARNING:', 'wp-stats'); ?></strong><br /> 
     225            <?php _e('Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first.', 'wp-stats'); ?> 
     226      </p> 
     227      <p style="text-align: left; color: red"> 
     228            <strong><?php _e('The following WordPress Options will be DELETED:', 'wp-stats'); ?></strong><br /> 
     229      </p> 
     230      <table width="70%"  border="0" cellspacing="3" cellpadding="3"> 
     231            <tr class="thead"> 
     232                  <td align="center"><strong><?php _e('WordPress Options', 'wp-stats'); ?></strong></td> 
     233            </tr> 
     234            <tr> 
     235                  <td valign="top" style="background-color: #eee;"> 
     236                        <ol> 
     237                        <?php 
     238                              foreach($stats_settings as $settings) { 
     239                                    echo '<li>'.$settings.'</li>'."\n"; 
     240                              } 
     241                        ?> 
     242                        </ol> 
     243                  </td> 
     244            </tr> 
     245      </table> 
     246      <p>&nbsp;</p> 
     247      <p style="text-align: center;"> 
     248            <input type="checkbox" name="uninstall_stats_yes" value="yes" />&nbsp;<?php _e('Yes', 'wp-stats'); ?><br /><br /> 
     249            <input type="submit" name="do" value="<?php _e('UNINSTALL WP-Stats', 'wp-stats'); ?>" class="button" onclick="return confirm('<?php _e('You Are About To Uninstall WP-Stats From WordPress.\nThis Action Is Not Reversible.\n\n Choose [Cancel] To Stop, [OK] To Uninstall.', 'wp-stats'); ?>')" /> 
     250      </p> 
    150251</div>  
     252</form> 
     253<?php 
     254} // End switch($mode) 
     255?> 
  • wp-stats/trunk/stats/stats-widget.php

    r13483 r14541  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Adds a Stats Widget to display stats from WP-Stats Plugin. You will need to activate WP-Stats first. 
    6 Version: 2.11 
     6Version: 2.20 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
  • wp-stats/trunk/stats/stats.php

    r13483 r14541  
    44Plugin URI: http://www.lesterchan.net/portfolio/programming.php 
    55Description: Display your WordPress blog statistics. Ranging from general total statistics, some of my plugins statistics and top 10 statistics. 
    6 Version: 2.11 
     6Version: 2.20 
    77Author: Lester 'GaMerZ' Chan 
    88Author URI: http://www.lesterchan.net 
     
    394394                  $temp_stats .= '<li><strong>'.get_totalcommentposters(false).'</strong> '.__('Different Nicks Were Represented In The Comments.', 'wp-stats').'</li>'."\n"; 
    395395                  $temp_stats .= '<li><strong>'.get_totallinks(false).'</strong> '.__('Links Were Added', 'wp-stats').'</li>'."\n"; 
     396                  if(function_exists('akismet_spam_count')) { 
     397                        $temp_stats .= '<li><strong>'.number_format(akismet_spam_count()).'</strong> '.__('Spams Blocked', 'wp-stats').'</li>'."\n"; 
     398                  } 
    396399                  $temp_stats .= '</ul>'."\n"; 
    397400            } 
  • wp-stats/trunk/stats/wp-stats.pot

    r13483 r14541  
    11msgid "" 
    22msgstr "" 
    3 "Project-Id-Version: WP-Stats 2.11\n" 
     3"Project-Id-Version: WP-Stats 2.20\n" 
    44"POT-Creation-Date: \n" 
    5 "PO-Revision-Date: 2007-05-31 19:46+0800\n" 
     5"PO-Revision-Date: 2007-06-26 15:44+0800\n" 
    66"Last-Translator: Lester 'GaMerZ' Chan <gamerz84@hotmail.com>\n" 
    77"Language-Team: Lester Chan <gamerz84@homtail.com>\n" 
     
    1515"X-Poedit-SearchPath-0: .\n" 
    1616 
    17 #: stats-options.php:43 
    18 #: stats-options.php:67 
     17#: stats-options.php:31 
     18#: stats-options.php:211 
     19msgid "Update Options" 
     20msgstr "" 
     21 
     22#: stats-options.php:47 
     23#: stats-options.php:114 
    1924msgid "Stats URL" 
    2025msgstr "" 
    2126 
    22 #: stats-options.php:44 
    23 #: stats-options.php:73 
     27#: stats-options.php:48 
     28#: stats-options.php:120 
    2429msgid "Stats Most Limit" 
    2530msgstr "" 
    2631 
    27 #: stats-options.php:45 
     32#: stats-options.php:49 
    2833msgid "Stats Display Options" 
    2934msgstr "" 
    3035 
    31 #: stats-options.php:50 
     36#: stats-options.php:54 
    3237msgid "Updated" 
    3338msgstr "" 
    3439 
    35 #: stats-options.php:55 
     40#: stats-options.php:59 
    3641msgid "No Stats Option Updated" 
    3742msgstr "" 
    3843 
    39 #: stats-options.php:61 
    40 #: stats-options.php:64 
     44#: stats-options.php:63 
     45#: stats-options.php:249 
     46msgid "UNINSTALL WP-Stats" 
     47msgstr "" 
     48 
     49#: stats-options.php:71 
     50#, php-format 
     51msgid "Setting Key '%s' has been deleted." 
     52msgstr "" 
     53 
     54#: stats-options.php:75 
     55#, php-format 
     56msgid "Error deleting Setting Key '%s'." 
     57msgstr "" 
     58 
     59#: stats-options.php:97 
     60#: stats-options.php:219 
     61msgid "Uninstall WP-Stats" 
     62msgstr "" 
     63 
     64#: stats-options.php:98 
     65#, php-format 
     66msgid "<a href=\"%s\">Click Here</a> To Finish The Uninstallation And WP-Stats Will Be Deactivated Automatically." 
     67msgstr "" 
     68 
     69#: stats-options.php:109 
     70#: stats-options.php:111 
    4171msgid "Stats Options" 
    4272msgstr "" 
    4373 
    44 #: stats-options.php:69 
     74#: stats-options.php:116 
    4575msgid "URL To Stats Page.<br />Example: http://www.yoursite.com/blogs/stats/<br />Example: http://www.yoursite.com/blogs/?page_id=2" 
    4676msgstr "" 
    4777 
    48 #: stats-options.php:75 
     78#: stats-options.php:122 
    4979msgid "Top X Stats, where X is the most limit." 
    5080msgstr "" 
    5181 
    52 #: stats-options.php:79 
     82#: stats-options.php:126 
    5383msgid "Type Of Stats To Display" 
    5484msgstr "" 
    5585 
    56 #: stats-options.php:81 
     86#: stats-options.php:128 
    5787#: stats.php:387 
    5888msgid "General Stats" 
    5989msgstr "" 
    6090 
    61 #: stats-options.php:83 
     91#: stats-options.php:130 
    6292msgid "Plugin Stats" 
    6393msgstr "" 
    6494 
    65 #: stats-options.php:88 
    66 #: stats.php:406 
     95#: stats-options.php:135 
     96#: stats.php:409 
    6797msgid "WP-EMail" 
    6898msgstr "" 
    6999 
    70 #: stats-options.php:93 
    71 #: stats.php:416 
     100#: stats-options.php:140 
     101#: stats.php:419 
    72102msgid "WP-Polls" 
    73103msgstr "" 
    74104 
    75 #: stats-options.php:98 
    76 #: stats.php:426 
     105#: stats-options.php:145 
     106#: stats.php:429 
    77107msgid "WP-PostRatings" 
    78108msgstr "" 
    79109 
    80 #: stats-options.php:103 
    81 #: stats.php:435 
     110#: stats-options.php:150 
     111#: stats.php:438 
    82112msgid "WP-PostViews" 
    83113msgstr "" 
    84114 
    85 #: stats-options.php:108 
    86 #: stats.php:443 
     115#: stats-options.php:155 
     116#: stats.php:446 
    87117msgid "WP-UserOnline" 
    88118msgstr "" 
    89119 
    90 #: stats-options.php:111 
    91 #: stats.php:453 
     120#: stats-options.php:160 
     121msgid "WP-DownloadManager" 
     122msgstr "" 
     123 
     124#: stats-options.php:163 
     125#: stats.php:456 
    92126#, php-format 
    93127msgid "Top %s Post Stats" 
    94128msgstr "" 
    95129 
    96 #: stats-options.php:112 
     130#: stats-options.php:164 
    97131msgid "Most Recent Posts" 
    98132msgstr "" 
    99133 
    100 #: stats-options.php:113 
     134#: stats-options.php:165 
    101135msgid "Most Recent Comments" 
    102136msgstr "" 
    103137 
    104 #: stats-options.php:114 
     138#: stats-options.php:170 
     139msgid "Most Recent Downloads" 
     140msgstr "" 
     141 
     142#: stats-options.php:173 
    105143#: stats-widget.php:202 
    106144msgid "Most Commented Posts" 
    107145msgstr "" 
    108146 
    109 #: stats-options.php:119 
     147#: stats-options.php:178 
    110148#: stats-widget.php:206 
    111149msgid "Most Emailed Posts" 
    112150msgstr "" 
    113151 
    114 #: stats-options.php:124 
     152#: stats-options.php:183 
    115153#: stats-widget.php:211 
    116154msgid "Highest Rated Posts" 
    117155msgstr "" 
    118156 
    119 #: stats-options.php:127 
     157#: stats-options.php:186 
    120158#: stats-widget.php:214 
    121159msgid "Most Rated Posts" 
    122160msgstr "" 
    123161 
    124 #: stats-options.php:132 
     162#: stats-options.php:191 
    125163#: stats-widget.php:219 
    126164msgid "Most Viewed Posts" 
    127165msgstr "" 
    128166 
    129 #: stats-options.php:135 
    130 #: stats.php:514 
     167#: stats-options.php:196 
     168msgid "Most Downloaded File" 
     169msgstr "" 
     170 
     171#: stats-options.php:199 
     172#: stats.php:517 
    131173msgid "Authors Stats" 
    132174msgstr "" 
    133175 
    134 #: stats-options.php:136 
     176#: stats-options.php:200 
    135177#: stats-widget.php:54 
    136 #: stats.php:515 
     178#: stats.php:518 
    137179msgid "Authors" 
    138180msgstr "" 
    139181 
    140 #: stats-options.php:137 
    141 #: stats.php:523 
     182#: stats-options.php:201 
     183#: stats.php:526 
    142184msgid "Comments' Members Stats" 
    143185msgstr "" 
    144186 
    145 #: stats-options.php:138 
    146 #: stats.php:524 
     187#: stats-options.php:202 
     188#: stats.php:527 
    147189msgid "Comment Members" 
    148190msgstr "" 
    149191 
    150 #: stats-options.php:139 
    151 #: stats.php:532 
     192#: stats-options.php:203 
     193#: stats.php:535 
    152194msgid "Misc Stats" 
    153195msgstr "" 
    154196 
    155 #: stats-options.php:140 
    156 #: stats.php:537 
     197#: stats-options.php:204 
     198#: stats.php:540 
    157199msgid "Post Categories" 
    158200msgstr "" 
    159201 
    160 #: stats-options.php:141 
    161 #: stats.php:545 
     202#: stats-options.php:205 
     203#: stats.php:548 
    162204msgid "Link Categories" 
    163205msgstr "" 
    164206 
    165 #: stats-options.php:147 
    166 msgid "Update Options" 
     207#: stats-options.php:211 
     208msgid "Cancel" 
     209msgstr "" 
     210 
     211#: stats-options.php:221 
     212msgid "Deactivating WP-Stats plugin does not remove any data that may have been created, such as the stats options. To completely remove this plugin, you can uninstall it here." 
     213msgstr "" 
     214 
     215#: stats-options.php:224 
     216msgid "WARNING:" 
     217msgstr "" 
     218 
     219#: stats-options.php:225 
     220msgid "Once uninstalled, this cannot be undone. You should use a Database Backup plugin of WordPress to back up all the data first." 
     221msgstr "" 
     222 
     223#: stats-options.php:228 
     224msgid "The following WordPress Options will be DELETED:" 
     225msgstr "" 
     226 
     227#: stats-options.php:232 
     228msgid "WordPress Options" 
     229msgstr "" 
     230 
     231#: stats-options.php:248 
     232#: stats-widget.php:230 
     233msgid "Yes" 
     234msgstr "" 
     235 
     236#: stats-options.php:249 
     237msgid "" 
     238"You Are About To Uninstall WP-Stats From WordPress.\\n" 
     239"This Action Is Not Reversible.\\n" 
     240"\\n" 
     241" Choose [Cancel] To Stop, [OK] To Uninstall." 
    167242msgstr "" 
    168243 
     
    262337#: stats-widget.php:226 
    263338msgid "Show Link To Full Stats?" 
    264 msgstr "" 
    265  
    266 #: stats-widget.php:230 
    267 msgid "Yes" 
    268339msgstr "" 
    269340 
     
    344415msgstr "" 
    345416 
    346 #: stats.php:401 
     417#: stats.php:397 
     418msgid "Spams Blocked" 
     419msgstr "" 
     420 
     421#: stats.php:404 
    347422msgid "Plugins Stats" 
    348423msgstr "" 
    349424 
    350 #: stats.php:408 
     425#: stats.php:411 
    351426msgid "Emails Were Sent." 
    352427msgstr "" 
    353428 
    354 #: stats.php:409 
     429#: stats.php:412 
    355430msgid "Emails Were Sent Successfully." 
    356431msgstr "" 
    357432 
    358 #: stats.php:410 
     433#: stats.php:413 
    359434msgid "Emails Failed To Send." 
    360435msgstr "" 
    361436 
    362 #: stats.php:418 
     437#: stats.php:421 
    363438msgid "Polls Were Created." 
    364439msgstr "" 
    365440 
    366