PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/productjuly1video/famousdimensions.click/ajax/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/productjuly1video/famousdimensions.click/ajax/verification.php |
<?php if (IS_LOGGED == false) { $data = array('status' => 400, 'error' => 'Not logged in'); echo json_encode($data); exit(); } if ($_GET['first'] == 'request') { $error = false; $user_id = $pt->user->id; $request_exists = ($db->where('user_id',$user_id)->getValue(T_VERIF_REQUESTS,'count(*)')); $post = (empty($_POST['first_name']) || empty($_POST['last_name']) || empty($_POST['message']) || empty($_FILES['identity'])); if (!empty($request_exists)) { $error = $lang->submit_verif_request_error; } elseif ($post == true) { $error = $lang->please_check_details; } else{ if (!empty($_FILES["identity"]["error"]) || ($_FILES["identity"]["size"] > $pt->config->max_upload)) { $max = pt_size_format($pt->config->max_upload); $error = ($lang->file_is_too_big .": $max"); } else if (strlen($_POST['first_name']) < 4 || strlen($_POST['first_name']) > 32) { $error = $lang->username_characters_length; } else if (strlen($_POST['last_name']) > 32) { $error = $lang->ivalid_last_name; } else if (!file_exists($_FILES['identity']['tmp_name'])) { $error = $lang->ivalid_image_file; } else if (file_exists($_FILES["identity"]["tmp_name"])) { $image = getimagesize($_FILES["identity"]["tmp_name"]); if (!in_array($image[2], array(IMAGETYPE_GIF,IMAGETYPE_JPEG,IMAGETYPE_PNG,IMAGETYPE_BMP))) { $error = $lang->ivalid_id_file; } } } if (empty($error)) { $file_info = array( 'file' => $_FILES['identity']['tmp_name'], 'size' => $_FILES['identity']['size'], 'name' => $_FILES['identity']['name'], 'type' => $_FILES['identity']['type'] ); $upload = PT_ShareFile($file_info); $re_data = array( 'user_id' => $user_id, 'name' => PT_Secure($_POST['first_name']) . ' ' . PT_Secure($_POST['last_name']), 'message' => PT_Secure($_POST['message']), 'time' => time(), 'media_file' => $upload['filename'] ); $insert = $db->insert(T_VERIF_REQUESTS,$re_data); if ($insert) { $data['status'] = 200; $data['message'] = $lang->verif_request_sent; } else{ $data['status'] = 500; $data['message'] = $lang->unknown_error; } } else{ $data['status'] = 400; $data['message'] = $error; } }