mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
new function getBaseUrl()
returns the protocol and host part of the url where seeddms is available
This commit is contained in:
parent
fd4a821fa8
commit
89c0ca9b88
|
@ -589,6 +589,15 @@ function sendFile($filename) { /* {{{ */
|
|||
}
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Return protocol and host of url
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function getBaseUrl() { /* {{{ */
|
||||
return "http".((isset($_SERVER['HTTPS']) && (strcmp($_SERVER['HTTPS'],'off')!=0)) ? "s" : "")."://".$_SERVER['HTTP_HOST'];
|
||||
} /* }}} */
|
||||
|
||||
class SeedDMS_CSRF {
|
||||
|
||||
protected $secret;
|
||||
|
|
Loading…
Reference in New Issue
Block a user