Changeset 2348431
- Timestamp:
- 07/29/2020 01:57:13 PM (4 years ago)
- Location:
- ir-manager/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ir-manager/trunk/ir-ads-block-func.php
r2245306 r2348431 323 323 $url = str_replace("www.", "", $url); 324 324 $url2 = explode("?", $url); 325 $url = $url2[0]; 325 326 // new Row 327 // $domain_name=str_replace(",", "", $domain_name); 328 $urlwithslash=str_replace("www.", "", $url); 329 $extension = pathinfo($url, PATHINFO_EXTENSION); 330 $Dom=str_replace("=", "2_2", $extension."?".$url2[1]); 331 $Dom=str_replace("?", "1_1", $Dom); 332 $Dom=str_replace("/", "3_3", $Dom); 333 $Dom_=str_replace("=", "2_2", $extension."/?".$url2[1]); 334 $Dom_=str_replace("?", "1_1", $Dom_); 335 $Dom_=str_replace("/", "3_3", $Dom_); 336 $url_v_=str_replace("=", "2_2", $url2[0]."?".$url2[1]); 337 $url_v_=str_replace("?", "1_1", $url_v_); 338 $url_v_=str_replace("/", "3_3", $url_v_); 339 if(preg_match_all('/'.$Dom_.'/i', $url_v_) || preg_match_all('/'.$Dom.'/i', $url_v_)){ 340 $url=$url2[0]."?".$url2[1]; 341 $urlwithslash=$url2[0]."?".$url2[1]; 342 }else{ 343 $url = $url2[0]; 344 $urlwithslash=$url2[0]; 345 } 346 if(substr($urlwithslash, -1)!="/"){ 347 $urlwithslash=$urlwithslash."/"; 348 } 349 // new Row 350 // echo "URL=".$url."<br>".$urlwithslash."<br>"; 326 351 if ($url != " "): 327 352 $meta = get_post_meta( 1 ); … … 332 357 if(!empty($meta["irmngr_violation"])){ 333 358 foreach ($meta["irmngr_violation"] as $key => $value) { 334 if($value==$url ){359 if($value==$url){ 335 360 @$this->ir_mngr_config_read("on");break; 336 361 } … … 339 364 if(!empty($meta["irmngr_violation_user"])){ 340 365 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 341 if($value==$url ){366 if($value==$url){ 342 367 @$this->ir_mngr_config_read("on");break; 343 368 } … … 348 373 if(!empty($meta["irmngr_violation"])){ 349 374 foreach ($meta["irmngr_violation"] as $key => $value) { 350 if($value==$url ){375 if($value==$url){ 351 376 @$this->ir_mngr_config_read("off");break; 352 377 } … … 355 380 if(!empty($meta["irmngr_violation_user"])){ 356 381 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 357 if($value==$url ){382 if($value==$url){ 358 383 @$this->ir_mngr_config_read("off");break; 359 384 } … … 370 395 $url2 = explode("?", $url); 371 396 $url = $url2[0]; 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 372 423 if ($url != " "): 373 424 $meta = get_post_meta( 1 ); … … 378 429 if(!empty($meta["irmngr_violation"])){ 379 430 foreach ($meta["irmngr_violation"] as $key => $value) { 380 if($value==$url ){431 if($value==$url){ 381 432 @$this->ir_mngr_config_read_amp("on");break; 382 433 } … … 385 436 if(!empty($meta["irmngr_violation_user"])){ 386 437 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 387 if($value==$url ){438 if($value==$url){ 388 439 @$this->ir_mngr_config_read_amp("on");break; 389 440 } … … 394 445 if(!empty($meta["irmngr_violation"])){ 395 446 foreach ($meta["irmngr_violation"] as $key => $value) { 396 if($value==$url ){447 if($value==$url){ 397 448 @$this->ir_mngr_config_read_amp("off");break; 398 449 } … … 401 452 if(!empty($meta["irmngr_violation_user"])){ 402 453 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 403 if($value==$url ){454 if($value==$url){ 404 455 @$this->ir_mngr_config_read_amp("off");break; 405 456 } … … 411 462 function ir_mngr_var() { 412 463 return "https://statsmin.increaserev.com/"; 413 // return "https://dev.increaserev.com/statsmin /";464 // return "https://dev.increaserev.com/statsmin/"; 414 465 } 415 466 function ir_mngr_ads_block_2($status){ … … 695 746 $url3 = explode("?", $url_); 696 747 $url = $url2[0]; 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 697 774 $yes_show = "no"; $yess="no"; 698 775 $meta = get_post_meta( 1 ); … … 703 780 if(!empty($meta["irmngr_violation"])){ 704 781 foreach ($meta["irmngr_violation"] as $key => $value) { 705 if($value==$url || $value==$url _ || $value==$url3[0]){782 if($value==$url || $value==$url_ || $value==$url3[0]){ 706 783 $yess="yes";break; 707 784 } … … 710 787 if(!empty($meta["irmngr_violation_user"])){ 711 788 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 712 if($value==$url || $value==$url_ || $value==$url3[0]){ 789 790 if($value==$url || $value==$urlwithslash || $value==$url_ || $value==$url3[0]){ 713 791 $yess="yes";break; 714 792 } … … 934 1012 $url3 = explode("?", $url_); 935 1013 $url = $url2[0]; 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 936 1040 $meta = get_post_meta( 1 ); 937 1041 @$amp_config = $this->ir_mngr_get_amp_config(); … … 948 1052 if(!empty($meta["irmngr_violation_user"])){ 949 1053 foreach (@$meta["irmngr_violation_user"] as $key => $value) { 950 if($value==$url || $value==$url _ || $value==$url3[0]){ $yess="yes";break; }1054 if($value==$url || $value==$url_ || $value==$url3[0]){ $yess="yes";break; } 951 1055 } 952 1056 } -
ir-manager/trunk/readme.txt
r2245306 r2348431 4 4 Tags: Redirect url, Block ads, Block domain, block java script, articles on ad placements 5 5 Requires at least: 3.9 6 Tested up to: 5. 3.26 Tested up to: 5..2 7 7 Stable tag: 1.0.4 8 8 License: GPLv2 or later
Note: See TracChangeset
for help on using the changeset viewer.