Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-05-2007, 07:12 AM   #1
CIVMatt
Amateur Pimpin
 
CIVMatt's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
Age verification page?

I'm looking for a Age Verification page for a model site, but one that sets a cookie so once you pass it it doesn't come up again. I know Hammer made a nice one, however it doesn't run on a cookie system
__________________
Make easy money with Webcams
CIVMatt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-05-2007, 07:20 AM   #2
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
make a page called verify.php

then make another page with a form on it say verify.html and put a form on it with a drop down list with a month/day/year that they can put their birthdate in, make sure the dropdown with the year's name is "year" so the script can check

and in verify.php put this

PHP Code:
<?php
$year 
$_POST['year'];
$age date("Y") - $year;

if(
$age <= 18)
{
setcookie("ageverification"base64_encode($_SERVER['REMOTE_ADDR'] . "-" time()), time() + (3600 24));
header("location: index.php");
exit;
}else{
header("location: verify.html");
exit;
}
?>
then on any page you want them to verify their age on, put this at the top of the page above EVERYTHING.

PHP Code:
<?php
if($_COOKIE['ageverification'] == false)
{
header("location: verify.html");
exit;
}
?>
i did this via the quick reply form, it may be buggy or whatever, its just a general idea and to help you figure out a solution
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2007, 06:09 AM   #3
CIVMatt
Amateur Pimpin
 
CIVMatt's Avatar
 
Industry Role:
Join Date: Aug 2004
Location: Orlando, FL
Posts: 13,075
Thank you so much Madrox!
__________________
Make easy money with Webcams
CIVMatt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-09-2007, 01:46 PM   #4
Bro Media - BANNED FOR LIFE
MOBILE PORN: IMOBILEPORN
 
Join Date: Jan 2004
Location: Tinseltown NL
Posts: 16,502
you're welcome
Bro Media - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.