2013-02-28, 20:49:29
When gathering the site's URL.. doing something LIKE this would solve the protocol problem:
the
bit of code finds if the protocol is secure or not. Doing something to this effect may solve that problem for all urls.. and depending on the current protocol all URLs used in the core/themes can be adjusted accordingly by if statements.
PHP Code:
$url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';
$url .= $_SERVER['SERVER_NAME'];
$url .= htmlspecialchars($_SERVER['REQUEST_URI']);
the
PHP Code:
$url = isset($_SERVER['HTTPS']) ? 'https://' : 'http://';