PluginProbe
Redirection / 5.2.2
Redirection v5.2.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 / modules / nginx.php

nginx.php in Redirection 5.2.2, at modules/nginx.php

33 lines 489 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class Nginx_Module extends Red_Module {
4 const MODULE_ID = 3;
5
6 private $location = '';
7
8 public function get_id() {
9 return self::MODULE_ID;
10 }
11
12 public function get_name() {
13 return 'Nginx';
14 }
15
16 protected function load( $data ) {
17 $mine = array( 'location' );
18
19 foreach ( $mine as $key ) {
20 if ( isset( $data[ $key ] ) ) {
21 $this->$key = $data[ $key ];
22 }
23 }
24 }
25
26 protected function flush_module() {
27 }
28
29 public function update( array $data ) {
30 return false;
31 }
32 }
33