⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
bin
/
View File Name :
doctrine-dbal
#!/usr/bin/php <?php use Doctrine\DBAL\Tools\Console\ConsoleRunner; use Symfony\Component\Console\Helper\HelperSet; $files = [__DIR__ . '/../lib/Doctrine/DBAL/autoload.php', __DIR__ . '/../share/php/Doctrine/DBAL/autoload.php']; $loader = null; $cwd = getcwd(); $directories = [$cwd, $cwd . DIRECTORY_SEPARATOR . 'config', '/etc/doctrine', '/etc/doctrine/dbal']; $configFile = null; foreach ($files as $file) { if (file_exists($file)) { $loader = require $file; break; } } if (! $loader) { throw new RuntimeException('vendor/autoload.php could not be found. Did you run `php composer.phar install`?'); } foreach ($directories as $directory) { $configFile = $directory . DIRECTORY_SEPARATOR . 'cli-config.php'; if (file_exists($configFile)) { break; } } if (! file_exists($configFile)) { ConsoleRunner::printCliConfigTemplate(); exit(1); } if (! is_readable($configFile)) { echo 'Configuration file [' . $configFile . '] does not have read permission.' . PHP_EOL; exit(1); } $commands = []; $helperSet = require $configFile; if (! $helperSet instanceof HelperSet) { foreach ($GLOBALS as $helperSetCandidate) { if ($helperSetCandidate instanceof HelperSet) { $helperSet = $helperSetCandidate; break; } } } ConsoleRunner::run($helperSet, $commands);