Add ip detector logic
This commit is contained in:
parent
47848efb30
commit
d1700f7592
@ -15,6 +15,22 @@
|
|||||||
border-bottom: 5px dashed white;
|
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 {
|
.single-column {
|
||||||
grid-template-columns: 1fr !important;
|
grid-template-columns: 1fr !important;
|
||||||
}
|
}
|
||||||
|
@ -9,10 +9,22 @@
|
|||||||
<?php include 'common/header.php' ?>
|
<?php include 'common/header.php' ?>
|
||||||
|
|
||||||
<div class="centered top-fade">
|
<div class="centered top-fade">
|
||||||
<div class="index-item single-column">
|
<!--<a class="clickable-div" href="about.php"> -->
|
||||||
|
<div class="index-item single-column tagline-link">
|
||||||
<h1>Hi, I'm Tyler</h1>
|
<h1>Hi, I'm Tyler</h1>
|
||||||
<p>I'm a software developer and tinkerer</p>
|
<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>
|
</div>
|
||||||
|
<!--</a>-->
|
||||||
</div>
|
</div>
|
||||||
<div class="centered">
|
<div class="centered">
|
||||||
<div class="index-item soft-background articles-box">
|
<div class="index-item soft-background articles-box">
|
||||||
|
Reference in New Issue
Block a user