- if($GLOBALS['opt_listing'] == 'Yes') {
- $tem->show('opt_listing_1');
- $tem->show('opt_listing_2');
- }
- if($GLOBALS['opt_display'] == 'Yes') {
- $tem->show('opt_display_1');
- $tem->show('opt_display_2');
- } else {
- $tem->show('opt_display_1_else');
- $tem->show('opt_display_2_else');
- }
- if($GLOBALS['opt_db'] == 'Yes') {
- $tem->show('opt_db_1');
- $tem->show('opt_db_2');
- $tem->show('opt_db_3');
- $tem->show('opt_db_4');
- $tem->show('opt_db_5');
- }
- if($GLOBALS['opt_email'] == 'Yes') {
- $tem->show('opt_email_1');
- $tem->show('opt_email_2');
- }
- if($GLOBALS['opt_http_pass'] == 'Yes') {
- $tem->show('opt_http_pass_1');
- $tem->show('opt_http_pass_2');
+ if($GLOBALS['opt_email']) {
+ $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);