Quote:
Originally Posted by blackmonsters
New code :
PHP Code:
function chaturbate_selfURL() { $s = ''; if (!empty($_SERVER["HTTPS"])) { if ($_SERVER["HTTPS"] == "on") { $s = "s"; } } $protocol = chaturbate_strleft(strtolower($_SERVER["SERVER_PROTOCOL"]), "/").$s; $port = ($_SERVER["SERVER_PORT"] == "80") ? "" : (":".$_SERVER["SERVER_PORT"]); return $protocol."://".$_SERVER['SERVER_NAME'].$port.$_SERVER['REQUEST_URI']; }

|
I already fixed the shorthand code for him 1h 45m before you posted the multi-line ternary operator.