gde_get_secure_url

Request secure URL to document.

Description

(string) gde_get_secure_url( $u ); 

Returns (string)

Secure URL, or false on error

Parameters (1)

0. $u
The u.

Usage

  1. if ( !function_exists( 'gde_get_secure_url' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'google-doc-embedder/functions.php'; 
  3.  
  4. // The u. 
  5. $u = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = gde_get_secure_url($u); 
  9.  

Defined (1)

The function is defined in the following location(s).

/functions.php  
  1. function gde_get_secure_url( $u ) { 
  2. return $u; //bypass this function - breaks in current viewer 
  3.  
  4. require_once( GDE_PLUGIN_DIR . 'libs/lib-secure.php' ); 
  5.  
  6. if ( ! $url = gde_make_secure_url( $u ) ) { 
  7. return false; 
  8. } else { 
  9. return $url;