X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=metaform.php;h=ee5b9422cc115c2dd5f7f7ec75b3777c6a6f04c0;hb=6d9765bdf97af8351ed09c4187869cf05e74e2af;hp=3d66baf4fa017d8db58633d31f6e063f70ea0e99;hpb=0c70f6a8cdf46b61c8d30f918833b8f2d8522009;p=wfpl.git diff --git a/metaform.php b/metaform.php index 3d66baf..ee5b942 100644 --- a/metaform.php +++ b/metaform.php @@ -434,12 +434,16 @@ 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'); } if($GLOBALS['opt_pass'] == 'Yes') { $tem->show('opt_pass'); - $tem->show('opt_pass'); } return $tem->run(); }