This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @param string $domain Pass $_SERVER['SERVER_NAME'] here | |
* | |
* @return string | |
* | |
* replacement for https://gist.github.com/pocesar/5366899 | |
*/ | |
function get_domain_base($domain) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am shrikus on github. | |
* I am shrikus (https://keybase.io/shrikus) on keybase. | |
* I have a public key ASAsh24s6DXmzS6IeO6Vq4hzsM16FbYysaPzfIqqoSasRwo | |
To claim this, I am signing this object: |