You are here

function _invoice_get_transfer_protocol in Invoice 7

Returns the current transfer protocol HTTP or HTTPS

3 calls to _invoice_get_transfer_protocol()
_invoice_api_invoice_post in ./invoice_api.inc
Handles POST request
_invoice_default_get_template_output in templates/default.inc
Function to create the invoice layout
_invoice_get_html in ./invoice_helpers.inc
Helper function to get the invoice in HTML format

File

./invoice_helpers.inc, line 676
Invoice module

Code

function _invoice_get_transfer_protocol() {
  return isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"] == 'on' ? 'https' : 'http';
}