- Use clisetup.php where possible, remove redundant code
| | |
| | | |
| | | */ |
| | | |
| | | if (php_sapi_name() != 'cli') { |
| | | die('Not on the "shell" (php-cli).'); |
| | | } |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | require INSTALL_PATH.'program/include/iniset.php'; |
| | | |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | | // mapping for table name => primary key |
| | | $primary_keys = array( |
| | |
| | | * - you are dealing with counterfeit header data. |
| | | */ |
| | | |
| | | if (php_sapi_name() != 'cli') { |
| | | die("Not on the 'shell' (php-cli).\n"); |
| | | } |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__).'/..') . '/'); |
| | | require INSTALL_PATH . 'program/include/iniset.php'; |
| | | |
| | | require INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | | if ($argc < 2) { |
| | | die("Usage: " . basename($argv[0]) . " encrypted-hdr-part [encrypted-hdr-part ...]\n"); |
| | |
| | | |
| | | */ |
| | | |
| | | if (php_sapi_name() != 'cli') { |
| | | die('Not on the "shell" (php-cli).'); |
| | | } |
| | | |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | require INSTALL_PATH.'program/include/iniset.php'; |
| | | |
| | | require INSTALL_PATH.'program/include/clisetup.php'; |
| | | |
| | | /** callback function for schema dump **/ |
| | | function print_schema($dump) |
| | |
| | | |
| | | */ |
| | | |
| | | if (php_sapi_name() != 'cli') { |
| | | die('Not on the "shell" (php-cli).'); |
| | | } |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/iniset.php'; |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |
| | | |
| | | $target_dir = unslashify($_SERVER['argv'][1]); |
| | | |
| | |
| | | |
| | | */ |
| | | |
| | | if (php_sapi_name() != 'cli') { |
| | | die('Not on the "shell" (php-cli).'); |
| | | } |
| | | define('INSTALL_PATH', realpath(dirname(__FILE__) . '/..') . '/' ); |
| | | |
| | | require_once INSTALL_PATH . 'program/include/clisetup.php'; |