전체서비스
새글보기

따봉브라질

커뮤니티

분류1

컴퓨터

제목

WP SMUSH

WP SMUSH

 

WP - WP-CONTENT - PLUGIN - WP-SMUSHIT - LIB - CLASS-WP-SMUSH.PHP

 

 

1. if ( empty( $api_key ) ) {

   return false -> true;

   }

 

 

 

 

 

.....

 

2. 

 

//Flag to check if we need to revalidate the key

$revalidate = false -> true;

 

$api_auth = get_site_option( 'wp_smush_api_auth' );

 

//Check if need to revalidate

if ( ! $api_auth || empty( $api_auth ) || empty( $api_auth[ $api_key ] ) ) {

$revalidate = true;

} else {

$last_checked = $api_auth[ $api_key ]['timestamp'];

$valid        = $api_auth[ $api_key ]['validity'];

 

$diff = current_time( 'timestamp' ) - $last_checked;

 

//Difference in hours

$diff_h = $diff / 3600;

 

//Difference in minutes

$diff_m = $diff / 60;

 

switch ( $valid ) {

 

3.

 

 

}

 

$this->is_pro = ( 'valid' == $valid -> valid );

 

return $this->is_pro;

}

0

추천하기

0

반대하기

첨부파일 다운로드

등록자naver21

등록일2018-05-24

조회수2,284

페이스북 공유 트위터 공유 카톡공유 카카오스토리공유

 
스팸방지코드 :