Changeset 2714748
- Timestamp:
- 04/26/2022 09:13:49 AM (2 years ago)
- Location:
- gowebp/trunk
- Files:
-
- 5 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
gowebp/trunk/gowebp.php
r2714583 r2714748 39 39 $current_screen = get_current_screen(); 40 40 $remaining_days = $this->ir_get_remaining_days(); 41 if( strpos($current_screen->base, 'go -webp') === false && $remaining_days<=15 && !$this->ir_check_feature_pre()){41 if( strpos($current_screen->base, 'gowebp') === false && $remaining_days<=15 && !$this->ir_check_feature_pre()){ 42 42 add_action('admin_notices',function() use($remaining_days){ 43 43 $domain = sanitize_text_field( $_SERVER["HTTP_HOST"] ); … … 52 52 }else{ 53 53 54 if (isset($_GET['page']) && ($_GET['page'] == 'go -webp/gowebp_option2.php')) {54 if (isset($_GET['page']) && ($_GET['page'] == 'gowebp/gowebp_option2.php')) { 55 55 wp_enqueue_style('trial_style',plugin_dir_url( __FILE__) ."lib/css/trial.css", array(), time()); 56 56 wp_enqueue_style('buttons_style',plugin_dir_url( __FILE__) ."lib/css/buttons.css", array(), time()); … … 73 73 if(current_user_can("administrator")){ 74 74 add_menu_page('GOWEBP', 'GOWEBP', 'editor', 'gowebp-menu', '', plugin_dir_url( __FILE__) ."lib/img/Gowebpwp.png", 30); 75 add_submenu_page('gowebp-menu', 'GOWEBP', 'Settings', 'administrator', 'go -webp/gowebp_option2.php');75 add_submenu_page('gowebp-menu', 'GOWEBP', 'Settings', 'administrator', 'gowebp/gowebp_option2.php'); 76 76 } 77 77 -
gowebp/trunk/gowebp_worker.php
r2714583 r2714748 1373 1373 $optImgCount=round($imageCounter/4); 1374 1374 } 1375 if(file_exists(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt")){1376 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt");1375 if(file_exists(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt")){ 1376 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt"); 1377 1377 $var__=explode("_ir_",$var__); 1378 1378 $counturl=[]; -
gowebp/trunk/gowebp_worker_premium.php
r2714583 r2714748 1339 1339 $optImgCount=round($imageCounter/4); 1340 1340 } 1341 if(file_exists(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt")){1342 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt");1341 if(file_exists(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt")){ 1342 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt"); 1343 1343 $var__=explode("_ir_",$var__); 1344 1344 $counturl=[]; -
gowebp/trunk/includes/helper.php
r2714583 r2714748 261 261 262 262 function ir_webp_start($plugin){ 263 if( strpos($plugin,"go -webp") !==false) {263 if( strpos($plugin,"gowebp") !==false) { 264 264 $this->ir_add_record($this->ir_send_req_to_server()); 265 exit( wp_safe_redirect( admin_url( 'admin.php?page=go -webp/gowebp_option2.php' ) ) );265 exit( wp_safe_redirect( admin_url( 'admin.php?page=gowebp/gowebp_option2.php' ) ) ); 266 266 } 267 267 } -
gowebp/trunk/store.php
r2714583 r2714748 115 115 116 116 117 file_put_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt","");117 file_put_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt",""); 118 118 119 119 $this->gowebp_clear_cache2(); … … 164 164 function ir_start_optimization(){ 165 165 $var__="not"; 166 file_put_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/status_opt.txt",$var__);166 file_put_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/status_opt.txt",$var__); 167 167 $check = get_user_meta(1); 168 168 $ir_theme_image_status = $check["ir_theme_image_status"][0] ?? 0; … … 242 242 if($status== true || $status== 1){ 243 243 $this->ir_proceed_key($response); 244 echo admin_url("admin.php")."?page=go -webp/gowebp_option2.php®_success=1";244 echo admin_url("admin.php")."?page=gowebp/gowebp_option2.php®_success=1"; 245 245 }else{ 246 246 echo "failed"; … … 364 364 365 365 366 if(file_exists(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/status_opt.txt")){367 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/status_opt.txt");366 if(file_exists(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/status_opt.txt")){ 367 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/status_opt.txt"); 368 368 }else{ 369 369 $var__="not"; 370 file_put_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/status_opt.txt",$var__);370 file_put_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/status_opt.txt",$var__); 371 371 return false; 372 372 } … … 390 390 $optImgCount=round($imageCounter/4); 391 391 } 392 if(file_exists(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt")){393 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt");392 if(file_exists(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt")){ 393 $var__=file_get_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt"); 394 394 $var__=preg_replace( "/\r|\n/", "", $var__ ); 395 395 $var__=explode("_ir_",$var__); … … 446 446 $url=$path."/".$filename; 447 447 $this->ir_compressor($path,$filename); 448 @$var__2=file_get_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt");448 @$var__2=file_get_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt"); 449 449 $var__2=$var__2.$url."_ir_\n"; 450 file_put_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/gowebp_urls3.txt",$var__2);450 file_put_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/gowebp_urls3.txt",$var__2); 451 451 } 452 452 … … 460 460 } 461 461 } 462 file_put_contents(dirname(plugin_dir_path(__FILE__))."/go -webp/includes/status_opt.txt","completed");462 file_put_contents(dirname(plugin_dir_path(__FILE__))."/gowebp/includes/status_opt.txt","completed"); 463 463 echo "completed"; 464 464 }else{
Note: See TracChangeset
for help on using the changeset viewer.