| 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 |
|---|
| | 28 | if(!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; |
|---|
| 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']); ?> /> 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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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']); ?> /> <?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']); ?> /> <?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']); ?> /> <?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 ' /> '.$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 ' /> '.$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 ' /> '.$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 ' /> '.$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']); ?> /> <?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']); ?> /> <?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']); ?> /> <?php _e('Post Categories', 'wp-stats'); ?><br /> |
|---|
| 141 | | <input type="checkbox" name="stats_display[]" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> /> <?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'); ?>" /> <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']); ?> /> 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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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 ' /> '.__('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']); ?> /> <?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']); ?> /> <?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 ' /> '.$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']); ?> /> <?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 ' /> '.$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 ' /> '.$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 ' /> '.$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 ' /> '.$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 ' /> '.$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']); ?> /> <?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']); ?> /> <?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']); ?> /> <?php _e('Post Categories', 'wp-stats'); ?><br /> |
|---|
| | 205 | <input type="checkbox" name="stats_display[]" value="link_cats"<?php checked(1, $stats_display['link_cats']); ?> /> <?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'); ?>" /> <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> </p> |
|---|
| | 247 | <p style="text-align: center;"> |
|---|
| | 248 | <input type="checkbox" name="uninstall_stats_yes" value="yes" /> <?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> |
|---|