X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=metaform.php;h=ee5b9422cc115c2dd5f7f7ec75b3777c6a6f04c0;hb=3f276370f699ae7ed6df930818d8e6c765d856f4;hp=47ce7fe9547a752f07a5279be531c09fec3723ea;hpb=117c5eac4726537693f6e0ec8ae593761e916087;p=wfpl.git diff --git a/metaform.php b/metaform.php index 47ce7fe..ee5b942 100644 --- a/metaform.php +++ b/metaform.php @@ -434,6 +434,11 @@ function make_php() { $tem->show('opt_db_5'); } if($GLOBALS['opt_email'] == 'Yes') { + $this_domain = $_SERVER['HTTP_HOST']; + if(substr($this_domain, -2) == '.l') { + $this_domain = substr($this_domain, 0, -1) . 'com'; + } + $tem->set('this_domain', $this_domain); $tem->show('opt_email_1'); $tem->show('opt_email_2'); }