prepare("UPDATE LOW_PRIORITY girls SET approved=1 WHERE fname=:sessid"); $stmt->bindParam(':sessid',$realname); $stmt->execute(); } if($_REQUEST["approve"] == 2){ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET approved=2 WHERE fname=:sessid"); $stmt->bindParam(':sessid',$realname); $stmt->execute(); } $stmt = $pdodb->prepare("SELECT ID,fname,aboutme,approved,mainpic,emailis, password,username,country,views,city,lastact,credits,tfav FROM girls WHERE fname=:sessid OR username=:sessid LIMIT 1"); $stmt->bindParam(':sessid',$realname); $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"]; $city = $i3["city"]; $lastact = $i3["lastact"]; $credits = $i3["credits"]; $tfav = $i3["tfav"]; } if($_REQUEST["approve"] == 1){ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY pix SET approved=1 WHERE mid=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET newphoto=0 WHERE ID=:did "); $stmt->bindParam(':did',$pid); $stmt->execute(); $betreff = ' foto acceptado'; $message2 = ' uno o mas fotos han sido acceptados comparte tu perfil con tus amigos para ganar http://www.concursomodelos.com/'.$_REQUEST["pl"].' administracion: http://www.facebook.com/travoltoblog usario: '.$username.' '; if(strstr($emailis,"@")){ sendmail('', $emailis, $betreff, $message2); } } if($_REQUEST["unapprove"] == 1){ $stmt = $pdodb->prepare("UPDATE girls SET approved=0,newphoto=1 WHERE fname=:sessid"); $stmt->bindParam(':sessid',$realname); $stmt->execute(); $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 = ' fotos no acceptados'; $message2 = ' unas fotos no han sido acceptados por favor suben fotos menos desnudas.. gracias... http://www.concursomodelos.com/'.$_REQUEST["pl"].' usario: '.$username.' administracion: http://www.facebook.com/travoltoblog '; if(strstr($emailis,"@")){ sendmail('', $emailis, $betreff, $message2); } echo 'update unapprove'; $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY girls SET approved=0 WHERE ID=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); } $stmt = $pdodb->prepare("SELECT ID,picis,approved FROM pix WHERE mid=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->execute(); $images = $stmt->fetchAll(); foreach($images as $i3) { $metaimg .= ''; } ?> - Concurso Modelos Agencias Modelos

País: Ciudad:
'; if($_SESSION["uid"] == 1475){ echo '
delete'; } echo '
'; } } ?>
Visitas al perfil
Creditos para enviar mensajes
Amigos
El Modelo con mas visitas al perfil gana.
Ayuda este Modelo y comparte este perfil en tu Facebook



Comparte en facebook ahora para ayudar ganar!!

?>
Gente activa ahora en prepare("SELECT fname,mainpic,views,country,city FROM girls WHERE approved=1 AND mainpic NOT LIKE '' ORDER by lastact desc LIMIT 0,12"); $stmt->execute(); echo '
'; while($i3=$stmt->fetch()) { echo ''; } ?> prepare("UPDATE LOW_PRIORITY girls SET mainpic=:mainpic WHERE ID=:sessid"); $stmt->bindParam(':sessid',$pid); $stmt->bindParam(':mainpic',$npic); $stmt->execute(); } echo '

'; if($_SESSION["uid"] == 1475){ echo '
to be approved:
'; $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"] == 1475){ echo '
delete'; } echo '
'; } echo '

'; } ?>
Administrador Concurso
anadirme en Facebook
'; echo '
'; echo '
'; echo $emailis; } ?>
$pid){ ?>
$pid && $_SESSION["uid"] > 0){ 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 = 'Congratulaciones ... tienes '.$views.' visitantes '; $body = ' Congratulaciones ... tienes '.$views.' visitantes Tu perfil: http://www.concursomodelos.com/'.$_REQUEST["pl"].' Mira todos: http://www.concursomodelos.com/visitors.php me puedes anadir en Facebook: http://www.facebook.com/travoltoblog ------------------------------------------------------- '; sendmail('', $emailis, $subject, $body); //echo "


sent".$emailis.'


'; } } if($_SESSION["uid"] <> $pid && $_SESSION["uid"] > 0){ if($plastvisitor <> $_SESSION["uid"]){ //echo 'lv'.$pemail; // qup($pemail,''.$d_name.' just visited you','http://www.budu.com/'.$d_plink.'',$pid); } //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,visited) VALUES(:pid,:mid,now(),:visited)"); $stmt->bindParam(':pid',$pid); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->bindParam(':visited',$_SERVER["REQUEST_URI"]); $stmt->execute(); }else{ $stmt = $pdodb->prepare("UPDATE LOW_PRIORITY visitors SET visittime=now(),visited=:visited WHERE pid=:pid AND mid=:mid"); $stmt->bindParam(':pid',$pid); $stmt->bindParam(':mid',$_SESSION["uid"]); $stmt->bindParam(':visited',$_SERVER["REQUEST_URI"]); $stmt->execute(); } } ?>