PluginProbe
Redirection / 2.4.2
Redirection v2.4.2
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 / options.php

options.php in Redirection 2.4.2, at view/options.php

111 lines 4.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
3 <?php
4
5 $expiry = array(
6 -1 => __( 'No logs', 'redirection' ),
7 1 => __( 'A day', 'redirection' ),
8 7 => __( 'A week', 'redirection' ),
9 30 => __( 'A month', 'redirection' ),
10 60 => __( 'Two months', 'redirection' ),
11 0 => __( 'Keep forever', 'redirection' ),
12 );
13
14 ?>
15
16 <div class="wrap">
17 <?php screen_icon( ); ?>
18
19 <h2><?php _e( 'Options', 'redirection' ) ?></h2>
20 <?php $this->render( 'submenu', array( 'options' => $options ) ); ?>
21
22 <form method="post" action="">
23 <?php wp_nonce_field( 'redirection-update_options' ); ?>
24
25 <table cellpadding="3" width="100%" class="form-table">
26 <tr>
27 <th align="right"><?php _e( 'Plugin Support', 'redirection' ); ?>:</th>
28 <td>
29 <input type="checkbox" name="support" <?php echo checked( $options['support'] ) ?> id="support"/>
30 <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>
31 </td>
32 </tr>
33 <tr>
34 <th align="right"><?php _e( 'Redirect Logs', 'redirection' ); ?>:</th>
35 <td>
36 <select name="expire_redirect">
37 <?php echo $this->select( $expiry, $options['expire_redirect'] ); ?>
38 </select>
39
40 <?php _e( '(time to keep logs for)', 'redirection' ); ?>
41 </td>
42 </tr>
43 <tr>
44 <th align="right"><?php _e( '404 Logs', 'redirection' ); ?>:</th>
45 <td>
46 <select name="expire_404">
47 <?php echo $this->select( $expiry, $options['expire_404'] ); ?>
48 </select>
49
50 <?php _e( '(time to keep logs for)', 'redirection' ); ?>
51 </td>
52 </tr>
53 <tr>
54 <th><?php _e( 'Monitor changes to posts', 'redirection' ); ?>:</th>
55 <td>
56 <select name="monitor_post">
57 <option value="0"><?php _e( 'Don\'t monitor', 'redirection' ); ?></option>
58 <?php echo $this->select( $groups, $options['monitor_post'] );?>
59 </select>
60 </td>
61 </tr>
62 <tr>
63 <th align="right"><?php _e( 'RSS Token', 'redirection' ); ?>:</th>
64 <td>
65 <input class="regular-text" size="5" type="text" name="token" value="<?php echo esc_attr( $options['token'] ) ?>"/><br/>
66 <span class="sub"><?php _e( 'A unique token allowing feed readers access to Redirection log RSS (leave blank to auto-generate)', 'redirection' ); ?></span>
67 </td>
68 </tr>
69 <tr>
70 <th valign="top" align="right"><?php _e( 'Auto-generate URL', 'redirection' ) ?>:</th>
71 <td>
72 <input type="text" name="auto_target" style="width: 65%" value="<?php echo esc_attr( $options['auto_target'] ) ?>"/>
73 <br/>
74 <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 <code>$dec$</code> or <code>$hex$</code> to have a unique ID inserted (either decimal or hex)', 'redirection' ); ?></span>
75 </td>
76 </tr>
77 </table>
78
79 <input class="button-primary" type="submit" name="update" value="<?php _e( 'Update', 'redirection' ) ?>"/>
80
81 </form>
82 </div>
83
84 <div class="wrap">
85 <h2><?php _e( 'Import', 'redirection' ); ?></h2>
86
87 <p><?php _e( 'Here you can import redirections from an existing <code>.htaccess</code> file, or a CSV file.', 'redirection' ); ?></p>
88
89 <form action="" method="post" accept-charset="utf-8" enctype="multipart/form-data">
90 <?php wp_nonce_field( 'redirection-import' ); ?>
91
92 <input type="file" name="upload" value=""/>
93
94 <?php _e( 'Import into', 'redirection' ); ?>: <select name="group">
95 <?php echo $this->select( $groups );?>
96 </select>
97 <input class="button-primary" type="submit" name="import" value="<?php _e( 'Upload', 'redirection' ); ?>"/>
98 </form>
99 </div>
100
101 <div class="wrap">
102 <h2><?php _e( 'Delete Redirection', 'redirection' ); ?></h2>
103 <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>
104
105 <form action="" method="post" accept-charset="utf-8">
106 <?php wp_nonce_field( 'redirection-delete_plugin' ); ?>
107
108 <input class="button-primary" type="submit" name="delete" value="<?php _e( 'Delete', 'redirection' ) ?>"/>
109 </form>
110 </div>
111