diff options
author | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-01-13 18:11:43 +0100 |
---|---|---|
committer | Oliver Schramm <oliver.schramm97@gmail.com> | 2016-01-14 20:31:54 +0100 |
commit | d045822cd8cc2220a2ad3e159e3b688cb4049c12 (patch) | |
tree | dc877ec06234fa19d823b782bc06b06fe289543f /phpBB/bin/phpbbcli.php | |
parent | 0cc41b94b1715ed6ae0175f77403410552f671af (diff) | |
download | forums-d045822cd8cc2220a2ad3e159e3b688cb4049c12.tar forums-d045822cd8cc2220a2ad3e159e3b688cb4049c12.tar.gz forums-d045822cd8cc2220a2ad3e159e3b688cb4049c12.tar.bz2 forums-d045822cd8cc2220a2ad3e159e3b688cb4049c12.tar.xz forums-d045822cd8cc2220a2ad3e159e3b688cb4049c12.zip |
[ticket/14403] Set a default user id and ip in CLI
PHPBB3-14403
Diffstat (limited to 'phpBB/bin/phpbbcli.php')
-rwxr-xr-x | phpBB/bin/phpbbcli.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/phpBB/bin/phpbbcli.php b/phpBB/bin/phpbbcli.php index ca425ad0c4..239dd3932b 100755 --- a/phpBB/bin/phpbbcli.php +++ b/phpBB/bin/phpbbcli.php @@ -59,6 +59,8 @@ $phpbb_container->get('request')->enable_super_globals(); require($phpbb_root_path . 'includes/compatibility_globals.' . $phpEx); $user = $phpbb_container->get('user'); +$user->data['user_id'] = ANONYMOUS; +$user->ip = '127.0.0.1'; $user->add_lang('acp/common'); $user->add_lang('cli'); |