Plugin Directory

Changeset 2154268


Ignore:
Timestamp:
09/10/2019 02:22:31 PM (6 years ago)
Author:
118group
Message:

1.5.1

Location:
team-118group-agent/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • team-118group-agent/trunk/modules/hooks.php

    r2148498 r2154268  
    11<?php
     2   
     3 
    24   
    35// gravity form entries listing
     
    222224             
    223225        }
     226       
     227       
     228       
     229        // redirect
     230 
     231         $redirect_url = $wpdb->get_var( $wpdb->prepare("SELECT redirect_url FROM {$wpdb->prefix}wtf_404_log WHERE request_url = %s", $current_url));
     232     
     233         if( $redirect_url && $redirect_url != '' ){
     234            wp_redirect( $redirect_url, 301 );       
     235            die();
     236         }
     237       
    224238    }
    225239}
  • team-118group-agent/trunk/modules/settings.php

    r2148498 r2154268  
    4141    }
    4242    echo '<div class="wrap tw-bs4 table_container">';
    43     echo '
     43   
     44    // add custom url2redirect
     45    if( $_POST['url2redirect'] ){
     46        $res = $wpdb->insert(
     47                $table_name,
     48                array(
     49                    'request_url' => sanitize_text_field( $_POST['url2redirect'] ),
     50                    'refferal_url' =>   '',
     51                    'timestamp' => time() ,
     52                 
     53                ),
     54                array( 
     55                    '%s',
     56                    '%s',
     57                    '%d'
     58                )
     59            );
     60         
     61            $msg = '<div class="alert alert-info">URL Added</div>';
     62    }
     63   
     64   
     65    echo $msg.'
    4466    <form action="'.admin_url('admin.php?page=wtf_118_404').'" method="POST" >
    4567        <table class="table" >
    4668          <tbody>
    47             <tr>
     69           
     70            <tr>
     71       
     72              <th scope="col"><input placeholder="Add custom URL to redirect" id="custom_redirect_url" name="url2redirect" class="col-12 form-control" value="" /></th>
     73              <th scope="col"><button class="btn btn-success" >Add</button>&nbsp;
     74               
     75             
     76            </tr>
     77           
     78 
     79 
     80          </tbody>
     81           
     82        </table>
     83    </form>
     84    <form action="'.admin_url('admin.php?page=wtf_118_404').'" method="POST" >
     85        <table class="table" >
     86          <tbody>
     87           
     88         
     89           
     90            <tr>
    4891       
    4992              <th scope="col"><input placeholder="Enter part of URL to filter" id="table_filter" name="url_search" class="col-12 form-control" value="'.( $_POST['url_search'] ? sanitize_text_field( $_POST['url_search'] ) : '' ).'" /></th>
  • team-118group-agent/trunk/readme.txt

    r2148498 r2154268  
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    9 Stable tag: 1.5
    10 Version: 1.5
     9Stable tag: 1.5.1
     10Version: 1.5.1
    1111
    1212Performs a variety of functions to assist your web designer with wordpress data and system care
  • team-118group-agent/trunk/wp-tga-filter.php

    r2148498 r2154268  
    33Plugin Name: Team 118GROUP Agent
    44Description: Team 118GROUP Web Design Plugin to assist with monitoring your WordPress installation and assisting with system care
    5 Version: 1.5
     5Version: 1.5.1
    66Author: Team118GROUP
    77Author URI: http://www.118group.com
    8 Stable tag: 1.5
     8Stable tag: 1.5.1
    99*/
    1010
Note: See TracChangeset for help on using the changeset viewer.