PluginProbe
Redirection / 2.3.5
Redirection v2.3.5
5.10.0 5.9.0 5.8.1 5.8.0 3.7.2 3.7.3 4.0 4.0.1 4.1 4.1.1 4.2 4.2.1 4.2.2 4.2.3 4.3 4.3.1 4.3.2 4.3.3 4.4 4.4.1 4.4.2 4.5 4.5.1 4.6.2 4.7.1 All 130 releases
redirection / view / admin / options.php

options.php in Redirection 2.3.5, at view/admin/options.php

112 lines 5.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if( !defined( 'ABSPATH' ) ) die( 'No direct access allowed' ); ?>
2 <div class="wrap">
3 <?php screen_icon( ); ?>
4
5 <h2><?php _e( 'Options', 'redirection' ) ?></h2>
6 <?php $this->render_admin( 'submenu', array( 'options' => $options ) ); ?>
7
8 <form method="post" action="" style="clear: both">
9
10 <?php wp_nonce_field( 'redirection-update_options' ); ?>
11
12 <table cellpadding="3" width="100%" class="form-table">
13 <tr>
14 <th valign="top" align="right"><?php _e( 'Auto-generate URL', 'redirection' ) ?>:</th>
15 <td>
16 <input type="text" name="auto_target" style="width: 95%" value="<?php echo esc_attr( $options['auto_target'] ) ?>"/>
17 <br/>
18 <span class="sub"><?php _e( 'This will be used to auto-generate a URL if no URL is given. You can use the special tags $dec$ or $hex$ to have a unique ID inserted (either decimal or hex)', 'redirection' ); ?></span>
19
20 </td>
21 </tr>
22 <tr>
23 <th align="right"><?php _e( 'Plugin Support', 'redirection' ); ?>:</th>
24 <td>
25 <input type="checkbox" name="support" <?php echo checked( $options['support'] ) ?> id="support"/>
26 <label for="support"><span class="sub"><?php _e( 'I\'m a nice person and I have helped support the author of this plugin', 'redirection' ); ?></span></label>
27 </td>
28 </tr>
29
30 </table>
31
32 <h3><?php _e( 'Logging', 'redirection' ); ?></h3>
33 <p><?php _e( 'Log redirections and 404 errors. Each time something is logged it will add a small load to your site. You may want to turn this if your redirected URLs are hit very frequently, and/or your site is very busy and pages are often not found.', 'redirection' ); ?></p>
34
35 <table cellpadding="3" width="100%" class="form-table">
36 <tr>
37 <th align="right"><?php _e( 'Logging', 'redirection' ); ?>:</th>
38 <td>
39 <input type="checkbox" name="log_redirections" <?php echo checked( $options['log_redirections'] ) ?> id="log_redirections"/>
40 <label for="log_redirections"><span class="sub"><?php _e( 'log redirected requests', 'redirection' ); ?></span></label><br />
41 <input type="checkbox" name="log_404s" <?php echo checked( $options['log_404s'] ) ?> id="log_404s"/>
42 <label for="log_404s"><span class="sub"><?php _e( 'log 404 Not Found requests', 'redirection' ); ?></span></label><br />
43 </td>
44 </tr>
45 <tr>
46 <th align="right"><?php _e( 'Expire Logs', 'redirection' ); ?>:</th>
47 <td>
48 <input size="5" type="text" name="expire" value="<?php echo esc_attr( $options['expire'] ) ?>"/>
49 <?php _e( 'days (enter 0 for no expiry)', 'redirection' ); ?>
50 </td>
51 </tr>
52 <tr>
53 <th align="right"><?php _e( 'RSS Token', 'redirection' ); ?>:</th>
54 <td>
55 <input class="regular-text" size="5" type="text" name="token" value="<?php echo esc_attr( $options['token'] ) ?>"/><br/>
56 <?php _e( 'A unique token allowing feed readers access to Redirection log RSS (leave blank to auto-generate)', 'redirection' ); ?>
57 </td>
58 </tr>
59 </table>
60
61 <h3><?php _e( 'URL Monitoring', 'redirection' ); ?></h3>
62 <p><?php _e( 'You can have Redirection detect changes in URLs and have an automatic redirection created in a specific group.', 'redirection' ); ?></p>
63
64 <table class="form-table">
65 <tr>
66 <th><?php _e( 'Post &amp; Page URLs', 'redirection' ); ?>:</th>
67 <td>
68 <select name="monitor_post">
69 <option value="0"><?php _e( 'Don\'t monitor', 'redirection' ); ?></option>
70 <?php echo $this->select( $groups, $options['monitor_post'] );?>
71 </select>
72 &mdash;
73 <label for="create_url_for_new_posts"><?php _e( 'Monitor new posts', 'redirection' ); ?></label> <input type="checkbox" name="monitor_new_posts" <?php echo checked( $options['monitor_new_posts'] ); ?> id="create_url_for_new_posts"/>
74 </td>
75 </tr>
76 </table>
77
78 <input class="button-primary" type="submit" name="update" value="<?php _e( 'Update', 'redirection' ) ?>"/>
79
80 </form>
81 </div>
82
83 <div class="wrap">
84 <h2><?php _e( 'Import', 'redirection' ); ?></h2>
85
86 <p><?php _e( 'Here you can import redirections from an existing .htaccess file, or a CSV file.', 'redirection' ); ?></p>
87
88 <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data">
89 <?php wp_nonce_field( 'redirection-import' ); ?>
90
91 <input type="file" name="upload" value=""/>
92
93 <?php _e( 'Import into', 'redirection' ); ?>: <select name="group">
94 <?php echo $this->select( $groups );?>
95 </select>
96 <input class="button-primary" type="submit" name="import" value="<?php _e( 'Upload', 'redirection' ); ?>"/>
97 </form>
98
99 <p><?php _e( 'Note that the group is ignored when uploading an XML file.', 'redirection' ); ?></p>
100 </div>
101
102 <div class="wrap">
103 <h2><?php _e( 'Delete Redirection', 'redirection' ); ?></h2>
104 <p><?php _e( 'Selecting this option will delete all redirections, all logs, and any options associated with the Redirection plugin. Make sure this is what you want to do.', 'redirection' ); ?></p>
105
106 <form action="" method="post" accept-charset="utf-8">
107 <?php wp_nonce_field( 'redirection-delete_plugin' ); ?>
108
109 <input class="button-primary" type="submit" name="delete" value="<?php _e( 'Delete', 'redirection' ) ?>"/>
110 </form>
111 </div>
112