📁
SKYSHELL MANAGER
PHP v8.3.6
Create
Create
Path:
root
/
var
/
www
/
voigtlaborg
/
wp-content
/
Name
Size
Perm
Actions
📁
themes
-
0755
🗑️
🏷️
🔒
📄
api.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
goods.php
173.77 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
load.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
wp-cron.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
Edit: calculate-server-name.js
'use strict'; const {isIP} = require('net'); const assert = require('assert'); const getHost = host => { if (host[0] === '[') { const idx = host.indexOf(']'); assert(idx !== -1); return host.slice(1, idx); } const idx = host.indexOf(':'); if (idx === -1) { return host; } return host.slice(0, idx); }; module.exports = host => { const servername = getHost(host); if (isIP(servername)) { return ''; } return servername; };
Save