Skip to content

PHP Parking Page Template Source Code

PHP Parking Page Template Source Code

<?php

$domain = ""; // You may hardcode it if you wish
if( empty($domain) ) {
    $domain = $_SERVER['HTTP_HOST'];
}
?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">
    <title><?php echo $domain; ?></title>
    <style>
    * { 
      box-sizing: padding-box;
    }
    html {
      height: 100%;
    }
    body {
      font-family: "Courier New", "Courier", monospace;
      font-size: 12px;
      height: 100%;
      margin: 0;
      padding: 0;
    }
    .container {
      height: 100%;
      position: relative;
    }
    .content {
      text-align: center;
      position: relative;
      top: 50%;
      transform: translateY(-50%);
    }
    .domain {
        padding: 5px;
        font-size: 3em;
    }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="content">
        <div class='domain'>
          <?php echo $domain; ?>
        </div>
        <br/>
        <div class="contact">
          <p>Interested buyers may contact me through the email shown in the image below</p>
          <p>如果您想购买这个名域,您可以通过我的电邮来联络我</p>
          <img src="email.bmp"/>
        </div>
      </div>
      
    </div>

  </body>

</html>

All you need to do is create a bitmap file that displays your email address. This is meant to obscure your email to prevent spammers from scraping your email and spamming you.

Enjoyed the content ? Share it with your friends !
Published inProgramming

Be First to Comment

Leave a Reply

Your email address will not be published.