Guest User

Untitled

a guest
Jun 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. <?php
  2.  
  3. if(!$_COOKIE['stv1id'])
  4. {
  5. $id = rand();
  6. setcookie('stv1id', $id);
  7. $out = "\nCOOKIE SET: {$id}";
  8. }
  9. else
  10. {
  11. $out = "\n COOKIE IS: ".print_r($_COOKIE,1);
  12. }
  13.  
  14. $out .= "\n ".print_r($argv);
  15.  
  16. $fh = fopen('temp_tacking_file','a');
  17. fwrite($fh, $out);
  18. fclose($fh);
  19.  
  20.  
  21. header("Content-type: image/gif");
  22. //header("Expires: Wed, 11 Nov 1998 11:11:11 GMT");
  23. //header("Cache-Control: no-cache");
  24. //header("Cache-Control: must-revalidate");
  25.  
  26. //image stuff here
  27. ?>
Add Comment
Please, Sign In to add comment