diff options
author | Mate Bartus <mate.bartus@gmail.com> | 2015-06-30 16:36:34 +0200 |
---|---|---|
committer | Mate Bartus <mate.bartus@gmail.com> | 2015-07-08 01:28:10 +0200 |
commit | 10f6716566fce9d9c38f3dd99419595b2a1cba4c (patch) | |
tree | 435a7a88bea17219187c271e38f2b07a677223aa /phpBB/install/phpbbcli.php | |
parent | 249345d9cc6d6bff380436d6e05f24918d762c0d (diff) | |
download | forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.gz forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.bz2 forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.tar.xz forums-10f6716566fce9d9c38f3dd99419595b2a1cba4c.zip |
[ticket/13740] Restore original install folder
This reverts commit 934e2821f1cef5e2e21ad6d96f7beb45647ed81c.
PHPBB3-13740
Diffstat (limited to 'phpBB/install/phpbbcli.php')
-rwxr-xr-x | phpBB/install/phpbbcli.php | 68 |
1 files changed, 0 insertions, 68 deletions
diff --git a/phpBB/install/phpbbcli.php b/phpBB/install/phpbbcli.php deleted file mode 100755 index 20a202f584..0000000000 --- a/phpBB/install/phpbbcli.php +++ /dev/null @@ -1,68 +0,0 @@ -#!/usr/bin/env php -<?php -/** -* -* This file is part of the phpBB Forum Software package. -* -* @copyright (c) phpBB Limited <https://www.phpbb.com> -* @license GNU General Public License, version 2 (GPL-2.0) -* -* For full copyright and license information, please see -* the docs/CREDITS.txt file. -* -*/ - -use Symfony\Component\Console\Input\ArgvInput; - -if (php_sapi_name() !== 'cli') -{ - echo 'This program must be run from the command line.' . PHP_EOL; - exit(1); -} - -define('IN_PHPBB', true); -define('IN_INSTALL', true); -define('PHPBB_ENVIRONMENT', 'production'); -$phpbb_root_path = __DIR__ . '/../'; -$phpEx = substr(strrchr(__FILE__, '.'), 1); - -// -// Let's do the common.php logic -// -require($phpbb_root_path . 'includes/startup.' . $phpEx); -require($phpbb_root_path . 'phpbb/class_loader.' . $phpEx); - -$phpbb_class_loader = new \phpbb\class_loader('phpbb\\', "{$phpbb_root_path}phpbb/", $phpEx); -$phpbb_class_loader->register(); - -// In case $phpbb_adm_relative_path is not set (in case of an update), use the default. -$phpbb_adm_relative_path = (isset($phpbb_adm_relative_path)) ? $phpbb_adm_relative_path : 'adm/'; -$phpbb_admin_path = (defined('PHPBB_ADMIN_PATH')) ? PHPBB_ADMIN_PATH : $phpbb_root_path . $phpbb_adm_relative_path; - -// Include files -require($phpbb_root_path . 'includes/functions.' . $phpEx); -require($phpbb_root_path . 'includes/functions_content.' . $phpEx); -include($phpbb_root_path . 'includes/functions_compatibility.' . $phpEx); -require($phpbb_root_path . 'includes/functions_user.' . $phpEx); -require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx); - -// Set PHP error handler to ours -set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler'); - -$phpbb_installer_container_builder = new \phpbb\di\container_builder($phpbb_root_path, $phpEx); -$phpbb_installer_container = $phpbb_installer_container_builder - ->with_environment('installer') - ->without_extensions() - ->without_cache() - ->get_container(); - -/** @var \phpbb\filesystem\filesystem $phpbb_filesystem */ -$phpbb_filesystem = $phpbb_installer_container->get('filesystem'); - -/** @var \phpbb\language\language $language */ -$language = $phpbb_installer_container->get('language'); -$language->add_lang(array('common', 'acp/common', 'acp/board', 'install', 'posting', 'cli')); - -$application = new \phpbb\console\application('phpBB Installer', PHPBB_VERSION, $language); -$application->register_container_commands($phpbb_installer_container->get('console.installer.command_collection')); -$application->run($input); |