daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. foreach(array( "Safari/" => "safari.png",
  4.                "Chrome/" => "chrome.png",
  5.                "Opera/" => "opera.png",
  6.                // etc...
  7.              ) as $ua=>$icon)
  8. {
  9.     if(strstr($post['browser_info'], $ua))
  10.         $icon = "/fp/browser/$icon";
  11. }
RAW Paste Data
Top