Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.23 KB | None | 0 0
  1. <?php
  2.  
  3. function contains($needle, $haystack)
  4. {
  5.     return strpos($haystack, $needle) !== false;
  6. }
  7.  
  8. if(!contains("Discord", $_SERVER['HTTP_USER_AGENT']))
  9.   header("Location: https://www.youtube.com/watch?v=oHg5SJYRHA0");
  10. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement