Plugin Directory

Changeset 2348431

Timestamp:
07/29/2020 01:57:13 PM (4 years ago)
Author:
increaserev
Message:

Violation url bug fixed

Location:
ir-manager/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ir-manager/trunk/ir-ads-block-func.php

    r2245306 r2348431  
    323323        $url = str_replace("www.", "", $url);
    324324        $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>";
    326351        if ($url != " "):
    327352         $meta = get_post_meta( 1 );
     
    332357                    if(!empty($meta["irmngr_violation"])){
    333358                         foreach ($meta["irmngr_violation"] as $key => $value) {
    334                              if($value==$url){
     359                             if($value==$url){
    335360                                @$this->ir_mngr_config_read("on");break;
    336361                             }
     
    339364                     if(!empty($meta["irmngr_violation_user"])){
    340365                         foreach (@$meta["irmngr_violation_user"] as $key => $value) {
    341                              if($value==$url){
     366                             if($value==$url){
    342367                                @$this->ir_mngr_config_read("on");break;
    343368                             }
     
    348373                    if(!empty($meta["irmngr_violation"])){
    349374                         foreach ($meta["irmngr_violation"] as $key => $value) {
    350                              if($value==$url){
     375                             if($value==$url){
    351376                                @$this->ir_mngr_config_read("off");break;
    352377                             }
     
    355380                     if(!empty($meta["irmngr_violation_user"])){
    356381                         foreach (@$meta["irmngr_violation_user"] as $key => $value) {
    357                              if($value==$url){
     382                             if($value==$url){
    358383                                @$this->ir_mngr_config_read("off");break;
    359384                             }
     
    370395        $url2 = explode("?", $url);
    371396        $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
    372423        if ($url != " "):
    373424         $meta = get_post_meta( 1 );
     
    378429                    if(!empty($meta["irmngr_violation"])){
    379430                         foreach ($meta["irmngr_violation"] as $key => $value) {
    380                              if($value==$url){
     431                             if($value==$url){
    381432                                @$this->ir_mngr_config_read_amp("on");break;
    382433                             }
     
    385436                     if(!empty($meta["irmngr_violation_user"])){
    386437                         foreach (@$meta["irmngr_violation_user"] as $key => $value) {
    387                              if($value==$url){
     438                             if($value==$url){
    388439                                @$this->ir_mngr_config_read_amp("on");break;
    389440                             }
     
    394445                    if(!empty($meta["irmngr_violation"])){
    395446                         foreach ($meta["irmngr_violation"] as $key => $value) {
    396                              if($value==$url){
     447                             if($value==$url){
    397448                                @$this->ir_mngr_config_read_amp("off");break;
    398449                             }
     
    401452                     if(!empty($meta["irmngr_violation_user"])){
    402453                         foreach (@$meta["irmngr_violation_user"] as $key => $value) {
    403                              if($value==$url){
     454                             if($value==$url){
    404455                                @$this->ir_mngr_config_read_amp("off");break;
    405456                             }
     
    411462        function ir_mngr_var() {
    412463            return "https://statsmin.increaserev.com/";
    413             // return "https://dev.increaserev.com/statsmin/";
     464            // return "https://dev.increaserev.com/statsmin/";
    414465        }
    415466        function ir_mngr_ads_block_2($status){
     
    695746            $url3 = explode("?", $url_);
    696747            $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
    697774            $yes_show = "no"; $yess="no";
    698775            $meta = get_post_meta( 1 );
     
    703780              if(!empty($meta["irmngr_violation"])){
    704781                         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]){
    706783                                $yess="yes";break;
    707784                             }
     
    710787                     if(!empty($meta["irmngr_violation_user"])){
    711788                         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]){
    713791                                  $yess="yes";break;
    714792                             }
     
    9341012                    $url3 = explode("?", $url_);
    9351013                    $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
    9361040                    $meta = get_post_meta( 1 );
    9371041                    @$amp_config = $this->ir_mngr_get_amp_config();
     
    9481052                    if(!empty($meta["irmngr_violation_user"])){
    9491053                        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; }
    9511055                        }
    9521056                    }
  • ir-manager/trunk/readme.txt

    r2245306 r2348431  
    44Tags: Redirect url, Block ads, Block domain, block java script, articles on ad placements
    55Requires at least: 3.9
    6 Tested up to: 5.3.2
     6Tested up to: 5..2
    77Stable tag: 1.0.4
    88License: GPLv2 or later
Note: See TracChangeset for help on using the changeset viewer.