Age limit to view gallery???

Started on the old forum in May 2009 · view the original in the archive · old links redirect here

5 replies · 718 views · started 17 years ago · 1 min read

4 participants
riderz Lead · 975 posts #2

Dj-marc wrote: I'm currently working on a adult gallery on my site but would like to place a code so that persons under the age of 18 cant view the page. I use

  if(getage(getuid_sid($strdate))>18)

but still they can view the page.

any help please?

///////////////////////////////////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(); 
    } 
///////////////////////////// 

Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

riderz Lead · 975 posts #6

well it works becoz sumone else helped me here before lol the topic are still somewhere here


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close