Ghost Exploiter Team Official
/
home
/
ramdevpcb
/
public_html
/
admin.ramdevpcb.com
/
include
/
Nama File / Folder
Size
Action
managed-resource
--
NONE
ajax-common.php
6.646KB
Hapus
Edit
Rename
db.php
2.886KB
Hapus
Edit
Rename
error_log
994.493KB
Hapus
Edit
Rename
footer.php
0.485KB
Hapus
Edit
Rename
header.php
25.84KB
Hapus
Edit
Rename
<=Back
<?php $mysql_hostname = "localhost"; $mysql_user = "ramdevpcb_live"; $mysql_password = "_mA2ay0NyHS7oFj9"; $mysql_database = "ramdevpcb_live"; /*$mysql_hostname = "localhost"; $mysql_user = "creatsjs_ramdevrcb"; $mysql_password = 'j-yK$Kt23v4R'; $mysql_database = "creatsjs_ramdev";*/ /*$mysql_user = "markeemx_pcb"; $mysql_password = "ramdevpcb@123"; $mysql_database = "markeemx_ramdev_pcb";*/ date_default_timezone_set('Asia/Kolkata'); $conn = new mysqli($mysql_hostname, $mysql_user, $mysql_password, $mysql_database); if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } else { // echo "Connection Successful"; // exit; } function get_financial_year_range() { $year = date('Y'); $month = date('m'); if($month < 4){ $year = $year-1; } $start_date = date('y',strtotime(($year).'-04-01')); $end_date = date('y',strtotime(($year+1).'-03-31')); //$response = array('start_date' => $start_date, 'end_date' => $end_date); return $start_date . '-' . $end_date; } function numberToWords($number) { $amount_after_decimal = round($number - ($num = floor($number)), 2) * 100; // Check if there is any number after decimal $amt_hundred = null; $count_length = strlen($num); $x = 0; $string = array(); $change_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' ); $here_digits = array('', 'Hundred','Thousand','Lakh', 'Crore'); while( $x < $count_length ) { $get_divider = ($x == 2) ? 10 : 100; $amount = floor($num % $get_divider); $num = floor($num / $get_divider); $x += $get_divider == 10 ? 1 : 2; if ($amount) { $add_plural = (($counter = count($string)) && $amount > 9) ? 's' : null; $amt_hundred = ($counter == 1 && $string[0]) ? ' and ' : null; $string [] = ($amount < 21) ? $change_words[$amount].' '. $here_digits[$counter]. $add_plural.' '.$amt_hundred:$change_words[floor($amount / 10) * 10].' '.$change_words[$amount % 10]. ' '.$here_digits[$counter].$add_plural.' '.$amt_hundred; } else { $string[] = null; } } $implode_to_Rupees = implode('', array_reverse($string)); $get_paise = ($amount_after_decimal > 0) ? "And " . ($change_words[$amount_after_decimal / 10] . " " . $change_words[$amount_after_decimal % 10]) . ' Paise' : ''; return ($implode_to_Rupees ? $implode_to_Rupees . 'Rupees ' : '') . $get_paise . " Only"; } ?>
Liking