Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file = file_get_contents( dirname(__FILE__)."/backtrace.txt" );
- $file = explode("\n",$file);
- foreach( $file as $key => $value )
- {
- if( strpos($value,"120.146.82.138") === false )
- {
- unset( $file[$key] );
- }
- }
- $file = implode("\n",$file);
- file_put_contents( dirname(__FILE__)."/backtrace_.txt", $file);
Add Comment
Please, Sign In to add comment