JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
metaform e-mail updated for new template format
[wfpl.git] / metaform.php
index 47ce7fe..ee5b942 100644 (file)
@@ -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');
        }