Hacker News new | ask | show | jobs
by habibur 6473 days ago
Here is even a better way...

$br = "<br />" && !empty($_SERVER['HTTP_REFERRER'] && !stripos($_SERVER['HTTP_REFERRER'],$_SERVER['HTTP_HOST']) && print("Remote Login Denied!" . $br;) || print("Success!" . $br);

I always code like this and call it if-less programming. No matter how smart the new grad is, they find it very hard to follow:-) Job security dude.