Plugin Directory

Changeset 2161970


Ignore:
Timestamp:
09/24/2019 09:42:57 AM (7 years ago)
Author:
118group
Message:

v 1/5/4 patch for non existed table

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

Legend:

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

    r2154268 r2161970  
    208208 
    209209        if( count($res) == 0 ){
     210       
     211            // check if table exists
     212            require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
     213 
     214             $table_name = 'wtf_404_log';
     215             $table_name =  $wpdb->prefix.$table_name;
     216             
     217             
     218             //$wpdb->query("DROP TABLE ".$table_name );
     219
     220            $sql = "CREATE TABLE IF NOT EXISTS $table_name (
     221              `id` mediumint(9) NOT NULL AUTO_INCREMENT,
     222              `request_url` longtext NOT NULL ,
     223              `refferal_url` longtext NOT NULL,
     224              `timestamp` longtext NOT NULL,
     225              `redirect_url` longtext NOT NULL,
     226             
     227              UNIQUE KEY `id` (`id`)
     228            ) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;";
     229
     230            dbDelta($sql);
     231            /*  finsih */
     232       
    210233            $res = $wpdb->insert(
    211234                $table_name,
  • team-118group-agent/trunk/readme.txt

    r2160077 r2161970  
    77License: GPLv2 or later
    88License URI: https://www.gnu.org/licenses/gpl-2.0.html
    9 Stable tag: 1.5.3
    10 Version: 1.5.3
     9Stable tag: 1.5.4
     10Version: 1.5.4
    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

    r2160077 r2161970  
    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.3
     5Version: 1.5.4
    66Author: Team118GROUP
    77Author URI: http://www.118group.com
    8 Stable tag: 1.5.3
     8Stable tag: 1.5.4
    99*/
    1010
     
    5656 
    5757 
    58  $wpdb->query("DROP TABLE ".$table_name );
     58 //$wpdb->query("DROP TABLE ".$table_name );
    5959
    6060$sql = "CREATE TABLE IF NOT EXISTS $table_name (
Note: See TracChangeset for help on using the changeset viewer.