PluginProbe
Redirection / 2.2.9
Redirection v2.2.9
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 / module_edit.php

module_edit.php in Redirection 2.2.9, at view/admin/module_edit.php

39 lines 1.7 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 <td class="logo">
3 <a href="edit.php?page=redirection.php&amp;sub=groups&amp;id=<?php echo $module->id ?>">
4 <?php if( $module->type == 'apache' ) : ?>
5 <img src="<?php echo $this->url() ?>/images/modules/apache.png" width="55" height="56" alt="Apache"/>
6 <?php elseif( $module->type == 'wp' ) : ?>
7 <img src="<?php echo $this->url() ?>/images/modules/wordpress.png" width="64" height="64" alt="Wordpress"/>
8 <?php elseif( $module->type == '404' ) : ?>
9 <img src="<?php echo $this->url() ?>/images/modules/404.png" width="64" height="64" alt="Wordpress"/>
10 <?php endif; ?>
11 </a>
12 </td>
13
14 <td colspan="5" class="edit">
15 <form action="<?php echo admin_url( 'admin-ajax.php' ) ?>" method="post" accept-charset="utf-8">
16 <table class="edit">
17 <tr>
18 <th><?php _e( 'Name', 'redirection' ); ?>:</th>
19 <td><input type="text" name="name" value="<?php echo esc_attr( $module->name ) ?>" style="width: 95%"/></td>
20 </tr>
21
22 <?php $module->config(); ?>
23
24 <tr>
25 <th></th>
26 <td>
27 <input class="button-primary" type="submit" name="save" value="<?php _e( 'Save', 'redirection' ); ?>"/>
28 <input class="button-secondary" type="submit" name="cancel" value="<?php _e( 'Cancel', 'redirection' ); ?>"/>
29 <img class="loader" src="<?php echo $this->url(); ?>/images/progress.gif" alt="loading" width="50" height="16" style="display: none"/>
30
31 <input type="hidden" name="action" value="red_module_save"/>
32 <input type="hidden" name="id" value="<?php echo $module->id; ?>"/>
33 <input type="hidden" name="_ajax_nonce" value="<?php echo wp_create_nonce( 'redirection-module_save_'.$module->id ); ?>"/>
34 </td>
35 </tr>
36 </table>
37 </form>
38 </td>
39