+ if($this->cfg->web_path == "/")
+ $web_path = "";
+ /* remove trailing slash */
+ elseif(preg_match('/\/$/', $this->cfg->web_path))
+ $web_path = preg_replace('/\/$/', '', $this->cfg->web_path);
+ else
+ $web_path = $this->cfg->web_path;
+
+ return $this->get_web_protocol() ."://". $this->get_server_name() . $web_path;
+