UnknownSec Bypass
403
:
/
var
/
www
/
jpsagrisolution
/
cpanel
/
product_images
/
xryukz_sym
/
root
/
var
/
www
/
cotutilitydash
/ [
drwxrwxr-x
]
Menu
Upload
Mass depes
Mass delete
Terminal
Info server
About
name :
config.php
<?php // $hostname="http://localhost/cotutilitydash/"; // $conn=mysqli_connect("localhost","root","","consumptiondb") or die("Connection failled:" . mysqli_connect_error()); // $connect = new PDO("mysql:localhost=3306; dbname=consumptiondb", "root", ""); $baseurl="https://cotutilitydash.com/"; $hostname="https://cotutilitydash.com/index.php"; $conn=mysqli_connect("localhost","root","vG!fM@*p!8#3P3bss(_%FE","consumptiondb") or die("Connection failled:" . mysqli_connect_error()); $connect = new PDO("mysql:localhost=3306; dbname=consumptiondb", "root", "vG!fM@*p!8#3P3bss(_%FE") or die("Connection failled:" . mysqli_connect_error()); /*------------ Identifier Declaration-------------*/ $gnotdeleted = 0; $gdeleted = 1; $gaccountidentifier = 1; $gpartyidentifier = 2; $gdoctoridentifier = 3; $gcategoryidentifier = 4; $gtestidentifier = 5; $gemployeeidentifier = 6; $gexpenceidentifier = 7; $gbankidentifier = 8; $gdepartmentidentifier = 9; $ginsuranceidentifier = 10; $ghospitalsettinglidentifier = 1; $gdoctorsettingidentifier = 2; $groomCategoryidentifier = 1; $groomidentifier = 2; $gcurrentfinancialyearid = 1; function get_noof_rows($conn,$query) { $rowcount=0; $result = mysqli_query($conn,$query); $rowcount=mysqli_num_rows($result); return $rowcount; } function insertrecord($conn,$query) { $result=false; $result = mysqli_query($conn,$query); return $result; } function updaterecord($conn, $query) { $result=false; $result = mysqli_query($conn,$query); return $result; } function deleterecord($conn,$query) { $result=false; $result = mysqli_query($conn,$query); return $result; } function getIndianCurrency(float $number) { $decimal = round($number - ($no = floor($number)), 2) * 100; $hundred = null; $digits_length = strlen($no); $i = 0; $str = array(); $words = array(0 => '', 1 => 'one', 2 => 'two', 3 => 'three', 4 => 'four', 5 => 'five', 6 => 'six', 7 => 'seven', 8 => 'eight', 9 => 'nine', 10 => 'ten', 11 => 'eleven', 12 => 'twelve', 13 => 'thirteen', 14 => 'fourteen', 15 => 'fifteen', 16 => 'sixteen', 17 => 'seventeen', 18 => 'eighteen', 19 => 'nineteen', 20 => 'twenty', 30 => 'thirty', 40 => 'forty', 50 => 'fifty', 60 => 'sixty', 70 => 'seventy', 80 => 'eighty', 90 => 'ninety'); $digits = array('', 'hundred','thousand','lakh', 'crore'); while( $i < $digits_length ) { $divider = ($i == 2) ? 10 : 100; $number = floor($no % $divider); $no = floor($no / $divider); $i += $divider == 10 ? 1 : 2; if ($number) { $plural = (($counter = count($str)) && $number > 9) ? 's' : null; $hundred = ($counter == 1 && $str[0]) ? ' and ' : null; $str [] = ($number < 21) ? $words[$number].' '. $digits[$counter]. $plural.' '.$hundred:$words[floor($number / 10) * 10].' '.$words[$number % 10]. ' '.$digits[$counter].$plural.' '.$hundred; } else $str[] = null; } $Rupees = implode('', array_reverse($str)); $paise = ($decimal > 0) ? "." . ($words[$decimal / 10] . " " . $words[$decimal % 10]) . ' Paise' : ''; return ($Rupees ? $Rupees . 'Rupees ' : '') . $paise; } function totalslotwithdoctor($depid,$consultantid,$conn) { $currentdate=date("y-m-d"); $json = array(); $eventArray = array(); $sqlQuery1 = "SELECT holidaydescription as title,holidaydate1 as start,'#FF0000' as backgroundColor FROM masterappointmenttb where depid='".$depid."' and consultantid='".$consultantid."' and holidaydate1 >='".$currentdate."' and identifier=1 "; $result1 = mysqli_query($conn, $sqlQuery1); while ($row1 = mysqli_fetch_assoc($result1)) { $r=$row1; array_push($eventArray, $r); } mysqli_free_result($result1); $sqlQuery="SELECT Sum(noofseats) as title,seatdate1 as start,'#cdf3cd' as backgroundColor from v_totalavailableslot where seatdate1 >='".$currentdate."' depid='".$depid."' and consultantid='".$consultantid."' group by seatdate1"; $result = mysqli_query($conn, $sqlQuery); while ($row = mysqli_fetch_assoc($result)) { if($row["title"]==0) { $row["title"]="NA"; array_push($eventArray, $row); } else { array_push($eventArray, $row); } } mysqli_free_result($result); mysqli_close($conn); echo json_encode($eventArray); } function getuhid() { $data["uhid"]="0"; $query="Select concat('UHID/',Convert(UserDetailsID,Varchar(10)), '/', DATE_FORMAT(Now(), '%Y%m%d%h%i%s'),'/', LEFT(CAST(RAND() * (10000) as int),4)) as uhid from userdetailstb where userdetailsid=1"; $result = mysqli_query($conn, $query); while ($row=mysqli_fetch_array($result)) { $data["uhid"] = $row["uhid"]; } return $data["uhid"]; } function getsuhid() { $data["suhid"]="0"; $query="Select Max(ifnull(suhid,0))+1 as suhid from patientmastertb where isdeleted=0"; $result = mysqli_query($conn, $query); while ($row=mysqli_fetch_array($result)) { $data["suhid"] = $row["suhid"]; } return $data["suhid"]; } ?>
Copyright © 2025 - UnknownSec