Exemple #1
0
 /**
  * Returns true if the client is connecting via HTTPS, otherwise it returns false.
  * @param boolean $forcehttps Specify if the link has to have https
  */
 public static function GetBaseURL($forcehttps = false)
 {
     if (RTK::HasHttps() || $forcehttps) {
         return 'https://' . RTK_BASEURL;
     } else {
         return 'http://' . RTK_BASEURL;
     }
 }