Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.
NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
if ($result['status'] == LOGIN_SUCCESS)
{
//User was successfully logged into phpBB
$redirect = request_var('redirect', "{$phpbb_root_path}index.$phpEx");
Here $user->session_begin(); in this function getting '$request' variable as null.
function session_begin($update_session_page = true)
{
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
global $request, $phpbb_container, $phpbb_dispatcher;
// Give us some basic information
$this->time_now = time();
$this->cookie_data = array('u' => 0, 'k' => '');
$this->update_session_page = $update_session_page;
var_dump($request); /////=====> This prints NULL
//Remaining code for this function.
//Note : I have not changed any thing in any phpbb forum file
}
vrushali wrote: ↑Tue Jan 16, 2018 6:55 am
Any kind of help is appreciated!
It might help if you use code-blocks for your code and if you actually ask a question. Also state your phpBB version and other relevant info.
I see request_var though, that's deprecated in 3.1 IIRC.
My extensions:
Simple CMS, Feed post bot, Avatar Resize, Modbreak, Magic OGP, Live topic update, Modern Quote, Quoted Where (GDPR) and Autoresponder.
Newest: FAQ manager for 3.2
function session_begin($update_session_page = true)
{
global $phpEx, $SID, $_SID, $_EXTRA_URL, $db, $config, $phpbb_root_path;
global $request, $phpbb_container, $phpbb_dispatcher;
// Give us some basic information
$this->time_now = time();
$this->cookie_data = array('u' => 0, 'k' => '');
$this->update_session_page = $update_session_page;
var_dump($request); /////=====> This prints NULL
//Remaining code for this function.
//Note : I have not changed any thing in any phpbb forum file
}
Also, you're dumping an entire class, not a variable.
So you have to request a variable (like you're doing with the [deprecated]request_var) and that you can dump/echo/print/ w/e