Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.1
Cant Read [ /etc/named.conf ]
8.1.31
www-data
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
sdg.amatya.biz-8 /
app /
Http /
[ HOME SHELL ]
Name
Size
Permission
Action
Controllers
[ DIR ]
drwxrwxr-x
Helpers
[ DIR ]
drwxrwxr-x
Middleware
[ DIR ]
drwxrwxr-x
Requests
[ DIR ]
drwxrwxr-x
ViewComposers
[ DIR ]
drwxrwxr-x
Kernel.php
2.4
KB
-rw-rw-r--
helpers.php
9.55
KB
-rw-rw-r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : helpers.php
<?php use App\Exceptions\PermissionException; use App\Models\Receive; use App\Models\RepairDetail; use App\Models\Setting; use App\Models\Company; function checkAccess($modulePermission) { $user = Sentinel::getUser(); if(!$user->hasAccess($modulePermission)){ throw new PermissionException("Permission Denied"); }else{ return true; } } function receive_status($status){ switch($status) { case 0: $status = 'Cylinders Received'; break; case 1: $status = 'Confirmed by Admin'; break; case 2: $status = 'Sent To Factory'; break; case 3: $status = 'Filling'; break; case 4: $status = 'Sent For Confirmation'; break; case 5: $status = 'Confirmed By Client'; break; case 6: $status = 'Repairing'; break; case 7: $status = 'Checking'; break; case 8: $status = 'Packing'; break; case 9: $status = 'Back To Store'; break; case 10: $status = 'Delivered'; break; default: $status = 'Cylinders Received'; } return $status; } function receive_regulator_status($status){ switch($status) { case 0: $status = 'Regulator Received'; break; case 1: $status = 'Confirm and Send for Repair'; break; case 2: $status = 'In Queue for Repair'; break; case 3: $status = 'Repairing'; break; case 4: $status = 'Repair Completed'; break; case 5: $status = 'Delivered'; break; default: $status = 'Regulators Received'; } return $status; } function receive_mask_status($status){ switch($status) { case 0: $status = 'Mask Received'; break; case 1: $status = 'Confirm and Send for Repair'; break; case 2: $status = 'In Queue for Repair'; break; case 3: $status = 'Repairing'; break; case 4: $status = 'Repair Completed'; break; case 5: $status = 'Delivered'; break; default: $status = 'Mask Received'; } return $status; } function repair_status($status){ switch($status) { case 2: $status = 'Cylinders Received'; break; case 3: $status = 'Filling'; break; case 4: $status = 'Sent For Confirmation'; break; case 5: $status = 'Confirmed By Client'; break; case 6: $status = 'Repairing'; break; case 7: $status = 'Checking'; break; case 8: $status = 'Packing'; break; case 9: $status = 'Send To Store'; break; case 10: $status = 'Delivered'; break; default: $status = 'Cylinders Received'; } return $status; } function get_status($receive_id=NULL){ return Receive::where('id',$receive_id)->value('status'); } function convert_number_to_words(float $number) { $decimal = round($number - ($no = floor($number)), 2) * 100; $decimal_part = $decimal; $hundred = null; $hundreds = null; $digits_length = strlen($no); $decimal_length = strlen($decimal); $i = 0; $str = array(); $str2 = 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; } $d = 0; while( $d < $decimal_length ) { $divider = ($d == 2) ? 10 : 100; $decimal_number = floor($decimal % $divider); $decimal = floor($decimal / $divider); $d += $divider == 10 ? 1 : 2; if ($decimal_number) { $plurals = (($counter = count($str2)) && $decimal_number > 9) ? 's' : null; $hundreds = ($counter == 1 && $str2[0]) ? ' and ' : null; @$str2 [] = ($decimal_number < 21) ? $words[$decimal_number].' '. $digits[$decimal_number]. $plural.' '.$hundred:$words[floor($decimal_number / 10) * 10].' '.$words[$decimal_number % 10]. ' '.$digits[$counter].$plural.' '.$hundred; } else $str2[] = null; } $Rupees = implode('', array_reverse($str)); $paise = implode('', array_reverse($str2)); $paise = ($decimal_part > 0) ? $paise . ' Paisa' : ''; return ($Rupees ? $Rupees . ' Rupees ' : '') . $paise; } function convert_number_to_words_dollar(float $number) { $decimal = round($number - ($no = floor($number)), 2) * 100; $decimal_part = $decimal; $hundred = null; $hundreds = null; $digits_length = strlen($no); $decimal_length = strlen($decimal); $i = 0; $str = array(); $str2 = 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; } $d = 0; while( $d < $decimal_length ) { $divider = ($d == 2) ? 10 : 100; $decimal_number = floor($decimal % $divider); $decimal = floor($decimal / $divider); $d += $divider == 10 ? 1 : 2; if ($decimal_number) { $plurals = (($counter = count($str2)) && $decimal_number > 9) ? 's' : null; $hundreds = ($counter == 1 && $str2[0]) ? ' and ' : null; @$str2 [] = ($decimal_number < 21) ? $words[$decimal_number].' '. $digits[$decimal_number]. $plural.' '.$hundred:$words[floor($decimal_number / 10) * 10].' '.$words[$decimal_number % 10]. ' '.$digits[$counter].$plural.' '.$hundred; } else $str2[] = null; } $Rupees = implode('', array_reverse($str)); $paise = implode('', array_reverse($str2)); $paise = ($decimal_part > 0) ? $paise . ' Cent' : ''; return ($Rupees ? $Rupees . ' Dollar ' : '') . $paise; } function get_exchange_rate($from,$to){ $url = 'http://finance.yahoo.com/d/quotes.csv?f=l1d1t1&s='.urlencode($from).urlencode($to).'=X'; $handle = fopen($url, 'r'); if ($handle) { $result = fgetcsv($handle); fclose($handle); } return $result[0]; // echo '1 '.$from.' is worth '.$result[0].' '.$to.' Based on data on '.$result[1].' '.$result[2];die; } function filling_status($receive_id,$repair_id=null){ $count = RepairDetail::where('repair_id',$repair_id)->count(); $receive=Receive::where('id',$receive_id)->first(); if($count==$receive->total_cylinder){ return true; }else{ return false; } } function vat(){ return Setting::select('vat')->first()->vat; } function taxOption1(){ return Setting::select('tax_option1')->first()->tax_option1; } function taxOption2(){ return Setting::select('tax_option2')->first()->tax_option2; } function isTaxOption1Enable(){ $tax1Flag = Setting::select('tax_option1_enable')->first()->tax_option1_enable; if($tax1Flag == 1){ return true; } return false; } function isTaxOption2Enable(){ $tax2Flag = Setting::select('tax_option2_enable')->first()->tax_option2_enable; if($tax2Flag == 1){ return true; } return false; } function custom_money_format($num) { $explrestunits = "" ; $num = preg_replace('/,+/', '', $num); $words = explode(".", $num); $des = "00"; if(count($words)<=2){ $num=$words[0]; if(count($words)>=2){$des=$words[1];} if(strlen($des)<2){$des="$des";}else{$des=substr($des,0,2);} } if(strlen($num)>3){ $lastthree = substr($num, strlen($num)-3, strlen($num)); $restunits = substr($num, 0, strlen($num)-3); // extracts the last three digits $restunits = (strlen($restunits)%2 == 1)?"0".$restunits:$restunits; // explodes the remaining digits in 2's formats, adds a zero in the beginning to maintain the 2's grouping. $expunit = str_split($restunits, 2); for($i=0; $i<sizeof($expunit); $i++){ // creates each of the 2's group and adds a comma to the end if($i==0) { $explrestunits .= (int)$expunit[$i].","; // if is first value , convert into integer }else{ $explrestunits .= $expunit[$i].","; } } $thecash = $explrestunits.$lastthree; } else { $thecash = $num; } return "$thecash.$des"; // writes the final format where $currency is the currency symbol. } function Company(){ $company = Company::where(['user_id'=>\Sentinel::getUser()->id])->first(); return $company; }
Close