Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
m2 /
vendor /
bin /
Delete
Unzip
Name
Size
Permission
Date
Action
codecept
83
B
-rwxrwxr-x
2021-05-28 17:43
composer
1.72
KB
-rwxrwxr-x
2021-04-27 11:10
cssmin
754
B
-rwxrwxr-x
2018-01-15 15:26
jp.php
2.36
KB
-rwxrwxr-x
2020-07-31 21:01
jsonlint
2.94
KB
-rwxrwxr-x
2020-11-11 09:19
lessc
3.95
KB
-rwxrwxr-x
2019-11-06 18:30
mftf
1.38
KB
-rwxrwxr-x
2021-05-05 15:01
pdepend
2.77
KB
-rwxrwxr-x
2020-02-08 12:06
php-cs-fixer
2.92
KB
-rwxrwxr-x
2020-12-17 16:34
php-parse
6.1
KB
-rwxrwxr-x
2020-04-10 16:34
phpcbf
572
B
-rwxrwxr-x
2020-10-23 02:01
phpcpd
1.33
KB
-rwxrwxr-x
2020-02-22 06:03
phpcs
559
B
-rwxrwxr-x
2020-10-23 02:01
phpmd
1.89
KB
-rwxrwxr-x
2020-09-23 22:06
phpstan
14.21
MB
-rwxrwxr-x
2020-05-05 12:55
phpstan.phar
14.21
MB
-rwxrwxr-x
2020-05-05 12:55
phpunit
1.4
KB
-rwxrwxr-x
2020-05-22 13:54
templatemap_generator.php
4.61
KB
-rwxrwxr-x
2020-12-15 14:57
validate-json
6.66
KB
-rwxrwxr-x
2020-05-27 16:41
yaml-lint
1.12
KB
-rwxrwxr-x
2021-06-06 09:51
Save
Rename
#!/usr/bin/env php <?php /* * This file is part of the JSON Lint package. * * (c) Jordi Boggiano <j.boggiano@seld.be> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ function includeIfExists($file) { if (file_exists($file)) { return include $file; } } if (!includeIfExists(__DIR__.'/../vendor/autoload.php') && !includeIfExists(__DIR__.'/../../../autoload.php')) { $msg = 'You must set up the project dependencies, run the following commands:'.PHP_EOL. 'curl -sS https://getcomposer.org/installer | php'.PHP_EOL. 'php composer.phar install'.PHP_EOL; fwrite(STDERR, $msg); exit(1); } use Seld\JsonLint\JsonParser; $files = array(); $quiet = false; if (isset($_SERVER['argc']) && $_SERVER['argc'] > 1) { for ($i = 1; $i < $_SERVER['argc']; $i++) { $arg = $_SERVER['argv'][$i]; if ($arg == '-q' || $arg == '--quiet') { $quiet = true; } else { if ($arg == '-h' || $arg == '--help') { showUsage($_SERVER['argv'][0]); } else { $files[] = $arg; } } } } if (!empty($files)) { // file linting $exitCode = 0; foreach ($files as $file) { $result = lintFile($file, $quiet); if ($result === false) { $exitCode = 1; } } exit($exitCode); } else { //stdin linting if ($contents = file_get_contents('php://stdin')) { lint($contents); } else { fwrite(STDERR, 'No file name or json input given' . PHP_EOL); exit(1); } } // stdin lint function function lint($content, $quiet = false) { $parser = new JsonParser(); if ($err = $parser->lint($content)) { fwrite(STDERR, $err->getMessage() . ' (stdin)' . PHP_EOL); exit(1); } if (!$quiet) { echo 'Valid JSON (stdin)' . PHP_EOL; exit(0); } } // file lint function function lintFile($file, $quiet = false) { if (!preg_match('{^https?://}i', $file)) { if (!file_exists($file)) { fwrite(STDERR, 'File not found: ' . $file . PHP_EOL); return false; } if (!is_readable($file)) { fwrite(STDERR, 'File not readable: ' . $file . PHP_EOL); return false; } } $content = file_get_contents($file); $parser = new JsonParser(); if ($err = $parser->lint($content)) { fwrite(STDERR, $file . ': ' . $err->getMessage() . PHP_EOL); return false; } if (!$quiet) { echo 'Valid JSON (' . $file . ')' . PHP_EOL; } return true; } // usage text function function showUsage($programPath) { echo 'Usage: '.$programPath.' file [options]'.PHP_EOL; echo PHP_EOL; echo 'Options:'.PHP_EOL; echo ' -q, --quiet Cause jsonlint to be quiet when no errors are found'.PHP_EOL; echo ' -h, --help Show this message'.PHP_EOL; exit(0); }