Return the server schema (http or https).

Return value

string http OR https.

6 calls to advagg_get_server_schema()
advagg_css_js_file_builder in ./advagg.module
Aggregate CSS/JS files, putting them in the files directory.
advagg_find_existing_bundle in ./advagg.module
Given a list of files, see if a bundle already exists containing all of those files. If in strict mode then the file count has to be the same.
advagg_get_filename in ./advagg.module
Given a list of files; return back the aggregated filename.
advagg_js_cdn_advagg_js_pre_alter in advagg_js_cdn/advagg_js_cdn.module
Implements hook_advagg_js_pre_alter().
advagg_process_html_css in includes/css.inc

... See full list

File

./advagg.module, line 774

Code

function advagg_get_server_schema() {
    return isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https' || isset($_SERVER['HTTP_HTTPS']) && $_SERVER['HTTP_HTTPS'] == 'on' ? 'https' : 'http';
}