View Single Post
Old 08-24-2023, 09:12 AM  
Tube Ace
So Fucking Banned
 
Industry Role:
Join Date: Nov 2008
Location: with your dream girl
Posts: 4,941
Quote:
Originally Posted by blackmonsters View Post
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.
Tube Ace is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote