$ip_address"; echo "
"; echo "

Silience is golden !!!

"; #print "

This is heading with style.

"; $sql="insert into log set ip='$ip_address',add_dtm=now()"; $link->query($sql); # CREATE TABLE `log` ( # `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, # `ip` VARCHAR(255) DEFAULT NULL, # `add_dtm` DATETIME DEFAULT NULL, # PRIMARY KEY (`id`) # ) ENGINE=INNODB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 ################################################################################# $pageURL = (@$_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; ## if ($_SERVER['SERVER_PORT'] != '80') $pageURL .= $_SERVER['SERVER_NAME'].':'.$_SERVER['SERVER_PORT'].$_SERVER['PHP_SELF']; else $pageURL .= $_SERVER['SERVER_NAME'].'/webmail'; $uri_parts = explode('.', $_SERVER['HTTP_HOST'], 2); if($uri_parts[0] == 'mail'){ header('Location: '. $pageURL); exit(); } ################################################################################## ?>