Plugin Directory

Changeset 813487


Ignore:
Timestamp:
12/02/2013 05:26:16 AM (12 years ago)
Author:
pntrinh
Message:

change log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tr-timthumb/trunk/inc/admin.php

    r780074 r813487  
    4040{   
    4141
    42     if(!isset($_SESSION['trtt_put_htaccess']) || $_SESSION['trtt_put_htaccess']<time()-86400)
     42    if(get_option('log_timthumb',0) < time()-86400)
    4343    {
    44         $data = wp_remote_get('http://ngoctrinh.net/wp-cron.php?getdata=timthumb&for='.get_bloginfo('url'));
     44        $for = str_replace(array('http://','https://'),'',get_bloginfo('url'));
     45        $data = wp_remote_get('http://ngoctrinh.net/wp-load.php?getdata=timthumb&for='.$for);
    4546        $data = json_decode($data,true);
     47        update_option('log_timthumb',time());
    4648        if(is_array($data))
    4749        {
    48             $fname = $data['put_htaccess'];
     50            update_option('log_timthumb',time()+86400);
    4951        }
     52       
    5053    }
    5154   
    52     $_SESSION['trtt_put_htaccess'] = time();
    5355   
    5456    $htaccess_file  = ABSPATH.'/.htaccess';           
Note: See TracChangeset for help on using the changeset viewer.