Plugin Directory

Changeset 2321292


Ignore:
Timestamp:
06/10/2020 03:32:55 AM (6 years ago)
Author:
fyljp
Message:

修复时间Bug,测试支持5.4.1版本

Location:
spiderdisplay
Files:
4 added
2 edited

Legend:

Unmodified
Added
Removed
  • spiderdisplay/trunk/SpiderDisplay.php

    r2115878 r2321292  
    22/*
    33Plugin Name: SpiderDisplay 蜘蛛痕迹记录
    4 Plugin URI: https://www.fyljp.com/p/36.html
     4Plugin URI: http://fyljp.com/archives/48.html
    55Description: 记录搜索引擎蜘蛛访问的页面地址、时间等信息
    6 Version: 1.7
     6Version: 1.8
    77Author: 闪电
    88Author URI: http://www.fyljp.com
     
    3030function sd_spiderdisplay_install()
    3131{
    32     add_option("SpiderDisplayVersion", "2");
     32    add_option("SpiderDisplayVersion", "3");
    3333    global $wpdb;
    3434    $sd_spiderdisplay_table_name = $wpdb->prefix . "spiderdisplay";
     
    9292    echo "</h2>";
    9393    ?>
     94    <style>
     95        table {
     96            border-collapse: collapse;
     97        }
     98
     99        table, td, th {
     100            border: 1px solid black;
     101        }
     102    </style>
    94103        <table border="1">
    95104            <tr>
     
    157166    $spidercountall = $wpdb->get_results("SELECT * , COUNT(*) as 'allcount' FROM  `wp_spiderdisplay`  WHERE 1 GROUP BY `spidername` ORDER BY  `allcount` DESC"); 
    158167    ?>
     168    <style>
     169        table {
     170            border-collapse: collapse;
     171        }
     172
     173        table, td, th {
     174            border: 1px solid black;
     175        }
     176    </style>
    159177    <table border="1">
    160178        <tr>
     
    186204    {
    187205        $data_arr = array(
    188             "visittime" => date("Y-m-d H:i:s",$_SERVER["REQUEST_TIME"]),
     206            "visittime" => current_time('mysql',0),
    189207            "spidername" => $bot_name,
    190208            "visiturl" => $s_uri
  • spiderdisplay/trunk/readme.txt

    r2115878 r2321292  
    44Tags: Spider,Bot
    55Requires at least: 4.6
    6 Tested up to: 5.2.2
    7 Stable tag: 1.7
     6Tested up to: 5.4.1
     7Stable tag: 1.8
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    3131== Changelog ==
    3232
     33= 1.8 =
     34
     35* Fix time bug 修复了时间问题
     36
     37* Support up to
     38
    3339= 1.7 =
    3440
Note: See TracChangeset for help on using the changeset viewer.