Add ip detector logic
This commit is contained in:
parent
47848efb30
commit
d1700f7592
@ -15,6 +15,22 @@
|
||||
border-bottom: 5px dashed white;
|
||||
}
|
||||
|
||||
.tagline-link p {
|
||||
text-decoration: underline 0.15em rgba(255,255,255,0);
|
||||
transition: 300ms;
|
||||
}
|
||||
|
||||
.tagline-link:hover p {
|
||||
text-decoration: underline 0.15em rgba(255,255,255,1);
|
||||
}
|
||||
|
||||
.clickable-div {
|
||||
display:block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.single-column {
|
||||
grid-template-columns: 1fr !important;
|
||||
}
|
||||
|
@ -9,10 +9,22 @@
|
||||
<?php include 'common/header.php' ?>
|
||||
|
||||
<div class="centered top-fade">
|
||||
<div class="index-item single-column">
|
||||
<h1>Hi, I'm Tyler</h1>
|
||||
<p>I'm a software developer and tinkerer</p>
|
||||
</div>
|
||||
<!--<a class="clickable-div" href="about.php"> -->
|
||||
<div class="index-item single-column tagline-link">
|
||||
<h1>Hi, I'm Tyler</h1>
|
||||
<p>I'm a software developer and tinkerer</p>
|
||||
<?php
|
||||
$remote_addr = $_SERVER['REMOTE_ADDR'];
|
||||
$forwarded_addr = $_SERVER['REMOTE_ADDR'];
|
||||
|
||||
$home_addr = gethostbyname("gluttony.clortox.com");
|
||||
if($remote_addr == $home_addr)
|
||||
echo "<p>Hello from within the home network!</p>"
|
||||
|
||||
|
||||
?>
|
||||
</div>
|
||||
<!--</a>-->
|
||||
</div>
|
||||
<div class="centered">
|
||||
<div class="index-item soft-background articles-box">
|
||||
|
Reference in New Issue
Block a user