2 include '../api/server_info.php';
3 if (isset($_POST['mail'])){
4 if (file_exists(preg_split('/@/',$_POST['mail'])[0].'/index.php')){
5 $conn=mysqli_connect($db_link,$db_user,$db_password,$db_name);
7 $query=mysqli_query($conn,'SELECT mail_password FROM mail where mail_user="'.$_POST['mail'].'"');
8 $i=mysqli_fetch_array($query,MYSQLI_ASSOC);
9 if ($_POST['hash']==$i['mail_password']){
10 http_response_code(200);
13 $query=mysqli_query($conn,'SELECT channel_name FROM mail_lists WHERE channel_name="'.$_POST['mail'].'"');
14 if (gettype($query=='boolean')){
15 http_response_code(400);
18 http_response_code(200);
23 http_response_code(500);
27 http_response_code(400);