| 89 | | $wp_iminr_default_options['account_id'] = ''; |
|---|
| 90 | | |
|---|
| 91 | | $wp_iminr_default_options['enable_tracker'] = false; |
|---|
| 92 | | $wp_iminr_default_options['tracker_in_meta'] = true; |
|---|
| 93 | | $wp_iminr_default_options['tracker_in_meta_before'] = '<li>'; |
|---|
| 94 | | $wp_iminr_default_options['tracker_in_meta_after'] = '</li>'; |
|---|
| 95 | | $wp_iminr_default_options['tracker_in_footer'] = false; |
|---|
| | 91 | $wp_iminr_default_options['wsap_uri'] = 'http://www.iminr.com/mining/wsMining.asmx?WSDL'; |
|---|
| | 92 | |
|---|
| | 93 | $wp_iminr_default_options['account_id'] = ''; |
|---|
| | 94 | |
|---|
| | 95 | $wp_iminr_default_options['enable_tracker'] = false; |
|---|
| | 96 | $wp_iminr_default_options['tracker_in_meta'] = true; |
|---|
| | 97 | $wp_iminr_default_options['tracker_in_meta_before'] = '<li>'; |
|---|
| | 98 | $wp_iminr_default_options['tracker_in_meta_after'] = '</li>'; |
|---|
| | 99 | $wp_iminr_default_options['tracker_in_footer'] = false; |
|---|
| 97 | | $wp_iminr_default_options['tracker_in_footer_after'] = ''; |
|---|
| 98 | | $wp_iminr_default_options['desable_for_roles'] = array('administrator'); |
|---|
| | 101 | $wp_iminr_default_options['tracker_in_footer_after'] = ''; |
|---|
| | 102 | $wp_iminr_default_options['desable_for_roles'] = array('administrator'); |
|---|
| | 103 | |
|---|
| | 104 | $wp_iminr_default_options['enable_wp_comments'] = false; |
|---|
| | 105 | $wp_iminr_default_options['enable_wp_comment_posts'] = false; |
|---|
| | 106 | $wp_iminr_default_options['enable_wp_comment_authors'] = false; |
|---|
| | 107 | $wp_iminr_default_options['enable_wp_trackbacks'] = false; |
|---|
| | 108 | $wp_iminr_default_options['enable_wp_trackback_posts'] = false; |
|---|
| | 109 | $wp_iminr_default_options['enable_wp_trackback_domains'] = false; |
|---|
| | 110 | |
|---|
| | 111 | $wp_iminr_default_options['error_variables'] = array(); |
|---|
| 125 | | $wp_iminr_options['account_id'] = $_POST['account_id']; |
|---|
| 126 | | |
|---|
| 127 | | $wp_iminr_options['enable_tracker'] = ($_POST['enable_tracker'] == 'true' ? true : false); |
|---|
| 128 | | $wp_iminr_options['tracker_in_meta'] = ($_POST['tracker_in'] == 'meta' ? true : false); |
|---|
| 129 | | $wp_iminr_options['tracker_in_meta_before'] = $_POST['tracker_in_meta_before']; |
|---|
| 130 | | $wp_iminr_options['tracker_in_meta_after'] = $_POST['tracker_in_meta_after']; |
|---|
| 131 | | $wp_iminr_options['tracker_in_footer'] = ($_POST['tracker_in'] == 'footer' ? true : false); |
|---|
| | 138 | $wp_iminr_options['account_id'] = $_POST['account_id']; |
|---|
| | 139 | |
|---|
| | 140 | $wp_iminr_options['enable_tracker'] = ($_POST['enable_tracker'] == 'true' ? true : false); |
|---|
| | 141 | $wp_iminr_options['tracker_in_meta'] = ($_POST['tracker_in'] == 'meta' ? true : false); |
|---|
| | 142 | $wp_iminr_options['tracker_in_meta_before'] = $_POST['tracker_in_meta_before']; |
|---|
| | 143 | $wp_iminr_options['tracker_in_meta_after'] = $_POST['tracker_in_meta_after']; |
|---|
| | 144 | $wp_iminr_options['tracker_in_footer'] = ($_POST['tracker_in'] == 'footer' ? true : false); |
|---|
| 133 | | $wp_iminr_options['tracker_in_footer_after'] = $_POST['tracker_in_footer_after']; |
|---|
| 134 | | $wp_iminr_options['desable_for_roles'] = ($_POST['desable_for_roles'] == NULL ? array() : $_POST['desable_for_roles']); |
|---|
| 135 | | |
|---|
| | 146 | $wp_iminr_options['tracker_in_footer_after'] = $_POST['tracker_in_footer_after']; |
|---|
| | 147 | $wp_iminr_options['desable_for_roles'] = ($_POST['desable_for_roles'] == NULL ? array() : $_POST['desable_for_roles']); |
|---|
| | 148 | |
|---|
| | 149 | $wp_iminr_options['enable_wp_comments'] = ($_POST['enable_wp_comments'] == 'true' ? true : false); |
|---|
| | 150 | $wp_iminr_options['enable_wp_comment_posts'] = ($_POST['enable_wp_comment_posts'] == 'true' ? true : false); |
|---|
| | 151 | $wp_iminr_options['enable_wp_comment_authors'] = ($_POST['enable_wp_comment_authors'] == 'true' ? true : false); |
|---|
| | 152 | $wp_iminr_options['enable_wp_trackbacks'] = ($_POST['enable_wp_trackbacks'] == 'true' ? true : false); |
|---|
| | 153 | $wp_iminr_options['enable_wp_trackback_posts'] = ($_POST['enable_wp_trackback_posts'] == 'true' ? true : false); |
|---|
| | 154 | $wp_iminr_options['enable_wp_trackback_domains'] = ($_POST['enable_wp_trackback_domains'] == 'true' ? true : false); |
|---|
| | 155 | |
|---|
| 208 | | |
|---|
| 209 | | <div class="submit"> |
|---|
| | 225 | <fieldset class="options" id="variables"> |
|---|
| | 226 | <legend><?php _e('Enable statistics for comment', 'wp_iminr') ?></legend> |
|---|
| | 227 | <p><?php _e('Create variables with iMinR interface before checking the checkbox.', 'wp_iminr') ?></p> |
|---|
| | 228 | |
|---|
| | 229 | <table width="100%" cellspacing="2" cellpadding="5" class="editform"> |
|---|
| | 230 | <tr> |
|---|
| | 231 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_comments"><?php _e('wp_comments (integer)', 'wp_iminr') ?></label></th> |
|---|
| | 232 | <td valign="top" width="100%"> |
|---|
| | 233 | <input type="checkbox" name="enable_wp_comments" id="enable_wp_comments" value="true" <?php if (wp_iminr_get_option('enable_wp_comments')) echo 'checked="checked"'; ?> /> |
|---|
| | 234 | <br /><small><?php _e('Comment count', 'wp_iminr') ?></small> |
|---|
| | 235 | </td> |
|---|
| | 236 | </tr> |
|---|
| | 237 | <tr> |
|---|
| | 238 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_comment_posts"><?php _e('wp_comment_posts (text)', 'wp_iminr') ?></label></th> |
|---|
| | 239 | <td valign="top" width="100%"> |
|---|
| | 240 | <input type="checkbox" name="enable_wp_comment_posts" id="enable_wp_comment_posts" value="true" <?php if (wp_iminr_get_option('enable_wp_comment_posts')) echo 'checked="checked"'; ?> /> |
|---|
| | 241 | <br /><small><?php _e('Comment per post', 'wp_iminr') ?></small> |
|---|
| | 242 | </td> |
|---|
| | 243 | </tr> |
|---|
| | 244 | <tr> |
|---|
| | 245 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_comment_authors"><?php _e('wp_comment_authors (text)', 'wp_iminr') ?></label></th> |
|---|
| | 246 | <td valign="top" width="100%"> |
|---|
| | 247 | <input type="checkbox" name="enable_wp_comment_authors" id="enable_wp_comment_authors" value="true" <?php if (wp_iminr_get_option('enable_wp_comment_authors')) echo 'checked="checked"'; ?> /> |
|---|
| | 248 | <br /><small><?php _e('Comment pet author', 'wp_iminr') ?></small> |
|---|
| | 249 | </td> |
|---|
| | 250 | </tr> |
|---|
| | 251 | <tr> |
|---|
| | 252 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_trackbacks"><?php _e('wp_trackbacks (integer)', 'wp_iminr') ?></label></th> |
|---|
| | 253 | <td valign="top" width="100%"> |
|---|
| | 254 | <input type="checkbox" name="enable_wp_trackbacks" id="enable_wp_trackbacks" value="true" <?php if (wp_iminr_get_option('enable_wp_trackbacks')) echo 'checked="checked"'; ?> /> |
|---|
| | 255 | <br /><small><?php _e('Trackback/Pingback count', 'wp_iminr') ?></small> |
|---|
| | 256 | </td> |
|---|
| | 257 | </tr> |
|---|
| | 258 | <tr> |
|---|
| | 259 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_trackback_posts"><?php _e('wp_trackback_posts (text)', 'wp_iminr') ?></label></th> |
|---|
| | 260 | <td valign="top" width="100%"> |
|---|
| | 261 | <input type="checkbox" name="enable_wp_trackback_posts" id="enable_wp_trackback_posts" value="true" <?php if (wp_iminr_get_option('enable_wp_trackback_posts')) echo 'checked="checked"'; ?> /> |
|---|
| | 262 | <br /><small><?php _e('Trackback/Pingback per post', 'wp_iminr') ?></small> |
|---|
| | 263 | </td> |
|---|
| | 264 | </tr> |
|---|
| | 265 | <tr> |
|---|
| | 266 | <th valign="top" style="white-space: nowrap"><label for="enable_wp_trackback_domains"><?php _e('wp_trackback_domains (text)', 'wp_iminr') ?></label></th> |
|---|
| | 267 | <td valign="top" width="100%"> |
|---|
| | 268 | <input type="checkbox" name="enable_wp_trackback_domains" id="enable_wp_trackback_domains" value="true" <?php if (wp_iminr_get_option('enable_wp_trackback_domains')) echo 'checked="checked"'; ?> /> |
|---|
| | 269 | <br /><small><?php _e('Trackback/Pingback per domain', 'wp_iminr') ?></small> |
|---|
| | 270 | </td> |
|---|
| | 271 | </tr> |
|---|
| | 272 | </table> |
|---|
| | 273 | |
|---|
| | 274 | </fieldset> |
|---|
| | 275 | |
|---|
| | 276 | <div class="submit"> |
|---|