Plugin Directory

Changeset 1895872


Ignore:
Timestamp:
06/20/2018 02:19:46 PM (8 years ago)
Author:
eslamsalem
Message:

clean & updates

Location:
shieldfy
Files:
15 deleted
2 edited
20 copied

Legend:

Unmodified
Added
Removed
  • shieldfy/tags/3.5.1/libs/base.php

    r1855342 r1895872  
    3333
    3434        if(file_exists($dbFile)){
    35             $oldContent = file_get_contents($dbFile);
    36             //check for shieldfy code
    37             if(strstr($oldContent, '\Shieldfy\Guard')){
    38                 echo json_encode(array('status'=>'success'));
    39                 return;
    40             }
    41             //insert our content as the beginning of the code
    42             $newContent .=  "\n ?>" . $oldContent;
     35            echo json_encode(array('status'=>'error','message'=>'Shieldfy cannot be installed now'));
    4336        }
    4437
     
    7871        delete_option('shieldfy_active_app_key');
    7972        delete_option('shieldfy_active_app_secret');
    80 
    81 
     73        if(file_exists(WP_CONTENT_DIR.'/db.php')){
     74            $oldcode = file_get_contents(WP_CONTENT_DIR.'/db.php');
     75            file_put_contents(WP_CONTENT_DIR.'/db.php.bkp',$oldcode);
     76            unlink(WP_CONTENT_DIR.'/db.php');
     77        }       
    8278
    8379    }
  • shieldfy/tags/3.5.1/readme.txt

    r1861217 r1895872  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 3.5
     6Stable tag: 3.5.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
     14= WARNING: This plugin is paused and not active right now , send email to team@shieldfy.com if you have any questions. =
     15
     16
     17----------------------------------
    1418
    1519= Start Protecting Your Website Block attacks targeting your website. =
  • shieldfy/trunk/libs/base.php

    r1855342 r1895872  
    3333
    3434        if(file_exists($dbFile)){
    35             $oldContent = file_get_contents($dbFile);
    36             //check for shieldfy code
    37             if(strstr($oldContent, '\Shieldfy\Guard')){
    38                 echo json_encode(array('status'=>'success'));
    39                 return;
    40             }
    41             //insert our content as the beginning of the code
    42             $newContent .=  "\n ?>" . $oldContent;
     35            echo json_encode(array('status'=>'error','message'=>'Shieldfy cannot be installed now'));
    4336        }
    4437
     
    7871        delete_option('shieldfy_active_app_key');
    7972        delete_option('shieldfy_active_app_secret');
    80 
    81 
     73        if(file_exists(WP_CONTENT_DIR.'/db.php')){
     74            $oldcode = file_get_contents(WP_CONTENT_DIR.'/db.php');
     75            file_put_contents(WP_CONTENT_DIR.'/db.php.bkp',$oldcode);
     76            unlink(WP_CONTENT_DIR.'/db.php');
     77        }       
    8278
    8379    }
  • shieldfy/trunk/readme.txt

    r1861217 r1895872  
    44Requires at least: 3.0.1
    55Tested up to: 4.9
    6 Stable tag: 3.5
     6Stable tag: 3.5.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1212== Description ==
    1313
     14= WARNING: This plugin is paused and not active right now , send email to team@shieldfy.com if you have any questions. =
     15
     16
     17----------------------------------
    1418
    1519= Start Protecting Your Website Block attacks targeting your website. =
Note: See TracChangeset for help on using the changeset viewer.