Hey i need help please i have my normal gallery in my site but now i want to add another gallery 2nd one in there but i wont it to be that only ppl 18 + can enter there if their profile is not updated or not 18 they cant enter the gallery who can help me please coz some ppl want to be naughty but the site have youngsters online also
Gallery for adullts
Collapse
X
-
lol
------->lavalair<------- lol
you can add age just copy and paste where u see in forums part...
You can see it you can do it!Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
Visit: WapMasterz Coming Back Soon!
_______
SCRIPTS FOR SALE BY SUBZERO
Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
_______
Info & Tips
php.net
w3schools.com
-
Guest
you can use the same gallery .just add a new column say "ADULT-YES-or-NO" to your existing table
and rest of the part is just to pass the right sql query
Comment
-
PHP Code:///////////////////////////////////in core
function smalldick($sid)
{
$xpmyid = getuid_sid($sid);
$agex = mysql_fetch_array(mysql_query("SELECT birthday FROM lib3rtymrc_users WHERE id='".$xpmyid."'"));
$age = getage($agex[0]);
if($age>=18)
{
return true;
}else{
return false;
}
}
/////////////////////////////////in gallery
if(!smalldick($sid))
{
echo "<card id=\"main\" title=\"Under 18 Years\">";
echo "<p align=\"center\">";
$ideu = getuid_sid($sid);
$sexx = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$ideu."'"));
if($sexx[0]=='M')
{
$sex = "dick";
}else if($sexx[0]=='F'){
$sex = "pussy";
}else{
$sex = "dick";
}
echo "You are unde 18 years!<br/>";
echo "Go away.Your $sex is to young!<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
/////////////////////////////
Last edited by i0nutzxp; 05.05.09, 16:15.<?php unlink('World/Europe/Romania.country'); ?>
Comment
-
i bet the poor dude dont understand that. ... all you got to do isCode:$age = mysql_fetch_array(mysql_query("SELECT birthday FROM ibwf_users WHERE id='".$getuid_sid($sid)."'")); if(getage($age[0])<18 && !is_mod($sid)) { echo "<card id=\"main\" title=\"Under 18 Years\">"; echo "<p align=\"center\">"; echo "SORRY NO KIDS ALLOWED<br/><br/>"; echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>"; echo "</p>"; echo "</card>"; echo "</wml>"; exit(); }
Last edited by mcKeny; 06.05.09, 10:56.
R.M.C
----------
PHP Adovocate B)
Comment
-
Originally posted by i0nutzxp View PostPHP Code:///////////////////////////////////in core
function smalldick($sid)
{
$xpmyid = getuid_sid($sid);
$agex = mysql_fetch_array(mysql_query("SELECT birthday FROM lib3rtymrc_users WHERE id='".$xpmyid."'"));
$age = getage($agex[0]);
if($age>=18)
{
return true;
}else{
return false;
}
}
/////////////////////////////////in gallery
if(!smalldick($sid))
{
echo "<card id=\"main\" title=\"Under 18 Years\">";
echo "<p align=\"center\">";
$ideu = getuid_sid($sid);
$sexx = mysql_fetch_array(mysql_query("SELECT sex FROM lib3rtymrc_users WHERE id='".$ideu."'"));
if($sexx[0]=='M')
{
$sex = "dick";
}else if($sexx[0]=='F'){
$sex = "pussy";
}else{
$sex = "dick";
}
echo "You are unde 18 years!<br/>";
echo "Go away.Your $sex is to young!<br/><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">Home</a>";
echo "</p>";
echo "</card>";
echo "</wml>";
exit();
}
/////////////////////////////
Comment
Comment