populate($_SESSION['dude']); $logged_user->update_timestamp($_SESSION['dude']); $logged_user->unread_mail($_SESSION['dude']); // echo "first: logged in as $logged_user->name"; if ($logged_user->country_code == "XX") { $block = "apple"; setcookie("orange", $block, time()+(84600*30), "/"); } if (session_name()=='') { session_start(); } $_SESSION['dude'] = $_COOKIE['username']; $_SESSION['person_object'] = $logged_user; $logged_user->populate($_SESSION['dude']); $_SESSION['location'] = $logged_user->location; $random_check = rand(0, 10); $_SESSION['unread_mail'] = $logged_user->unread_count; } ////////// // // If session is not set, check cookie. If cookie username and password are valid. Set user as logged in. // //////////////// if ($_SESSION['auth'] != 1) { if ( (isset($_COOKIE['username'])) && (isset($_COOKIE['pass'])) ) { $logged_user = new Person; $logged_user->populate($_COOKIE['username']); $his_id = $logged_user->id; $gclid = $logged_user->gclid; $actual_password = SHA1($logged_user->password); if (( $actual_password == $_COOKIE['pass'] ) || ($logged_user->password == $_COOKIE['pass'])) { //echo "second: logged in"; setcookie("username", $_COOKIE['username'], time()+(84600*30), "/"); setcookie("pass", $_COOKIE['pass'], time()+(84600*30), "/"); setcookie("cookie_data", $logged_user->password, time()+(84600*30), "/"); session_start(); $_SESSION['auth'] = 1; $_SESSION['location'] = $logged_user->location; $logged_user->unread_mail($logged_user->name); if ($logged_user->email_verified == NULL) { $_SESSION['auth'] = 2; } $dude = $_COOKIE['username']; $logged_user->unread_mail($_COOKIE['username']); $timestamp = time(); $session_id = session_id(); if (!isset($_SESSION['updated'])) { $_SESSION['updated'] = 1; $logged_user->update_timestamp($logged_user->name); } $_SESSION['dude'] = $_COOKIE['username']; $_SESSION['id'] = $his_id; if (!empty($gclid)) { $_SESSION['gclid'] = $gclid; $logged_user->get_keywords($gclid); $key = str_replace(" ","_" , $logged_user->adwordskey); $_SESSION['key'] = $key; $_SESSION['bkey'] = $key; } $logged_user->unread_mail($logged_user->name); $_SESSION['unread_mail'] = $logged_user->unread_count; //echo $logged_user->unread_count; } } } ///////////// // // no cookie is set. // ///////////////// if ( (!isset($_COOKIE['username'])) && (!isset($_COOKIE['pass'])) ) { $_SESSION['dude'] = ""; if (!isset($_SESSION['viewed'])) { $_SESSION['viewed'] = array("1" , "2"); } $visitor = new Visitor; $visitor->variableGrab(); $visitor->logVisitor(); if (empty($_SESSION['key'])) { $_SESSION['key'] = $visitor->codo; } else { $visitor->codo = $_SESSION['key']; // print_r($_SESSION); } $test = $_SESSION['gclid']; // echo $test; // echo "key: $visitor->codo"; } ?> "Dating > Discreet Encounters" , "140" => "Services" , "141" => "Domestic" , "142" => "Commercial" , ); $requesting_array = array( "m4w" => "80" , "w4m" => "81" , "m4m" => "82" , "w4w" => "83" , "f" => "84" ); $city_array = array( "Auckland" => "Auckland" , "Wellington" => "Wellington" , "Hamilton" => "Hamilton" , "Christchuch" => "Christchurch" , "Dunedin" => "Dunedin" , ); $ethnicity_array = array( "0" => "not indicated" , "1" => "Caucasian" , "3" => "Indian" , "2" => "Other South Asian" , "4" => "Chinese" , "5" => "Korean" , "6" => "African" , "7" => "Other" ); $weight_array = array( "0" => "Prefer not to say" , "1" => "Slim" , "2" => "Athletic" , "3" => "Average" , "4" => "Couple of extra lbs" , "5" => "Large" ); $seeking_array = array( "0" => "Not Specified" , "1" => "Short term" , "2" => "Chat / Email" , "3" => "Dating" , "4" => "Discreet Encounter" , "5" => "Other" ); $seeking_arrayde = array( "0" => "Freundschaft" , "1" => "Kurze Zeit" , "2" => "Chatten" , "3" => "Datink" , "4" => "Diwkrete Encounter" , "5" => "Andere" ); $height_array = array( "152" => "5' 0" (152 cm)" , "155" => "5' 1" (155 cm)" , "157" => "5' 2" (157 cm)" , "160" => "5' 3" (160 cm)" , "163" => "5' 4" (163 cm)" , "165" => "5' 5" (165 cm)" , "168" => "5' 6" (168 cm)" , "170" => "5' 7" (170 cm)" , "173" => "5' 8" (173 cm)" , "175" => "5' 9" (175 cm)" , "178" => "5' 10" (178 cm)" , "180" => "5' 11" (180 cm)" , "183" => "6' " (183 cm)" , "185" => "6' 1" (185 cm)" , "188" => "6' 2" (188 cm)" , "191" => "6' 3" (191 cm)" , "193" => "6' 4" (193 cm)" , "196" => "6' 5" (196 cm)" , "198" => "6' 6" (198 cm)" , "201" => "> 6' 6" (200 cm)" , ); $requesting_array = array( "w4m" => "Woman Seeking Men" , "m4w" => "Man Seeking Women" , "m4m" => "Man Seeking Men" , "w4w" => "Woman 4 Women" , "c4c" => "Couple 4 Couples" , "c4w" => "Couple 4 Women" , "c4m" => "Couple 4 Men" , "O" => "Other" ); $requesting_search_array = array( "w4m" => "women seeking men" , "m4w" => "men seeking women" , "m4m" => "men seeking men" , "w4w" => "women seeking women" , "c4c" => "couples seeking couples" , "c4w" => "Couple 4 Women" , "c4m" => "Couple 4 Men" , "O" => "Other" ); $title_requesting_array = array( "w4m" => "Women Seeking Men (w4m)" , "m4w" => "Men Seeking Women (m4w)" , "m4m" => "Men Seeking Men (m4w)" , "w4w" => "Women Seeking Women (w4w)" , "c4c" => "Couples Seeking Couples (c4c)" , "c4w" => "Couples Seeking Women (c4w)" , "c4m" => "Couples Seeking Men (c4m)" , "O" => "Other" ); $religion_array = array( "1" => "Prefer not to say" , "7" => "Non-Religious" , "8" => "Anglican" , "12" => "Baptist" , "10" => "Methodist" , "11" => "Christianity - other" , "13" => "Lutheran" , "14" => "Presbyterian" , "2" => "Islam" , "3" => "Judaism" , "5" => "Buddhism" , "6" => "Hinduism" , "8" => "Anglican" , "9" => "Sikh" , "15" => "Other" ); $marital_array = array( "1" => "Single" , "2" => "In a Relationship" , "3" => "Married" , "4" => "Separated" , "5" => "Divorced" , "6" => "Widowed" , "7" => "Prefer not to say" , "8" => "Other" ); $smoking_array = array( "1" => "Prefer not to say" , "2" => "No" , "3" => "Yes" , "4" => "Socially" ); $drinking_array = array( "1" => "Prefer not to say" , "2" => "No" , "3" => "Yes" , "4" => "Socially" ); ?> "Success: Congratulations, your account has been created. You can add new photos, the profile or delete this profile at any time

" , "fr" => "Félicitations, vous venez de créer un compte. Vous pouvez ajouter de nouvelles photos, modifier ou supprimer votre profil à n’importe quel moment

" , "es" => "No ce habla espanol" , "de" => "Ja, du bist wunderschon, schlampe" ); $category_iamtop_array = array( "en" => "I am: " , "fr" => "Je suis: " , "es" => "Soy: " , "pt" => "Eu sou: " , ); $category_iamsearchtop_array = array( "en" => "I am:

  • " , "fr" => "Je suis " , "es" => "Soy: " , "pt" => "Eu sou: " , ); $category_iam_array = array( "en" => "I am" , "de" => "Ich bin" , "fr" => "Je suis" , "se" => "Jag är" , "es" => "Soy" , "nl" => "Ik ben" , "pt" => "Eu sou" , "it" => "Sono" , ); $sort_code_array = array( "en" => "sort: [w4m] [m4w] [m4m] [w4w]" , "de" => "[FsM] [MsF] [MsM] [FsF]" , "nl" => "[VzM] [MzV] [MzM] [VzV]" , "fr" => "[FrH] [HrF] [HrH] [FrF]" , "es" => "[MbH] [HbM] [HbH] [MbM]" , "it" => "[DcU] [UcD] [UcU] [DcD]" , ); $category_details_array = array( "en" => "Long Description" , "de" => "Angaben" , "fr" => "Informations" , "se" => "Detaljer" , "es" => "Detalles" , "nl" => "Details" , "pt" => "Detalhes" , "it" => "Dettagli" , ); $loggeduser_array = array( "m4w" => "" , "w4m" => "" , "w4w" => "" , "m4m" => "" , "c4m" => "" , "c4w" => "" , "c4c" => "" , ); $category_iamrest_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_iamsearchrest_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_rules_array = array( "en" => "Registration Required.
    " , "de" => "Regeln.
    " , "fr" => "Instructions pour s’inscrire.
    " , "se" => "Instruktioner om Medlemskap.
    " , "es" => "Pautas para registrarse .
    " , "nl" => "Richtlijnen voor registratie
    " , "pt" => "Linhas de Orientação do Registo.
    " , "it" => "Linee guida per la registrazione.
    " , ); $category_bodyshapetop_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_bodyshaperest_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_ethnicitytop_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_ethnicityrest_array = array( "en" => "" , "de" => "" , "fr" => "" , "se" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_seekingtop_array = array( "en" => "Seeking" , "se" => "Söker" , "es" => "Busca" , "pt" => "à procura de" , ); $category_seekingrest_array = array( "en" => "" , "de" => "" , "se" => "" , "fr" => "" , "es" => "" , "nl" => "" , "pt" => "" , "it" => "" , ); $category_ethnicity_simple_array = array( "en" => "Ethnicity" , "de" => "Herkunft" , "fr" => "Ethnique" , "es" => "raza" , "nl" => "etniciteit" , "pt" => "etnia" , "se" => "ras" , "it" => "Gruppo etnico" , ); $category_bodyshape_simple_array = array( "en" => "Weight" , "de" => "Körperbau" , "fr" => "Poids" , "es" => "peso" , "nl" => "gewicht" , "pt" => "peso" , "se" => "kroppstyp" , "it" => "Peso" , ); $category_age_simple_array = array( "en" => "Age" , "de" => "Alter" , "fr" => "Âge" , "es" => "edad" , "nl" => "leeftijd" , "pt" => "idade" , "se" => "ålder" , "it" => "Età" , ); $category_profileviews_simple_array = array( "en" => "Profile Views" , "de" => "Besucher" , "fr" => "Pages des profils" , "es" => "visitas del perfil" , "nl" => "aantal mensen dat dit profiel heeft bekeken" , "pt" => "visualizações do perfil" , "se" => "se profiler" , "it" => "Visite" , ); $category_seeking_simple_array = array( "en" => "Seeking" , "de" => "Suche" , "fr" => "Recherche" , "es" => "busca" , "nl" => "op zoek naar" , "pt" => "procuram" , "se" => "söker" , "it" => "Cerca" , ); $category_aboutme_simple_array = array( "en" => "About Me" , "de" => "Über mich" , "fr" => "À propos de moi" , "es" => "sobre mí" , "nl" => "over mij" , "pt" => "sobre mim" , "se" => "om mig" , "it" => "Su di me" , ); $category_username_array = array( "en" => "Username" , "de" => "Benutzername" , "fr" => "Nom d’utilisateur" , "es" => "nombre de usuario" , "nl" => "Gebruikersnaam" , "pt" => "nome de utilizador" , "se" => "Användarnamn" , "it" => "Nome utente" , ); $category_password_array = array( "en" => "Password" , "de" => "Passwort" , "fr" => "Mot de passe" , "es" => "contraseña" , "nl" => "Wachtwoord" , "pt" => "palavra-passe" , "se" => "Lösenord" , "it" => "Password" , ); $category_zipcode_array = array( "en" => "Postal Code" , "de" => "PLZ" , "se" => "postnummer" , "fr" => "Code postal" , "es" => "código postal" , "nl" => "postcode" , "pt" => "código postal" , "it" => "c.a.p." , ); $category_uszipcode_array = array( "en" => "Zip" , "de" => "PLZ" , "se" => "postnummer" , "fr" => "Code postal" , "es" => "código postal" , "nl" => "postcode" , "pt" => "código postal" , "it" => "c.a.p." , ); $category_headline_array = array( "en" => "Short Description" , "de" => "Überschrift" , "se" => "Rubrik" , "fr" => "Classement par titre" , "es" => "Titular del anuncio" , "nl" => "Titel (dit wordt op de voorpagina getoond)" , "pt" => "Cabeçalho do anúncio" , "it" => "Intestazione classificata" , ); $replies_from_array = array( "en" => "From:" , "de" => "Von:" , "se" => "From:" , "fr" => "De:" , "es" => "From:" , "nl" => "From:" , "pt" => "From:" , "it" => "From:" , ); $replies_to_array = array( "en" => "To:" , "de" => "An:" , "se" => "To:" , "fr" => "À:" , "es" => "To:" , "nl" => "To:" , "pt" => "To:" , "it" => "To:" , ); $replies_subject_array = array( "en" => "Subject:" , "de" => "Betreff:" , "se" => "Subject:" , "fr" => "Objet:" , "es" => "Subject:" , "nl" => "Subject:" , "pt" => "Subject:" , "it" => "Subject: " , ); $replies_date_array = array( "en" => "Date:" , "de" => "Gesendet:" , "se" => "Date:" , "fr" => "Envoyé:" , "es" => "Date:" , "nl" => "Date:" , "pt" => "Date:" , "it" => "Date:" , ); $category_height_array = array( "en" => "Height" , "de" => "Körpergröße" , "se" => "längd" , "fr" => "Taille" , "es" => "altura" , "nl" => "lengte" , "pt" => "Altura" , "it" => "Altezza" , ); $category_age_array = array( "en" => "Age" , "de" => "Alt" , "se" => "ålder" , "fr" => "Âge" , "es" => "edad" , "nl" => "Leeftijd" , "pt" => "Idade" , "it" => "Età" , ); $category_photoupload_array = array( "en" => "Photo upload (500K max)" , "de" => "Foto hinaufladen (500K max)" , "se" => "lägga upp Foto (max 500K)" , "fr" => "Télécharger une photo (500K max)" , "es" => "cargar foto (hasta 500 kb)" , "nl" => "Foto uploaden (500K max)" , "pt" => "carregar foto (máximo 500K)" , "it" => "Carica foto (max 500k)" , ); $category_submit_array = array( "en" => "Submit" , "de" => "Hochladen" , "se" => "Skicka" , "fr" => "Soumettre" , "es" => "Enviar" , "nl" => "Verzenden" , "pt" => "Enviar" , "it" => "Invia" , ); $category_reply_array = array( "en" => "Reply" , "de" => "Antworten" , "se" => "Svara på anonnsen" , "fr" => "Répondre à ce message" , "es" => "Contestar este post" , "nl" => "Antwoord" , "pt" => "Responder" , "it" => "Rispondi" , ); $category_loggedin_array = array( "en" => "Logged in as" , "de" => "Eingeloggt als" , "se" => "Nologgad som" , "fr" => "S’identifier en tant que " , "es" => "Has iniciado sesión como" , "nl" => "Ingelogd als" , "pt" => "Online como" , "it" => "Loggato come" , ); $view_reply_array = array( "en" => "Send Message" , "de" => "Auf diese Anzeige antworten" , "se" => "svara på anonnsen" , "fr" => "Répondre à ce message" , "es" => "Contestar este post" , "nl" => "Antwoord op deze post" , "pt" => "Responder a este tópico" , "it" => "Rispondi a questo post" , ); $view_post_array = array( "en" => "Post Your Own Ad" , "de" => "Poste Deine eigene Anzeige" , "se" => "skriv en egen annons" , "fr" => "Postez votre propre annonce" , "es" => "Publicar tu propio anuncio" , "nl" => "Plaats uw eigen advertentie" , "pt" => "Publicar um anúncio" , "it" => "Inserisci il tuo annuncio" , ); $view_return_array = array( "en" => "Return to Ads" , "de" => "Zurück zu den Anzeigen" , "se" => "Tillbaka till resultaten" , "fr" => "Retour aux listes" , "es" => "Volver a los Anuncios personales" , "nl" => "Terug naar overzicht" , "pt" => "Voltar às listas" , "it" => "Torna alla lista" , ); $view_back_array = array( "en" => "Return to " , "de" => "Zurück zu " , "se" => "Gå tillbaka till " , "fr" => "Retour aux " , "es" => "Volver a los " , "nl" => "terug naar " , "pt" => "Voltar às " , "it" => "Torna alla " , ); $view_personals_array = array( "en" => "Personals " , "de" => "Anzeigen " , "se" => "Kontaktannonser" , "fr" => "Pages Adultes" , "es" => "Anuncios personales" , "nl" => "Contactadvertenties" , "pt" => "Anúncios" , "it" => "Annunci personali" , ); $header2_latest_array = array( "en" => "Latest Photos" , "de" => "Neuste Fotos" , "se" => "De Nyaste Bilderna" , "fr" => "Photos les plus récentes" , "es" => "Últimas fotos" , "nl" => "Recentste Foto's" , "pt" => "Últimas Fotos" , "it" => "Ultime foto" , ); $header2_title_array = array( "en" => "Free $sitetitle" , "de" => "Kontakte Anzeigen" , "se" => "Kontaktannonser" , "fr" => "Pages Adultes" , "es" => "Anuncios personales" , "nl" => "Contactadvertenties" , "pt" => "Anúncios" , "it" => "Annunci personali" , ); $header2_register_array = array( "en" => "register for free" , "de" => "Anmelden" , "se" => "bli medlem" , "fr" => "Inscription" , "es" => "suscribirse" , "nl" => "registreer" , "pt" => "registar-se" , "it" => "registrati" , ); $header2_login_array = array( "en" => "login" , "de" => "Einloggen" , "se" => "logga in" , "fr" => "Identification" , "es" => "inicio de sesión" , "nl" => "login" , "pt" => "entrar" , "it" => "login" , ); $header2_uploadphotos_array = array( "en" => "manage photos" , "de" => "Fotos ändern" , "se" => "ta hand om Bilder" , "fr" => "gérer photos" , "es" => "gestionar fotos" , "nl" => "foto’s beheren" , "pt" => "gerir fotos" , "it" => "gestisci le foto" , ); $header2_uploadvideo_array = array( "en" => "upload movie" , "de" => "Video hinzufügen" , "se" => "lägga upp film" , "fr" => "télécharger films" , "es" => "cargar vídeo" , "nl" => "film uploaden" , "pt" => "carregar filme" , "it" => "carica filmati" , ); $header2_modifyprofile_array = array( "en" => "modify profile" , "de" => "Profil bearbeiten" , "se" => "ändra profilen" , "fr" => "modifier profil" , "es" => "modificar perfil" , "nl" => "profiel aanpassen" , "pt" => "modificar perfil" , "it" => "modifica profilo" , ); $header2_logout_array = array( "en" => "logout" , "de" => "Abmelden" , "se" => "logga ut" , "fr" => "se déconnecter" , "es" => "salir" , "nl" => "uitloggen" , "pt" => "sair" , "it" => "esci" ); $header2_mailwaiting_array = array( "en" => "messages" , "de" => "Neu message" , "se" => "meddelanden väntar" , "fr" => "mails en attente" , "es" => "mensajes en espera" , "nl" => "nieuwe emails" , "pt" => "e-mails em espera" , "it" => "mail in attesa" , ); $findlocation_enterlocation_array = array( "en" => "Enter your Location" , "de" => "Wo bist du" , "se" => "skriv in din ort" , "fr" => "Entrer votre lieu de résidence " , "es" => "escribe tu dirección" , "nl" => "voer uw stad in" , "pt" => "Digite a sua cidade" , "it" => "Inserisci la tua località" , ); $findlocation_country_array = array( "en" => "Country" , "de" => "Land" , "se" => "Land" , "fr" => "Pays" , "es" => "País" , "nl" => "Land" , "pt" => "País" , "it" => "Paese" , ); $findlocation_search_array = array( "en" => "Search" , "de" => "Suche" , "se" => "sök" , "fr" => "Rechercher" , "es" => "buscar" , "nl" => "zoek" , "pt" => "procurar" , "it" => "cerca" , ); $findlocation_city_array = array( "en" => "City" , "de" => "Stadt" , "se" => "Stad" , "fr" => "Ville" , "es" => "Ciudad" , "nl" => "Plaats" , "pt" => "Cidade" , "it" => "Città" , ); $login_forgotpass_array = array( "en" => "forgot password?" , "de" => "vergessen passwort?" , "se" => "glömt lösenord?" , "fr" => "
    Mot de passe oublié ?" , "es" => "¿has olvidado la contraseña?" , "nl" => "paswoord vergeten?" , "pt" => "esqueceu a sua palavra-passe?" , "it" => "dimenticato la password?" , ); $submit_success_array = array( "en" => "Success:
    You will receive an email to verify your details. " , "de" => "Erfolgreich: Du bekommst eine E-Mail zur Bestätigung deiner Angaben" , "se" => "Grattis: Du får en epost för att bekräfta dina uppgifter." , "fr" => "Bravo : Vous allez recevoir un e-mail récapitulant vos informations." , "es" => "Correcto: Recibirás un mensaje de correo electrónico para comprobar tu información." , "nl" => "Succes: U zal een e-mail ontvangen om uw gegevens te verifiëren." , "pt" => "Successo: Irá receber um e-mail, para verificar os seus detalhes" , "it" => "Operazione riuscita: Riceverai un’email per verificare i tuoi dettagli" , ); $submit_clickhere_array = array( "en" => "

    Click Here to view your ad" , "de" => "

    Hier klicken, um deine Anzeige anzusehen" , "se" => "

    Klicka Här för att se din annons" , "fr" => "

    Cliquez ici pour visualiser votre annonce" , "es" => "

    Haz clic aquí para ver tu anuncio" , "nl" => "

    Klik Hier om uw advertentie te bekijken" , "pt" => "

    Clique Aqui para visualizar o seu anúncio" , "it" => "

    Clicca qui per visualizzare il tuo annuncio" , ); $verify_clickhere_array = array( "en" => "Hello,\n\nClick the link below to activate your account.\n\n" , "de" => "Hallo,\n\nBitte hier klicken, um deine E-Mail-Adresse zu bestätigen" , "se" => "Hej,\n\nDu kan bekräfta din epost genom att klicka här" , "fr" => "Bonjour\n\nPour vérifier votre e-mail, cliquez ici" , "es" => "Hola\n\nPara comprobar tu mensaje de correo electrónico pulsa aquí" , "nl" => "Hallo\n\nOm uw e-mail te verifiëren klik hier" , "pt" => "Olá,\n\nPara verificar o seu e-mail clique aqui" , "it" => "Ciao,\n\nClicca qui per verificare la tua mail" , ); $verify_clickhere_html_array = array( "en" => "Hello,

    Click the link below to activate your account.

    " , "de" => "Hallo,\n\nBitte hier klicken, um deine E-Mail-Adresse zu bestätigen" , "se" => "Hej,\n\nDu kan bekräfta din epost genom att klicka här" , "fr" => "Bonjour\n\nPour vérifier votre e-mail, cliquez ici" , "es" => "Hola\n\nPara comprobar tu mensaje de correo electrónico pulsa aquí" , "nl" => "Hallo\n\nOm uw e-mail te verifiëren klik hier" , "pt" => "Olá,\n\nPara verificar o seu e-mail clique aqui" , "it" => "Ciao,\n\nClicca qui per verificare la tua mail" , ); $verify_verification_array = array( "en" => "Email Verification", "de" => "E-mail-Überprüfung" , "se" => "Bekräftelse av Epost" , "fr" => "Vérification de votre e-mail" , "es" => "Comprobación del mensaje de correo electrónico" , "nl" => "E-mailverificatie" , "pt" => "Verificação de E-mail" , "it" => "Verifica via email" , ); $verify_sincerely_array = array( "en" => "Sincerely", "de" => "Herzliche Grüße", "se" => "Med Vänlig Hälsning," , "fr" => "Cordialement" , "es" => "Atentamente" , "nl" => "Met vriendelijke groet" , "pt" => "Atentamente" , "it" => "Cordiali saluti" , ); $upload_guidelines_array = array( "en" => "Photo Requirements

    ", "de" => "Allgemeine Richtlinien.
    ", "se" => "Allmänna Instruktioner..
    " , "fr" => "Instructions générales.
    ", "es" => "Pautas generales.
    ", "nl" => "Richtlijnen voor het uploaden.
    " , "pt" => "Linhas de Orientação Gerais.
    ", "it" => "Linee guida generali.
    ", ); $upload_ratings_array = array( "en" => "Photo ratings", "de" => "Fotobewertungen erlauben", "se" => "Tillåt poängsättning av Bilden" , "fr" => "Autoriser la notation des photos" , "es" => "Permitir puntuación de fotos ", "nl" => "Foto ratings toestaan " , "pt" => "permitir classificação de fotos" , "it" => "Permetti voti alle foto" , ); $upload_comments_array = array( "en" => "Photo comments", "de" => "Fotokommentare erlauben", "se" => "Tillåt kommentarer till Bilden" , "fr" => "Autoriser les commentaires des photos" , "es" => "Permitir comentarios a las fotos" , "nl" => "Reacties op foto's toestaan" , "pt" => "Permitir comentários de fotos" , "it" => "Permetti commenti alle foto" , ); $upload_18_array = array( "en" => "I am over 18", "de" => "Ich bin über 18" , "se" => "Jag är över 18" , "fr" => "J’ai plus de 18 ans" , "es" => "soy mayor de 18 años" , "nl" => "Ik ben ouder dan 18" , "pt" => "Tenho mais de 18 anos" , "it" => "Sono maggiorenne" , ); $upload_submit_array = array( "en" => "Send" , "de" => "Senden" , "se" => "Sänd" , "fr" => "Soumettre" , "es" => "Enviar" , "nl" => "Verzenden" , "pt" => "Enviar" , "it" => "Invia" , ); $upload_submit_array = array( "en" => "Send" , "de" => "Senden" , "se" => "Sänd" , "fr" => "Soumettre" , "es" => "Enviar" , "nl" => "Verzenden" , "pt" => "Enviar" , "it" => "Invia" , ); $upload_photo_array = array( "en" => "Upload Photo" , "de" => "Foto-Upload" , "se" => "lägga upp Foto" , "fr" => "Télécharger Image" , "es" => "Cargar foto" , "nl" => "Foto Uploaden" , "pt" => "Carregar Foto" , "it" => "Carica foro" ); $upload_primary_array = array( "en" => "Click photo to set as your primary photo" , "de" => "Foto anklicken, um es als Hauptfoto auszuwählen" , "se" => "Klicka på fotot om det ska vara ditt primära foto" , "fr" => "Cliquez sur la photo pour en faire votre photo principale" , "es" => "Pulsa la foto para establecerla como tu foto principal" , "nl" => "Klik foto om als uw voornaamste foto te plaatsen" , "pt" => "Clique na foto que quer definir como a foto principal" , "it" => "Clicca sulla foto per impostarla come tua foto principale" , ); $upload_delete_array = array( "en" => "Click photo below to delete it" , "de" => "Zum Löschen bitte auf das Foto klicken" , "se" => "Klicka på fotot härunder för att ta bort det" , "fr" => "Cliquez sur la photo ci-dessous pour la supprimer" , "es" => "Pulsa la foto de debajo para eliminarla" , "nl" => "Klik op de foto onder om te verwijderen" , "pt" => "Clique na foto abaixo, para apagar" , "it" => "Clicca sulla foto qui sotto per cancellarla" , ); $uploadmedia_guidelines_array = array( "en" => "General Guidelines.
    " , "de" => "Allgemeine Richtlinien.
    " , "se" => "Allmänna Instruktioner.
    " , "fr" => "Instructions générales.
    " , "es" => "Pautas generales.
    " , "nl" => "Richtlijnen voor het uploaden.
    " , "en" => "Linhas de Orientação Gerais.
    " , "it" => "Linee guida generali.
    " , ); $uploadmedia_upload_array = array( "en" => "upload Movie" , "de" => "Film-Upload" , "se" => "lägga upp film" , "fr" => "Télécharger un film" , "es" => "cargar vídeo" , "nl" => "film uploaden" , "pt" => "carregar filme" , "it" => "Carica Filmato" , ); $modify_delete_array = array( "en" => "Delete your profile HERE" , "de" => "Dein Profil HIER löschen" , "se" => "Tag bort din profil HÄR" , "fr" => "Supprimer votre profil ICI" , "es" => "Eliminar tu perfil AQUÍ" , "nl" => "Verwijder uw profiel HIER" , "pt" => "Apague o seu perfil AQUI" , "it" => "Cancella il tuo profilo QUI" , ); $submitcategory_phone_array = array( "en" => "Sorry advertisements with phone numbers cannot be accepted because of the potential for abuse. Please click back to edit your ad" , "de" => "Leider können wir Anzeigen mit Telefonnummern oder E-Mail-Adressen aufgrund von möglichem Missbrauch nicht gestatten." , "se" => "Tyvärr är telefonnummer och epost inte tillåtna pg.a. risk för missbruk. Klicka bakåt för att redigera din annons." , "fr" => "Nous sommes désolés mais les annonces contenant des numéros de téléphone ou des adresses e-mail ne sont pas acceptées du fait du risque d’abus. Merci de cliquer sur précédent pour éditer votre profil." , "es" => "Lo sentimos, pero no aceptamos anuncios con números de teléfono o mensajes de correo electrónico porque se puede dar un uso abusivo. Pulsa Atrás para corregir tu anuncio." , "nl" => "Sorry, advertenties met telefoonnummers of e-mails kunnen niet aanvaard worden omwille van mogelijk misbruik. Gelieve terug te klikken om uw advertentie aan te passen." , "pt" => "Lamentamos, mas não são aceites anúncios com números de telephone ou e-mails, devido a possíveis abusos. Por favor, clique em retroceder para editar o seu anúncio. " , "it" => "Spiacenti ma a causa del loro potenziale di abuso, annunci contenenti numeri telefonici o indirizzi email non possono essere ammessi. Torna indietro per modificare il tuo annuncio" , ); $submitcategory_url_array = array( "en" => "Please don't include a URL in your post, Click back to edit. " , "de" => "Bitte keine Internetadresse in deiner Anzeige angeben. Zurück klicken, um Anzeige zu ändern." , "se" => "Skriv inte URL i din annons. Klicka bakåt för att redigera." , "fr" => "Merci de ne pas inscrire d’URL dans votre message. Cliquez sur Précédent pour éditer." , "es" => "No incluyas una URL en tu post. Pulsa Atrás para modificarlo." , "nl" => "Gelieve geen URL in te voegen in uw post, Klik terug om te bewerken." , "pt" => "Por favor, não inclua URL’s no seu anúncio. Clique em retroceder, para editar." , "it" => "Non inserire nessun URL nell’annuncio, torna indietro per modificare." , ); $submitcategory_writemoreheading_array = array( "en" => "Please write a little bit more about yourself in the heading. " , "de" => "Bitte beschreib dich ausführlicher in der Überschrift." , "se" => "Vänligen skriv litet mer om dig själv i rubriken." , "fr" => "Merci de parler un petit peu plus de vous dans le titre." , "es" => "Descríbete brevemente en el titular." , "nl" => "Schrijf alstublieft een beetje meer over uzelf in de titel." , "pt" => "Por favor, escreva um pouco mais sobre si no cabeçalho" , "it" => "Nell’intestazione scrivi qualcosa di più su te stesso." , ); $submitcategory_writemore_array = array( "en" => "Please write more about yourself, click back to continue." , "de" => "Bitte beschreib dich ausführlicher. Zurück klicken, um Anzeige zu ändern." , "se" => "Vänligen skriv mer om dig själv, klicka bakåt för att fortsätta." , "fr" => "Merci de parler un petit peu plus de vous. Cliquez sur Précédent pour continuer." , "es" => "Escribe algo más sobre ti, pulsa Atrás para continuar." , "nl" => "Schrijf alstublieft meer over uzelf, klik terug om verder te gaan." , "pt" => "Por favor, escreva mais sobre si, clique em retroceder, para continuar." , "it" => "Scrivi qualcosa in più su di te, torna indietro per continuare" , ); $replypost_rules_array = array( "en" => "This reply WILL NOT be public.
    It will only be seen by the ad writer.

    Try and be as detailed and specifc as possible with your post.
    " , "de" => "Diese Antwort ist NICHT öffentlich zu sehen.
    Sie kann nur vom Verfasser gelesen werden..

    Bitte schreib deinen Text so ausführlich wie möglich.
    " , "se" => "Detta svar BLIR INTE offentliggjort.
    Det kommer bara att kunna ses av den som skrivit annonsen.

    Försök att vara så utförlig och specifik som möjligt när du skriver.
    " , "fr" => "Cette réponse NE SERA PAS accessible au public.
    Elle ne sera consultable que par l’auteur de l’annonce.

    Essayez et soyez aussi descriptif et précis que possible dans votre message.
    " , "es" => "Esta respuesta NO será pública.
    Sólo la verá el autor del anuncio.

    Intenta ser lo más detallado y específico posible con tu post Has iniciado sesión como.
    " , "nl" => "Dit antwoord ZAL NIET openbaar zijn.
    Het zal alleen te zien zijn voor de advertentieschrijver.

    Probeer zo gedetailleerd en specifiek mogelijk te zijn met uw post." , "pt" => "Esta resposta NÃO SERÁ pública.
    Só sera vista por quem publica o anúncio

    Seja o mais detalhado e específico possível no seu anúncio." , "it" => "Questa risposta NON SARA' pubblica.
    Verrà visualizzata solo da chi ha scritto l’annuncio." , ); $submitreply_success_array = array( "en" => "Your reply to this ad has been SUCCESSFUL!
    The writer has been notified.

    Continue surfing" , "de" => "Deine Antwort auf diese Anzeige war ERFOLGREICH!
    Der Verfasser wurde benachrichtig

    Weiter surfen" , "se" => "Ditt svar till denna annonsen har LYCKATS!
    Mottagaren har fått besked.

    Fortsätt att surfa bland" , "fr" => "Votre réponse à cette annonce a BIEN ÉTÉ ENREGISTRÉE !
    L’auteur a été averti.

    Continuer votre visite" , "es" => "Tu respuesta a este anuncio se ha publicado CORRECTAMENTE.
    Se ha notificado al autor.

    Sigue navegando " , "nl" => "Uw antwoord op deze advertentie is SUCCESVOL!
    De schrijver is op de hoogte gebracht.

    Surf verder " , "pt" => "A sua resposta a este anúncio foi registada com SUCESSO!
    O proprietário do anúncio foi notificado.

    Continue a navegar" , "it" => "La tua risposta a questo annuncio ha avuto SUCCESSO!
    Il proprietario dell’annuncio ne ha ricevuto notifica.

    Continua a navigare" , ); $mailreply_answer_array = array( "en" => "Someone has answered your ad!" , "de" => "Jemand hat auf deine Anzeige geantwortet!" , "se" => "Någon har svarat på din annons!" , "fr" => "Quelqu’un a répondu à votre annonce !" , "es" => "¡Alguien ha respondido a tu anuncio! " , "nl" => "Iemand heeft uw advertentie beantwoord!" , "pt" => "Alguém respondeu ao seu anúncio!" , "it" => "Qualcuno ha risposto al tuo annuncio!" , ); $mailreply_body_array = array( "en" => "Your post at $sitename has had a reply.\n\nYou may view it here " , "de" => "Auf dein Posting bei $sitename ist eine Antwort eingegangen\n\nDu kannst sie dir hier anschauen " , "se" => "Din annons på $sitename har fått ett svar.\n\nDu kan se det här " , "fr" => "Vous avez reçu une réponse à votre message sur sitename.\n\nVous pouvez la visualiser sur " , "es" => "Hay una respuesta a tu post de $sitename.\n\nPuedes verlo aquí " , "nl" => "Uw post op $sitename heeft een antwoord gekregen.\n\nU kan het hier bekijken " , "pt" => "O seu anúncio em $sitename teve uma resposta.\n\n Pode vê-la aqui " , "it" => "Qualcuno ha inserito una risposta al tuo post su $sitename.\n\nPuoi visualizzarla qui " , ); $mailreply_messageswaiting_array = array( "en" => "Click on 'new messages'" , "de" => "Klick auf 'Neu message'" , "se" => "Klicka på 'epost väntar'" , "fr" => "Cliquez sur 'mail en attente'" , "es" => "Pulsa en 'mensaje en espera'" , "nl" => "Klik op 'mail wachtend'" , "pt" => "Clique em 'e-mail em espera'" , "it" => "Clicca su 'mail in attesa'" , ); $verify_hello_array = array( "en" => "Hello" , "de" => "Hallo" , "se" => "Hej" , "fr" => "Bonjour" , "es" => "Hola" , "nl" => "Hallo" , "pt" => "Olá" , "it" => "Ciao" , ); $verify_success_array = array( "en" => "Thanks," , "de" => "Erfolgreich" , "se" => "Grattis" , "fr" => "Bravo" , "es" => "Correcto" , "nl" => "Succes" , "pt" => "Sucesso" , "it" => "successo" , ); $verify_upload_array = array( "en" => "To finish fill out your profile: modify profile ", "de" => "Wo du schonmal hier bist, wieso nicht einfach ein paar Bilder oder einen Film von Dir hochladen

    " , "se" => "När du ändå är här kan du ju passa på för att upp några foton eller en film

    " , "fr" => "Puisque vous êtes ici, pourquoi ne pas télécharger quelques photos ou une vidéos

    ", "es" => "Mientras estás aquí, ¿por qué no cargas algunas fotos o un vídeo

    " , "nl" => "Terwijl u hier bent, waarom zou u niet wat foto’s of een film uploaden

    " , "pt" => "Enquanto aqui está, porque não carregar algumas fotos ou umvídeo

    " , "it" => "Dato che ci sei, perchè non caricare qualche foto o un filmato

    " , ); $printresults_adultpersonals_array = array( "en" => "Adult Dating" , "de" => "Kontakte Anzeigen" , "se" => "Kontaktannonser" , "fr" => "Pages Adultes" , "es" => "Anuncios Personales" , "nl" => "Contactadvertenties" , "pt" => "Anúncios" , "it" => "Annunci personali" , ); $deleteprofile_delete_array = array( "en" => "Click button to delete profile " , "de" => " Dein Profil löschen" , "se" => "Klicka på knappen för att ta bort profilen " , "fr" => "Cliquez sur le bouton pour supprimer votre profil " , "es" => "Pulsa el botón ELIMINAR PERFIL para eliminar el perfil" , "nl" => "Klik op de knop om profiel te " , "pt" => "Clique no botão para apagar o perfil " , "it" => "Clicca il pulsante per cancellare il profilo " , ); $profile_nophoto_array = array( "en" => "sorry no photo" , "de" => "Leider kein Foto" , "se" => "Tyvärr, inget Foto" , "fr" => "Désolé, pas de photo" , "es" => "lo sentimos, no hay foto" , "nl" => "geen foto geüpload" , "pt" => "lamentamos, não há fotos" , "it" => "Spiacente nessuna foto" , ); $profile_enlarge_array = array( "en" => "enlarge/rate photo" , "de" => "Foto vergrößern" , "se" => "Förstora bilden" , "fr" => "Agrandir la photo" , "es" => "ampliar foto" , "nl" => "foto vergroten" , "pt" => "aumentar foto" , "it" => "Allarga la foto" , ); $profile_oneother_array = array( "en" => "other photo" , "de" => "anderes Foto" , "se" => "Foto till" , "fr" => "autre photo" , "es" => "otra foto" , "nl" => "andere foto" , "pt" => "outra foto" , "it" => "altra foto" , ); $profile_twoother_array = array( "en" => "other photos" , "de" => "andere Fotos" , "se" => "Foton till" , "fr" => "autre photo" , "es" => "otras fotos" , "nl" => "andere foto’s " , "pt" => "outras fotos" , "it" => "altre foto" , ); // "en" You must login to comment. rating. // "en" Click button to delete profile // "en" No repl $category_religion_array = array( "en" => " " ); $category_marital_array = array( "en" => " " ); $category_smoking_array = array( "en" => " " ); $category_drinking_array = array( "en" => " " ); ?> gclid)) { $gclid = $visitor->codo; } else { $gclid = "vx_return_zxv" . $name->gclid; } return $gclid; } function new_cityad($name, $visitor) { $use_city = $name->city_name; if (empty($name->gclid)) { $gclid = $visitor->codo; } else { $gclid = "vx_return_zxv" . $name->gclid; } if (empty($name->city_name)) { $use_city = apache_note("GEOIP_CITY"); } echo "

    $use_city Girls

    " ."

    $use_city Guys

    "; } function new_searchcityad($city, $name, $visitor) { if (empty($name->gclid)) { $gclid = $visitor->codo; } else { $gclid = "vx_return_zxv" . $name->gclid; } echo "

    $city Girls

    " ."

    $city Guys

    "; } function new_flirtclaim($name) { echo "\n

    You sent a flirt to $name

    "; } function new_registration_lc_top($referer) { $string = reg_pics($referer); $city_name = apache_note("GEOIP_CITY"); echo "" ."\n
    " ."\n" ."\n
    " ."\n
    \"\"
    " ."\n
    " ."\n

    465,254 members!

    " ."\n

    1,365 Online NOW!**

    " ."\n

    2,332 New Photos this Week!

    " ."\n" ."\n
    " ."\n
    \"\"
    " ."\n" ."\n
    " ."\n" ."\n
    " ."\n
    \"\"
    " ."\n
    " ."\n

    Members
    near $city_name

    " ."\n
      " ."\n $string" ."\n
    " ."\n" ."\n
    " ."\n
    \"\"
    " ."\n" ."\n
    " ."\n
    "; } function new_joinaffclaim($name) { echo "\n
    "; echo "Yes!, I would like to accept a free registration to name\" target=\"_blank\">Get It On to maximize my chance of meeting someone as soon as possible! name\" target=\"_blank\">Click here"; echo "\n
    "; } function new_reportingclaim() { echo "\n
    " ."\nThis form is for reporting users who are acting inappropriately" ."\n
    "; } function new_modifyclaim() { echo "\n
    " ."\n

    Complete form to modify profile.

    " ."\n
    "; } function new_scamwarning() { echo "\n
    " ."\n

    Users requesting money are ALWAYS scammers. Please flag them.

    " ."\n
    "; } function new_claim() { include("config.php"); echo "\n
    " ."\n

    $sitename is a totally free dating website.

    " ."\n

    Register now and join over 435,432 others. " ."\n

    "; } function new_toppagination() { echo "
    " ."\n" ."\n
    " ."\nPrev 1 2 3 4 5 6 7 ... 100 Next" ."\n
    " ."\n
    \n"; } function new_bottompagination() { echo "\n" ."\n
    " ."\nPrev 1 2 3 4 5 6 7 ... 100 Next" ."\n
    " ."\n"; } function new_logo($sitecss) { echo "" ."\n" ."\n" ."
    " ."\n
    " ."\n\"Casual" ."\n
    "; } function new_breadcrumb($person) { echo "

    home\"\" " ."\nlocation_lc.html\">$person->location_lc\"\" " ."\nrequesting_c/$person->location_lc.html\">$person->requesting_lc\"\" " ."\n$person->name

    "; } function new_topad() { echo "

    Click Here for Wellington Girls

    "; } function new_loggedin($name) { if (!empty($name->name)) { if ($name->unread_count == 1) { $message = "(1) Message"; } if ($name->unread_count == 0) { $message = "Messages"; } if ($name->unread_count > 1) { $message = "($name->unread_count) Messages"; } echo "\n
    " ."\n" ."\n" ."\n
    " ."\n

    Logged in as: $name->name

    " ."\n
    " ."\n" ."\n
    "; } else { echo "
    " ."\n" ."\n
    " ."\n
    " ."\n
    Member Login" ."\n
    " ."\n
    " ."\n
    " ."\n
    "; } } function new_contactuser($sender, $recipient) { //if (!empty($recipient->name)) //{ //$string = "Reply to $recipient->name:"; //} //else //{ $string = "Message $recipient->name"; //} if (!empty($sender->name)) { echo "
    " ."\n

    $string

    " ."\n
    " ."\n
    " ."\nname\">name\">" ."\n" ."\n" ."\n
    " ."\n" ."\n
    " ."\n" ."\n
    " ."\n" ."\n"; } } function new_morephotos() { echo "\n
    " ."\n

    More Photos of Harvey

    " ."\n
    " ."\n
      " ."\n
    • \"\"
    • " ."\n
    • \"\"
    • " ."\n
    • \"\"
    • " ."\n
    • \"\"
    • " ."\n
    • \"\"
    • " ."\n
    " ."\n
    " ."\n
    "; } function new_closebox() { echo "
    " ."\n\"close\"" ."\n

    Things to do:

    " ."\n

    1. Meet more people on Get It On.

    " ."\n" ."\n
    "; } function new_profile($profile, $filename, $user) { $last_visit = timeDiff($profile->last_timestamp); $height = $profile->height; if (empty($height)) { $height = "not indicated"; } $bodyshape = $profile->bodyshape; if (empty($bodyshape)) { $bodyshape = "not indicated"; } $heading = substr($profile->classified_heading, 0, 60); echo "

    $profile->name, \"$heading\"

    " ."\n" ."\n
    " ."\n
    \"\""; if ($profile->name == $user->name) { } else if (empty($user->name)) { echo "\n

    \"flirt!\"

    "; } else { echo "\n

    name&height=125&width=350\" class=\"gallery\" title=\"Flirt with $profile->name ?\">\"flirt!\"

    "; } if ($profile->country == "US") { $postal = "Zip Code"; } else { $postal = "Postal Code"; } echo "\n
    " ."\n

    I am:

    " ."\n

    Seeking:

    " ."\n

    $postal:

    " ."\n

    Ethnicity:

    " ."\n

    Age:

    " ."\n

    Height:

    " ."\n

    Weight:

    " ."\n

    Profile Views:

    " ."\n

    Last Visit:

    " ."\n
    " ."\n
    " ."\n

    $profile->requesting

    " ."\n

    $profile->seeking

    " ."\n

    $profile->suburb1

    " ."\n

    $profile->ethnicity

    " ."\n

    $profile->age

    " ."\n

    $height

    " ."\n

    $bodyshape

    " ."\n

    $profile->views

    " ."\n

    $last_visit

    " ."\n
    " ."\n
    " ."\n" ."\n
    " ."\n"; if (!empty($profile->classified_posting)) { echo "\n
    " ."\n

    About Me

    " ."\n

    $profile->classified_posting

    " ."\n
    "; } } function new_header($name) { include("config.php"); $string = $name->classified_heading; if (empty($string)) { $string = $meta_description; } echo "" ."\n" ."\n" ."\n" ."\n" ."\n$sitename - $string" ."\n" ."\n" ."\n"; } function call_css($sitecss) { $browser = $_SERVER['HTTP_USER_AGENT']; if (preg_match("/MSIE 6./", $browser)) { $using_microsoft = 1; $css = ""; } else { $using_microsoft = 0; $css = ""; } echo $css; } function new_footer() { echo "
    " ."" ."
    " ."
    " ."" ."" ."" ."
    " ."" ."" ."" ."" ."" ."" ."" ."" ."" .""; include("js/analytics.js"); echo "" .""; } function left_column($name) { if ($name->country == "US") { $postal = "Zip Code"; } else { $postal = "Postal Code"; } $sort_type = requesting_land($name->requesting_c); echo "" ."
    " ."" ."" ."
    " ."
    \"\"
    " ."
    " ."

    Search

    " ."
    " ."" ."

    I am

    " ."

    " ." " ."

    $postal

    " ."
    " ." " ."
    " ."" ."
    " ."
    \"\"
    " ."" ."
    " ."" .""; } function check_username($username) { global $taken_usernames; $resp = array(); $username = trim($username); if (!$username) { $resp = array('ok' => false, 'msg' => "Please specify a username"); } else if (!preg_match('/^[a-z0-9\.\-_]+$/', $username)) { $resp = array('ok' => false, "msg" => "Your username can only contain alphanumerics and period, dash and underscore (.-_)"); } else { include("db.php"); mysql_select_db('localsex', $link); $query = "SELECT * FROM ads WHERE name = '$username'"; $result = mysql_query($query); $fail = 2; if (mysql_num_rows($result) == 1) { $fail = 1; } unset($query); unset($result); if ($fail == 1) { $resp = array("ok" => false, "msg" => "username already in use."); } else { $resp = array("ok" => true, "msg" => "username is available."); } } return $resp; } function check_email($username) { global $taken_usernames; $resp = array(); $username = trim($username); if (!$username) { $resp = array('ok' => false, 'msg' => "Please specify a username"); } else if (!preg_match('/^[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}$/', $username)) { $resp = array('ok' => false, "msg" => ""); } else { $fp = fsockopen("www.adultfriendfinder.com", 80, $errno, $errstr, 30); if (!$fp) echo "$errstr ($errno)\n"; else { fwrite($fp, "GET /p/flash_reg_fields_check.cgi?email=$username®_handle=$name HTTP/1.0\r\nHost: www.adultfriendfinder.com\r\n\r\n"); while (!feof($fp)) $body .= fgets($fp, 4096); fclose($fp); } $fail = 0; if (preg_match("/email=0/", $body)) { $fail = 1; } if ($fail == 1) { $resp = array("ok" => false, "msg" => "Dating Gold:"); } else { $resp = array("ok" => true, "msg" => ""); } } return $resp; } function reg_pics($referer) { $string = "
  • " ."
  • " ."
  • "; $regexp = '/(gay|m4m|male escort|male cock|bi guys|men seeking men|bisexual men)/i'; if (preg_match("$regexp", $referer)) { $string = "
  • " ."
  • " ."
  • "; } $regexp = '/(lesbian|bi women)/i'; if (preg_match("$regexp", $referer)) { $string = "
  • " ."
  • " ."
  • "; } $regexp = '/(swing/couple)/i'; if (preg_match("$regexp", $referer)) { $string = "
  • " ."
  • " ."
  • "; } return $string; } function verifyemail($site) { $string = "

    Please Check Your Email to Confirm Your Subscription

    " ."

    We sent you an email with a link to confirm your subscription." ." If you do not receive it within a reasonable amount of time, please check your spam filters to ensure you are allowing emails from webmaster@$site.

    " ."

    To ensure that our email reaches your Inbox, and is not deleted or moved to your Junk Mail folder, add our email address webmaster@$site to your safe sender list.

    "; echo $string; } function youviewed($name, $sitecss, $gclid) { include("config.php"); include("db.php"); if (!empty($name)) { $sql = "SELECT distinct(viewed), created from viewhistory where name='$name' order by id desc limit 14;"; $users = array(); mysql_select_db($db) or die ("Unable to select database!"); $qry = mysql_query($sql) or die ("Error in query: $sql. ".mysql_error()); $needtoclose = 0; if (mysql_num_rows($qry) > 0) { $needtoclose = 3; echo "
    " ."
    \"\"
    " ."
    " ."" ." \"you"; $printed_users = array(); $result = array(); while ($row = mysql_fetch_object($qry)) { if (!in_array($row->viewed, $users)) { echo "

    viewed/1/\">"; echo $row->viewed; $time_ago = timeDiff(strtotime($row->created)); echo " $time_ago

    "; array_push($users, $row->viewed); } } echo "
    "; } mysql_close($link); include("config.php"); include("db.php"); $sql = "SELECT distinct(name), created from viewhistory where viewed='$name' order by id desc limit 15;"; $users = array(); mysql_select_db($db) or die ("Unable to select database!"); $qry2 = mysql_query($sql) or die ("Error in query: $sql. ".mysql_error()); //echo "\"viewed"; if (mysql_num_rows($qry2) > 0) { if ($needtoclose == 0) { echo "
    " ."
    \"\"
    " ."
    "; echo "\"you"; } else { echo "\"you"; } $needtoclose = 3; $printed_users = array(); $result = array(); while ($row = mysql_fetch_object($qry2)) { if (!in_array($row->name, $users)) { echo "

    name/1/\">"; echo $row->name; $time_ago = timeDiff(strtotime($row->created)); echo " $time_ago

    "; array_push($users, $row->name); } } } if ($needtoclose == 3) { echo "
    \n" ."
    \"\"
    " ."" ."
    "; } else { echo "
    "; // echo "
    \n"; } //."
    "; mysql_close($link); } // else { // echo ""; // } } function receiverSitename($site) { if ($site == "localtryst.com") { $receiver_sitename = "LocalTryst.com"; } else if ($site == "casualencounters.com") { $receiver_sitename = "CasualEncounters.com"; } else if ($site == "australiansex.com") { $receiver_sitename = "AustralianSex.com"; } else { $receiver_sitename = "LocalSex.com"; } return $receiver_sitename; } function mailSigs($requesting, $site) { if ($site == "localtryst.com") { $sponsor = "passion.com"; $sponsor_name = "Passion.com"; } else { $sponsor = "adultfriendfinder.com"; $sponsor_name = "Adult FriendFinder"; } if ($requesting == "w4m") { $sig_string = "

    --------------------" ."
    $sponsor_name" ."
    Find Local Partners for Hot Sexual Encounters!"; } else if ($requesting == "m4w") { $sig_string = "

    --------------------" ."
    $sponsor_name" ."
    Get Laid Tonight. Join For FREE!"; } else if ($requesting == "m4m") { $sig_string = "

    --------------------" ."
    $sponsor_name" . "
    Meet Local Men For Hot Sex! Join FREE Now!"; } else if ($requesting == "w4w") { $sig_string = "

    --------------------" . "
    $sponsor_name" . "
    Local Lesbian Partners For Sexual Encounters. Join FREE!"; } else if ($requesting == "c4m") { $sig_string = "

    --------------------" ."
    $sponsor_name" . "
    Find Local Bi Men For Hot Couple Sex! Join FREE Now!"; } else if ($requesting == "c4w") { $sig_string = "

    --------------------" ."
    $sponsor_name" . "
    Meet the Hottest Singles and Wildest Couples in Your Area! "; } else if ($requesting == "c4c") { $sig_string = "

    --------------------" ."
    $sponsor_name" ."
    World's largest swinger personals - over 20,000,000 members! "; } else { echo "

    --------------------" ."
    $sponsor_name" ."
    World's largest swinger personals - over 20,000,000 members! "; } $sig_string = "

    --------------------"; //."
    Adult FriendFinder" //."
    World's largest swinger personals - over 20,000,000 members! "; return $sig_string; } function ThingsToDo($cookie_exist, $verified, $pic_exists, $posting, $member, $bv, $flirt) { $todo = array(); $referer = $_SERVER['HTTP_REFERER']; if (preg_match("/image.php/", $referer)) { echo "
    Success: Your photo is being processed.
    "; } if (isset($cookie_exist)) { // if (empty($verified)) { $string = "Check your email, and click the 'activate account' link (check spam folders)"; array_push($todo, $string); } if (empty($posting)) { $string = "Describe yourself, finish profile."; array_push($todo, $string); } if ($pic_exists == 0 ) { $string = "Be seen, upload photo."; array_push($todo, $string); } if (empty($bv)) { $string = "Visit our Casual Encounters Blog"; array_push($todo, $string); } if (empty($flirt)) { $string = "Flirt. Search, find someone you like and flirt!"; array_push($todo, $string); } // echo "

  • 5. Flirt. Search, find someone you like and flirt!
  • "; if ( (!empty($verified)) && ($pic_exists == 1) && (!empty($posting)) && ($member == 0) ) { $string = "Meet more people on Adult Friend Finder"; array_push($todo, $string); } $element_number = count($todo); if ($element_number > 0) { echo "
    "; echo "

    Things to do:

    "; for ($i = 0; $i != $element_number; ++$i) { $j = $i + 1; if ($j == 1) { echo "

    $j. "; echo $todo[$i]; echo "

    "; } else { echo "

    $j. "; echo $todo[$i]; echo "

    "; } } echo "
    "; } } } function RefererString($referer, $sitename) { $string = "Join $sitename for free and meet some of the 450,000 others looking to hookup."; if (preg_match('/booty/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps just a booty call ?"; } if (preg_match('/buddy/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps just a fuck buddy ?"; } if (preg_match('/stand/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps a one night stand ?"; } if (preg_match('/fling/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps a fling ?"; } if (preg_match('/tonight/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps just sex tonight ?"; } if (preg_match('/casual/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps just casual sex ?"; } if (preg_match('/hookup/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps a casual hookup ?"; } if (preg_match('/looking/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps you're looking for sex ?"; } if (preg_match('/search/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps you search sex ?"; } if (preg_match('/find/', $referer)) { $string = "Looking for someone to spend your life with, or perhaps you want to find sex ?"; } return $string; } function picexist($name, $memcacheflag) { // include("memcaches.php"); include("config.php"); include("db.php"); $db = "localsex"; $sql = "SELECT id, filename, primary_media, flv_filename FROM media WHERE primary_media!=2 AND username=\"$name\" group by filename order by primary_media asc;"; // $key = md5('query'.$sql); // $result = $memcache->get($key); if ($memcacheflag == 1) { //memcache->delete($key, 10); $result = null; } if($result == null) { //echo "not cached"; mysql_select_db($db) or die ("Unable to select database!"); $qry = mysql_query($sql) or die ("Error in query: $sql. ".mysql_error()); $result = array(); while ($row = mysql_fetch_object($qry)) { $result[] = $row; } if (empty($result)) { $result[0]->id = 9876; $exists = 0; } else { $exists = 1; } //$memcache->set($key,$result,0,3600); mysql_close($link); } else { } return $exists; } function censor($text) { $mask = "*"; $badwords = array("bitch", "bastard", "fuck" , "cock" , "cunt" , "FUCK" , "COCK" , "Fuck" , "Cock" , "cum" , "shit" , "anal" ,"piss"); for ($i = 0; $i < sizeof($badwords); $i++) { $censored = substr($badwords[$i], 0, 1); $last = substr($badwords[$i], - 1); for ($x = 1; $x < (strlen($badwords[$i]) - 1); $x++) $censored .= $mask; $censored .= $last; $text = str_replace( $badwords[$i], $censored, $text); } return $text; } function calcAge($bMonth,$bDay,$bYear) { $cMonth = date('n'); $cDay = date('j'); $cYear = date('Y'); if(($cMonth >= $bMonth && $cDay >= $bDay) || ($cMonth > $bMonth)) { return ($cYear - $bYear); } else { return ($cYear - $bYear - 1); } } function distance($lat1, $lng1, $lat2, $lng2, $miles = true) { $pi80 = M_PI / 180; $lat1 *= $pi80; $lng1 *= $pi80; $lat2 *= $pi80; $lng2 *= $pi80; $r = 6372.797; // mean radius of Earth in km $dlat = $lat2 - $lat1; $dlng = $lng2 - $lng1; $a = sin($dlat / 2) * sin($dlat / 2) + cos($lat1) * cos($lat2) * sin($dlng / 2) * sin($dlng / 2); $c = 2 * atan2(sqrt($a), sqrt(1 - $a)); $km = $r * $c; return ($miles ? ($km * 0.621371192) : $km); } function compatibility($logged, $ad) { $compatible = 1; if ( ($logged == "m4w") && ($ad == "w4m") ) { $compatible = 1; } if ( ($logged == "w4m") && ($ad == "m4w") ) { $compatible = 1; } if ( ($logged == "m4w") && ($ad == "w4w") ) { $compatible = 0; } if ( ($logged == "m4w") && ($ad == "c4w") ) { $compatible = 0; } if ( ($logged == "m4w") && ($ad == "m4w") ) { $compatible = 0; } if ( ($logged == "m4m") && ($ad == "m4w") ) { $compatible = 0; } return $compatible; } $code = $_GET['code']; function right_ads($dude) { if (empty($dude)) { //echo "