true, 'message' => 'Land Owner updated successfully']); } else { echo json_encode(['success' => false, 'message' => 'Error updating Land Owner']); } exit(); } // Handle Land Creator update via AJAX if ($action === 'set_landcreator') { $landcreatorUsername = $_POST['landcreator_username']; $plotId = $_POST['plot_id']; // Perform database update for Land Creator here $sql = "UPDATE chrm_plot_list SET user_id_of_land_creator = '" . aes_encrypt($landcreatorUsername) . "' WHERE plot_id = '" . aes_encrypt($plotId) . "'"; $result = mysqli_query($con, $sql); if ($result) { echo json_encode(['success' => true, 'message' => 'Land Creator updated successfully']); } else { echo json_encode(['success' => false, 'message' => 'Error updating Land Creator']); } exit(); } } ?> 0) { $user_type_in = aes_decrypt($row['user_type']); } // GET USERNAME IN information // Check if this user IS the same user that is logged in $sql = "SELECT * from chrm_backend_user_login_activity WHERE key_value = '".$key_value_in."'"; $result = mysqli_query($con, $sql) or die(mysqli_error($con)); $row = mysqli_fetch_assoc($result); $valid_user = 'false'; foreach($row as $column => $value) { if ($column == 'username' && strlen($value) > 0) { if ($username_in == aes_decrypt($value)) { // Make sure the user coming in is the SAME as the one that is logged in. // Now check to see if that user is the one listed as one of the eligible types if ($user_type_in == "metaverse_owner" || $user_type_in == "admin") { // User is a metavers_owner or admin, this is fine $valid_user = 'true'; } else { // Now we need to go through and make sure that THIS user is a landowner, landcreator or landpresenter for this specific plot or DO NOT give ACCESS if ($username_in == $landowner || $username_in == $landcreator || $username_in == $landpresenter) { // User is a landowner, landcreator or landpresenter, this is fine $valid_user = 'true'; } } } } else if ($column == 'username' && strlen($value) <= 0 && ($user_type_in == "metaverse_owner" || $user_type_in == "admin")) { // IF the username field value is empty then ADMIN and metaverse_owner has full ownership of this $valid_user = 'true'; } } if ($valid_user == "true") { // User is VALID ?>
Plot ID:
Land Owner (SET): Land Owner:
Land Creator (SET): Land Creator:
Land Presenter (SET): Land Presenter:
Presenter Expiry Date:
*/ ?>
Our Metaverse Technology currently does not support mobile devices but in the future will be coming out with a mobile edition. Please contact us for more details!
YOU DO NOT HAVE ACCESS TO THIS PLOT. PLEASE REACH OUT TO THE METAVERSE OWNER SUPPORT TEAM.