File manager - Edit - /home/cipherteam/htdocs/cipherteam.in/admin/API/Login.php
Back
<?php require_once('Connection.php'); if(isset($_GET['email'])) { $email = $_GET['email']; $pass = $_GET['password']; //check User Exists or not $sql = "SELECT COUNT(`client_table`.`client_id`) AS 'TOTAL' FROM `client_table` WHERE `client_table`.`e_mail` = '$email' AND `client_table`.`password` = '$pass'"; $rows = $con->query($sql); $data = $rows->fetch_assoc(); if($data['TOTAL'] > 0) { $status = "USER_EXIST"; $con->close(); echo json_encode(array("RESPONSE"=>$status)); exit; } else { $status = "USER_NOT_EXIST"; $con->close(); echo json_encode(array("RESPONSE"=>$status)); exit; } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.2.9 | Generation time: 0.1 |
proxy
|
phpinfo
|
Settings