diff options
author | rvelices <rv-github@modusoptimus.com> | 2006-10-19 21:33:43 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2006-10-19 21:33:43 +0000 |
commit | 2a8b727d4bc92af070e8f80b1aeb94a659554a68 (patch) | |
tree | d5e270d40799568bd5d9454aeb7ab8dbbd9d8130 /include | |
parent | af621d40d460dec6562664b636fc350d1d8fb9c6 (diff) |
feature 563: send an email to admin when new user registers (optional)
git-svn-id: http://piwigo.org/svn/trunk@1566 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | include/config_default.inc.php | 3 | ||||
-rw-r--r-- | include/functions_url.inc.php | 15 |
2 files changed, 18 insertions, 0 deletions
diff --git a/include/config_default.inc.php b/include/config_default.inc.php index 4a4bc7038..fb752fae8 100644 --- a/include/config_default.inc.php +++ b/include/config_default.inc.php @@ -501,6 +501,9 @@ $conf['nbm_max_treatment_timeout_percent'] = 0.8; // nbm_treatment_timeout_default is used by default $conf['nbm_treatment_timeout_default'] = 20; +// Send an email to the webmaster when a new user registers +$conf['email_admin_on_new_user']=false; + // +-----------------------------------------------------------------------+ // | Set default admin layout | // +-----------------------------------------------------------------------+ diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 22c91d1e6..0d2ea4a7e 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -52,6 +52,21 @@ function get_root_url() } /** + * returns the url of the current host (e.g. http://www.toto.com ) + * TODO: if required by someone, treat https case + */ +function get_host_url() +{ + $url = "http://"; + $url .= $_SERVER['HTTP_HOST']; + if ($_SERVER['SERVER_PORT']!=80) + { + $url .= ':'.$_SERVER['SERVER_PORT']; + } + return $url; +} + +/** * adds one or more _GET style parameters to an url * example: add_url_params('/x', array('a'=>'b')) returns /x?a=b * add_url_params('/x?cat_id=10', array('a'=>'b')) returns /x?cat_id=10&a=b |