0byt3m1n1
Path:
/
var
/
www
/
listcrawler.app
/
public_html
/
[
Home
]
File: validate-number.php
<?php require 'db.php'; $remoteIP = get_ip_address(); $list_id = ( isset($_REQUEST["list_id"]) && is_numeric($_REQUEST["list_id"]) ) ? $_REQUEST["list_id"] : 0; $location_id = ( isset($_REQUEST["location_id"]) && is_numeric($_REQUEST["location_id"]) ) ? $_REQUEST["location_id"] : 0; $getIP = "SELECT count(id) as count_ip from `ip_addresses` WHERE `ip_address` = '" . $remoteIP . "' "; $getIPResult = mysqli_query($conn, $getIP); $getIPRow = mysqli_fetch_assoc($getIPResult); if ($getIPRow['count_ip'] >= 5) { echo "<span class = 'mobile-info-black' style='margin-top: 1.5rem;margin-bottom: 0.5rem;'>You have reached your limit on phone numbers for 24 hours.</span><br>"; } else { // Get mobile number //$getMobileNumber = "SELECT `mobile_id` from `lists_locations` WHERE `list_id` = '" . $list_id . "' LIMIT 1 "; $getMobileNumber = "SELECT `mobile_number` from `contacts` ORDER BY RAND() LIMIT 1 "; $getMobileNumberResult = mysqli_query($conn, $getMobileNumber); $count_MobileNumber = mysqli_num_rows($getMobileNumberResult); echo "<span style='color: #222 !important;font-weight: 700; font-size:1.2rem;'>Mobile Number: </span><span class='purple-light' style='font-weight: 700;font-size:1.2rem;'> "; if ( $count_MobileNumber > 0 ) { $getMobileNumberRow = mysqli_fetch_assoc($getMobileNumberResult); //echo get_mobile_number($getMobileNumberRow["mobile_id"]); echo $getMobileNumberRow["mobile_number"]; } else { echo "987897475212"; } echo "</span> "; $insertIP = "INSERT INTO `ip_addresses` (`ip_address`) VALUES ( '" . $remoteIP. "')"; mysqli_query($conn, $insertIP); } exit;