prepare("UPDATE LOW_PRIORITY girls SET approved=1 WHERE username=:sessid"); $stmt->bindParam(':sessid',$realname); $stmt->execute(); } $stmt = $pdodb->prepare("SELECT ID,fname,aboutme,approved,mainpic,emailis, password,username,country,views,lastact, tviews,city,premium, facebook, twitter,lastvisitor FROM girls WHERE username=:sessid"); $stmt->bindParam(':sessid',$_REQUEST["pl"]); $stmt->execute(); while($i3=$stmt->fetch()) { $tname2 = $i3["fname"]; $pid = $i3["ID"]; $aboutme = $i3["aboutme"]; $dapproved = $i3["approved"]; $dmainpic = $i3["mainpic"]; $emailis = $i3["emailis"]; $username = $i3["username"]; $password = $i3["password"]; $country = $i3["country"]; $views = $i3["views"]; $lastact = $i3["lastact"]; $tviews = $i3["tviews"]; $city = $i3["city"]; $premium = $i3["premium"]; $facebook = $i3["facebook"]; $twitter = $i3["twitter"]; $mainpic = $i3["mainpic"]; $lastvisitor = $i3["lastvisitor"]; } if($_REQUEST["profile"] == 1){ $stmt = $pdodb->prepare("DELETE FROM girls WHERE ID=:did AND mainpic LIKE '' LIMIT 1 "); $stmt->bindParam(':did',$pid); $stmt->execute(); } $dt = "".$tname2." Photos & Images @".$username.""; $dtfb = " Please share this album to help me win!! (".$tname2.")"; $ddfb = "Check out my photo album on www.pjox.com. Create your own photo album, too."; include('meta.php'); include("header.php"); ?>

""){ ?>

PRO';}?>

· Private Message
5){ if($premium == 1){ echo ''.$facebook.''; }else{ echo ''.$facebook.' (activate)'; } echo "
"; } if(strlen($twitter) > 5){ if($premium == 1){ echo ''.$twitter.''; }else{ echo ''.$twitter.' (activate)'; } echo "
"; } ?>
last forum post: prepare("SELECT forum.titleis,forum.descis,forum.seox,forum.country,forum.timeposted FROM forum, girls WHERE forum.mid=:pid ORDER BY forum.ID desc LIMIT 1"); $stmt2->bindParam(':pid',$pid,PDO::PARAM_INT); $stmt2->execute(); while($i3=$stmt2->fetch()) { echo ' '.$i3["titleis"].''; } if($stmt2->rowCount() == 0){ echo 'none'; } echo ' (more posts)'; ?>


Get more visitors on your profile to get your Album featured.
Share on Facebook & to get more visitors
Total Album Views

prepare("SELECT ID,picis,price,views,likes,comments,mid FROM pix WHERE mid=:sessid ORDER BY ID desc"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); $photolink = 1; while($i3=$stmt->fetch()) { include('niceimage.php'); $newpic = $i3["picis"]; } ?>

?>
prepare("UPDATE LOW_PRIORITY girls SET mainpic=:mainpic WHERE ID=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->bindParam(':mainpic',$npic); $stmt->execute(); } ?>
'; echo '
'; echo '
'; */ } ?> $pid && $_SESSION["uid"] > 0) || strstr($_SERVER['HTTP_REFERER'], 'facebook.com') == true || strstr($_SERVER['HTTP_REFERER'], 'twitter.com') == true){ $stmt = $pdodb->prepare("SELECT picid,ipad FROM contestip WHERE picid=:picid AND ipad=:ipad LIMIT 1"); $stmt->bindValue(':picid', $pid, PDO::PARAM_INT); $stmt->bindValue(':ipad', $_SERVER["REMOTE_ADDR"], PDO::PARAM_INT); $stmt->execute(); $found = $stmt->rowCount(); if($found == 0){ $stmt = $pdodb->prepare("INSERT INTO contestip (picid,ipad) VALUES(:picid,:ipad)"); $stmt->bindValue(':picid', $pid, PDO::PARAM_INT); $stmt->bindValue(':ipad',$_SERVER["REMOTE_ADDR"], PDO::PARAM_INT); $stmt->execute(); $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET views=views+1,tviews=tviews+1 WHERE ID=:picid "); $stmt->bindValue(':picid', $pid, PDO::PARAM_INT); $stmt->execute(); // echo 'counted'; }else{ // echo 'not counted'; } /* if($views == 1 || $views == 5 || $views == 10 || $views == 50 || $views == 100 || $views == 200 || $views == 300 || $views == 400 || $views == 500 || $views == 600 || $views == 700 || $views == 800 || $views == 900 || $views == 1000 || $views == 2000 || $views == 3000 || $views == 5000) { $subject = 'Congratulations... you have '.$views.' visitor '; $body = ' Congratulations ... you have '.$views.' visitor Get more visitors by sharing your profile: http://www.pjox.com/'.$_REQUEST["pl"].' http://www.facebook.com/pjoxcontest Webmaster: http://www.facebook.com/travoltoblog ------------------------------------------------------- '; sendmail('', $emailis, $subject, $body); //echo "


sent".$emailis.'


'; } */ if($views > 40 ){ if($mainpic <> ""){ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET lastvoted=now(),views=0 WHERE ID=:picid "); $stmt->bindValue(':picid', $pid, PDO::PARAM_INT); $stmt->execute(); $stmt = $pdodb->prepare("DELETE FROM contestip WHERE picid=:picid "); $stmt->bindValue(':picid', $pid, PDO::PARAM_INT); $stmt->execute(); } } } $_SESSION["voted"]=$pid; ?>
$pid && $_SESSION["uid"] > 0){ if($lastvisitor <> $_SESSION["uid"]){ $betreff = ' PJOX New Visitor '; $message2 = ' you have a new visitor on your profile http://www.pjox.com'.$_SERVER["REQUEST_URI"].' '; if(strstr($emailis,"@")){ sendmail('', $emailis, $betreff, $message2); } } //echo 'updating visitor'; $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET lastvisitor=:toid,nvisitors=nvisitors+1 WHERE ID=:pid"); $stmt->bindParam(':toid',$_SESSION["uid"]); $stmt->bindParam(':pid',$pid); $stmt->execute(); $stmt = $pdodb->prepare("SELECT pid FROM visitors WHERE pid=:pid AND mid=:mid"); $stmt->bindParam(':pid',$pid); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->execute(); if($stmt->rowCount() == 0){ $stmt = $pdodb->prepare("INSERT INTO visitors(pid,mid,visittime) VALUES(:pid,:mid,now())"); $stmt->bindParam(':pid',$pid); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->execute(); }else{ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY visitors SET visittime=now() WHERE pid=:pid AND mid=:mid"); $stmt->bindParam(':pid',$pid); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->execute(); } } ?>