📁
SKYSHELL MANAGER
PHP v8.2.30
Create
Create
Path:
root
/
home
/
qooetu
/
costes.qooetu.com
/
Name
Size
Perm
Actions
📁
.well-known
-
0755
🗑️
🏷️
🔒
📁
2e19d9
-
0755
🗑️
🏷️
🔒
📁
6b114
-
0755
🗑️
🏷️
🔒
📁
Modules
-
0755
🗑️
🏷️
🔒
📁
app
-
0755
🗑️
🏷️
🔒
📁
assets
-
0755
🗑️
🏷️
🔒
📁
bootstrap
-
0755
🗑️
🏷️
🔒
📁
cgi-bin
-
0755
🗑️
🏷️
🔒
📁
config
-
0755
🗑️
🏷️
🔒
📁
css
-
0755
🗑️
🏷️
🔒
📁
database
-
0755
🗑️
🏷️
🔒
📁
images
-
0755
🗑️
🏷️
🔒
📁
js
-
0755
🗑️
🏷️
🔒
📁
nbproject
-
0755
🗑️
🏷️
🔒
📁
public
-
0755
🗑️
🏷️
🔒
📁
resources
-
0755
🗑️
🏷️
🔒
📁
routes
-
0755
🗑️
🏷️
🔒
📁
storage
-
0755
🗑️
🏷️
🔒
📁
tests
-
0755
🗑️
🏷️
🔒
📁
uploads
-
0755
🗑️
🏷️
🔒
📁
vendor
-
0755
🗑️
🏷️
🔒
📁
wp-admin
-
0755
🗑️
🏷️
🔒
📁
wp-content
-
0755
🗑️
🏷️
🔒
📁
wp-includes
-
0755
🗑️
🏷️
🔒
📄
.htaccess
0.23 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
COOKIE.txt
0.2 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
X7ROOT.txt
0.27 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
defaults.php
1.29 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
engine.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
error_log
813.08 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
features.php
11.28 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
googlecfb82e09419fc0f6.html
0.05 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php
12.43 KB
0555
🗑️
🏷️
⬇️
✏️
🔒
📄
index.php0
1.56 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
inputs.php
0.12 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
kurd.html
1.07 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
library.php
0 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
min.php
6.83 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
p.php
2.75 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
php.ini
0.04 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
product.php
1.78 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
qpmwztts.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
robots.txt
0.32 KB
0444
🗑️
🏷️
⬇️
✏️
🔒
📄
tovmbkwh.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
tyyffovi.php
0.74 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
📄
veoxv.html
1.23 KB
0644
🗑️
🏷️
⬇️
✏️
🔒
Edit: index.js
var fs = require('fs') var path = require('path') var util = require('util') function Y18N (opts) { // configurable options. opts = opts || {} this.directory = opts.directory || './locales' this.updateFiles = typeof opts.updateFiles === 'boolean' ? opts.updateFiles : true this.locale = opts.locale || 'en' this.fallbackToLanguage = typeof opts.fallbackToLanguage === 'boolean' ? opts.fallbackToLanguage : true // internal stuff. this.cache = Object.create(null) this.writeQueue = [] } Y18N.prototype.__ = function () { if (typeof arguments[0] !== 'string') { return this._taggedLiteral.apply(this, arguments) } var args = Array.prototype.slice.call(arguments) var str = args.shift() var cb = function () {} // start with noop. if (typeof args[args.length - 1] === 'function') cb = args.pop() cb = cb || function () {} // noop. if (!this.cache[this.locale]) this._readLocaleFile() // we've observed a new string, update the language file. if (!this.cache[this.locale][str] && this.updateFiles) { this.cache[this.locale][str] = str // include the current directory and locale, // since these values could change before the // write is performed. this._enqueueWrite([this.directory, this.locale, cb]) } else { cb() } return util.format.apply(util, [this.cache[this.locale][str] || str].concat(args)) } Y18N.prototype._taggedLiteral = function (parts) { var args = arguments var str = '' parts.forEach(function (part, i) { var arg = args[i + 1] str += part if (typeof arg !== 'undefined') { str += '%s' } }) return this.__.apply(null, [str].concat([].slice.call(arguments, 1))) } Y18N.prototype._enqueueWrite = function (work) { this.writeQueue.push(work) if (this.writeQueue.length === 1) this._processWriteQueue() } Y18N.prototype._processWriteQueue = function () { var _this = this var work = this.writeQueue[0] // destructure the enqueued work. var directory = work[0] var locale = work[1] var cb = work[2] var languageFile = this._resolveLocaleFile(directory, locale) var serializedLocale = JSON.stringify(this.cache[locale], null, 2) fs.writeFile(languageFile, serializedLocale, 'utf-8', function (err) { _this.writeQueue.shift() if (_this.writeQueue.length > 0) _this._processWriteQueue() cb(err) }) } Y18N.prototype._readLocaleFile = function () { var localeLookup = {} var languageFile = this._resolveLocaleFile(this.directory, this.locale) try { localeLookup = JSON.parse(fs.readFileSync(languageFile, 'utf-8')) } catch (err) { if (err instanceof SyntaxError) { err.message = 'syntax error in ' + languageFile } if (err.code === 'ENOENT') localeLookup = {} else throw err } this.cache[this.locale] = localeLookup } Y18N.prototype._resolveLocaleFile = function (directory, locale) { var file = path.resolve(directory, './', locale + '.json') if (this.fallbackToLanguage && !this._fileExistsSync(file) && ~locale.lastIndexOf('_')) { // attempt fallback to language only var languageFile = path.resolve(directory, './', locale.split('_')[0] + '.json') if (this._fileExistsSync(languageFile)) file = languageFile } return file } // this only exists because fs.existsSync() "will be deprecated" // see https://nodejs.org/api/fs.html#fs_fs_existssync_path Y18N.prototype._fileExistsSync = function (file) { try { return fs.statSync(file).isFile() } catch (err) { return false } } Y18N.prototype.__n = function () { var args = Array.prototype.slice.call(arguments) var singular = args.shift() var plural = args.shift() var quantity = args.shift() var cb = function () {} // start with noop. if (typeof args[args.length - 1] === 'function') cb = args.pop() if (!this.cache[this.locale]) this._readLocaleFile() var str = quantity === 1 ? singular : plural if (this.cache[this.locale][singular]) { str = this.cache[this.locale][singular][quantity === 1 ? 'one' : 'other'] } // we've observed a new string, update the language file. if (!this.cache[this.locale][singular] && this.updateFiles) { this.cache[this.locale][singular] = { one: singular, other: plural } // include the current directory and locale, // since these values could change before the // write is performed. this._enqueueWrite([this.directory, this.locale, cb]) } else { cb() } // if a %d placeholder is provided, add quantity // to the arguments expanded by util.format. var values = [str] if (~str.indexOf('%d')) values.push(quantity) return util.format.apply(util, values.concat(args)) } Y18N.prototype.setLocale = function (locale) { this.locale = locale } Y18N.prototype.getLocale = function () { return this.locale } Y18N.prototype.updateLocale = function (obj) { if (!this.cache[this.locale]) this._readLocaleFile() for (var key in obj) { this.cache[this.locale][key] = obj[key] } } module.exports = function (opts) { var y18n = new Y18N(opts) // bind all functions to y18n, so that // they can be used in isolation. for (var key in y18n) { if (typeof y18n[key] === 'function') { y18n[key] = y18n[key].bind(y18n) } } return y18n }
Save