Age limit to view gallery???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Age limit to view gallery???

    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
    PHP Code:
      if(getage(getuid_sid($strdate))>18
    but still they can view the page.

    any help please?

    WapCHAT Forum Currenltly changing over to xhtml

    My Dowloads Site

    #2
    Originally posted by Dj-marc View Post
    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
    PHP Code:
      if(getage(getuid_sid($strdate))>18
    but still they can view the page.

    any help please?
    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&amp;sid=$sid\">Home</a>"; 
          echo "</p>"; 
          echo "</card>"; 
          echo "</wml>"; 
          exit(); 
        } 
    /////////////////////////////
    Last edited by riderz; 26.05.09, 15:11.

    Comment


      #3
      yeah bro it works

      WapCHAT Forum Currenltly changing over to xhtml

      My Dowloads Site

      Comment


        #4
        tnks man its work

        Comment


          #5
          LoL , nice1 hehe
          com site: http://vampist.net
          download site: http://wapdloads.net
          fb: http://www.facebook.com/pmplx

          Comment


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

            Comment

            Working...
            X