prepare("SELECT fname,picis FROM girls, pix WHERE girls.ID=pix.mid AND pix.ID=:picid LIMIT 1"); $stmt->bindParam(':picid',$_REQUEST["pl"]); $stmt->execute(); //print_r($pdodb->errorInfo()); while($i3=$stmt->fetch()) { $picis = $i3["picis"]; $fname = $i3["fname"]; } if($_REQUEST["approve"] == 1){ $stmt = $pdodb->prepare("UPDATE pix SET approved=1 WHERE mid=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); $stmt = $pdodb->prepare("UPDATE girls SET newphoto=0 WHERE ID=:did "); $stmt->bindParam(':did',$pid); $stmt->execute(); $betreff = ' Photos approved'; $message2 = ' Some or all of your photos have been approved. This is your link to share with your friends so you win!: http://www.missviral.com/'.$_REQUEST["pl"].' username: '.$username.' password: '.$password.' '; if(strstr($emailis,"@")){ sendmail('', $emailis, $betreff, $message2); } } if($_REQUEST["unapprove"] == 1){ $stmt = $pdodb->prepare("SELECT ID,picis FROM pix WHERE approved=0 AND mid=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); while($i3=$stmt->fetch()) { unlink('pix/'.$i3["picis"]); unlink('pix/'.str_replace("s","",$i3["picis"])); $stmt = $pdodb->prepare("DELETE FROM pix WHERE ID=:did "); $stmt->bindParam(':did',$i3["ID"]); $stmt->execute(); } $betreff = ' Photos not approved'; $message2 = ' Some or all of your photos have not been approved. Please improve the quality of photos. http://www.missviral.com/ username: '.$username.' password: '.$password.' '; if(strstr($emailis,"@")){ sendmail('', $emailis, $betreff, $message2); } echo 'update unapprove'; $stmt = $pdodb->prepare("UPDATE girls SET approved=0 WHERE ID=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); } ?> - Miss Viral 2013




back to her profile

share your Miss Viral profile to win
see tips
like Miss Viral on Facebook:

?>
prepare("UPDATE girls SET mainpic=:mainpic WHERE ID=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->bindParam(':mainpic',$npic); $stmt->execute(); } echo '

'; if($_SESSION["uid"] == 2234){ $stmt = $pdodb->prepare("SELECT ID,picis FROM pix WHERE approved=0 AND mid=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); while($i3=$stmt->fetch()) { $npic = str_replace("","",$i3["picis"]); echo '
'; if($_SESSION["uid"] == 2234){ echo '
delete'; } echo '
'; } echo '

'; } ?>
'; echo '
'; } ?>
$pid){ ?>