aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/phpbbcli.php
blob: ddf17fa5f67c8d88344f96af262a4dbaab1c6a2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/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');
define('PHPBB_VERSION', '3.2.8');
$phpbb_root_path = __DIR__ . '/../';
$phpEx = substr(strrchr(__FILE__, '.'), 1);

//
// Let's do the common.php logic
//
$startup_new_path = $phpbb_root_path . 'install/update/update/new/install/startup.' . $phpEx;
$startup_path = (file_exists($startup_new_path)) ? $startup_new_path : $phpbb_root_path . 'install/startup.' . $phpEx;
require($startup_path);

$input = new ArgvInput();

// Enable superglobals for cli support
$phpbb_installer_container->get('request')->enable_super_globals();

/** @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->setDispatcher($phpbb_installer_container->get('dispatcher'));
$application->register_container_commands($phpbb_installer_container->get('console.installer.command_collection'));
$application->run($input);
004-02-201-1/+1 * (getSagem) lookup sagem8xx modems by module rather than relying on stringsThierry Vignaud2004-02-201-1/+1 * do not detect lan interfaces when configuring modemsThierry Vignaud2004-02-201-2/+0 * updated pot filePablo Saratxaga2004-02-201-141/+301 * (add_intf) no need to handle errors, it's done by callee now in order to shareThierry Vignaud2004-02-201-5/+1 * do not horribly die at install time on errorThierry Vignaud2004-02-201-1/+13 * really fix previous button on first step: we want it at install timeThierry Vignaud2004-02-201-1/+1 * keep provider vpi/vci settings when existDamien Chaumette2004-02-201-1/+1 * *** empty log message ***Pascal Rigaux2004-02-201-1/+41 * (update_for_renumbered_partitions):Pascal Rigaux2004-02-201-9/+13 * remove debug statementThierry Vignaud2004-02-201-1/+0 * uim-anthy works ok in on-the-spot mode with KDEPablo Saratxaga2004-02-201-1/+1 * aliase Free non dégroupé 1024/256 on "Free non dégroupé 512/128" (#7615)Thierry Vignaud2004-02-201-0/+3 * Shrink code per Thierry.Stew Benedict2004-02-201-36/+12 * alias agpgart should be only for 2.6, since code doesn't allow this easily,Pascal Rigaux2004-02-202-6/+5 * 10-1mdkThierry Vignaud2004-02-201-1/+5 * fix writing aliases (fix broken speedtouch)Thierry Vignaud2004-02-201-2/+2 * *** empty log message ***Pascal Rigaux2004-02-201-1/+54 * add umask=0022 capability, and use it for security level 3Pascal Rigaux2004-02-201-4/+18 * Gnome is no good, GNOME is goodPascal Rigaux2004-02-202-2/+2 * fix warning LSB chosen implies kernel 2.4Pascal Rigaux2004-02-201-1/+1 * don't force buttons a size related to $::windowwidth since this is no more us...Guillaume Cottenceau2004-02-204-3/+4 * 10.0Guillaume Cottenceau2004-02-201-1/+1 * allow to specify the Xnest wanted resolution with --vgaGuillaume Cottenceau2004-02-201-1/+1 * Gnome icon order. Drop an unused button box.Stew Benedict2004-02-201-53/+28 * 10-0.21mdkThierry Vignaud2004-02-201-1/+11 * since no PCMCIA cards support link status notification, ifplugd shouldThierry Vignaud2004-02-191-1/+3 * updateThierry Vignaud2004-02-191-15103/+17412 * fix stringThierry Vignaud2004-02-191-1/+1 * *** empty log message ***Pascal Rigaux2004-02-191-1/+40 * use $ugtk2::current_window in place of @interactive::objects (which was unuse...Pascal Rigaux2004-02-192-8/+9 * UpdatedArkadiusz Lipiec2004-02-191-14459/+16604 * updated pot filePablo Saratxaga2004-02-19