?

แEำ๊คฮ๏Lwebshll2019

Current Path : /home/webyoo/www/backup/allback/docteur-site/cv/sym/a/leumi/site/
Upload File :
Current File : /home/webyoo/www/backup/allback/docteur-site/cv/sym/a/leumi/site/valid_property.php

<?php
include "start.php";
include "send_email.php";
// extract($_POST);
//print_r($_POST);
if(isset($_GET['id'])){
    $id = (int)$_GET['id'];
    $myinsert = "UPDATE rent_properties SET `status` = 3 WHERE id_property = ".$id;
    $sql = mysqli_query($link,$myinsert);

    // Rรฉcupรฉrer les informations du propriรฉtaire et du bien
    $property_query = mysqli_query($link, "SELECT title, id_user FROM rent_properties WHERE id_property = ".$id);
    $property_data = mysqli_fetch_array($property_query, MYSQLI_ASSOC);

    $user_query = mysqli_query($link, "SELECT email, name FROM rent_users WHERE id = ".$property_data['id_user']);
    $user_data = mysqli_fetch_array($user_query, MYSQLI_ASSOC);

    // Envoi d'email de notification pour feliciter l'utilisateur pour le statut "ืคืขื™ืœ"
    $status_text = "ืคืขื™ืœ";
    $subject = "ืฉื™ื ื•ื™ ื‘ืกื˜ื˜ื•ืก ืฉืœ ื”ื ื›ืก ืฉืœืš - ืคืขื™ืœ!!!";
    $email_message = "<html><head><meta charset='UTF-8'></head><body dir='rtl'>";
    $email_message .= "<h2>ืฉืœื•ื ".$user_data['name'].",</h2>";
    $email_message .= "<p>ืžื–ืœ ื˜ื•ื‘ ๐Ÿฅณ๐Ÿฅณ๐Ÿฅณ !</p>";
    $email_message .= "<p>ื”ืกื˜ื˜ื•ืก ืฉืœ ื”ื ื›ืก ืฉืœืš ืฉื•ื ื” ืœ'ืคืขื™ืœ'.</p>";
    $email_message .= "<p><strong>ื ื›ืก:</strong> ".$property_data['title']."</p>";
    $email_message .= "<p><strong>ืกื˜ื˜ื•ืก ื—ื“ืฉ:</strong> ".$status_text."</p>";
    $email_message .= "<p>ื”ืชื—ื‘ืจ ืœืืชืจ ื›ื“ื™ ืœื ื”ืœ ืืช ื”ื ื›ืก ืฉืœืš.</p>";
    $email_message .= "</body></html>";

    sendEmail($user_data['email'], $subject, $email_message, 'ืืฉื›ืจื” - ืขื“ื›ื•ืŸ ืกื˜ื˜ื•ืก ื ื›ืก');

    //redirect to admin page
    header("Location: https://web4yoo.com/leumi/site/dashboard-my-properties.php");
} else {
    die("Invalid input");
}

?>



web shell, Coded By 2019