| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
cooldude41
Joined: 07 Oct 2008 Posts: 6
|
Posted: Wed Oct 08, 2008 12:00 am Post subject: function append_sid doesn't exisit in session.php |
|
|
I'm trying to install simple mod,
When i open sessions.php to follow the steps below, I searched for function append_sid, but it doesn't exist in the session.php file. Ay help will be appreciate, on where to insert the code.
includes/sessions.php
#
#-----[ FIND ]------------------------------------------
#
function append_sid($url, $non_html_amp = false)
{
global $SID;
#
#-----[ AFTER, ADD]------------------------------------------
#
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
global $phpbb_seo;
$url = $phpbb_seo->url_rewrite($url, $non_html_amp);
// www.phpBB-SEO.com SEO TOOLKIT END
# |
|
|
| Back to top |
|
 |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Wed Oct 08, 2008 12:55 am Post subject: Re: function append_sid doesn't exisit in session.php |
|
|
It's there. right before the line;
// Developers using the hook function need to globalise the $_SID and |
|
|
| Back to top |
|
 |
cooldude41
Joined: 07 Oct 2008 Posts: 6
|
Posted: Wed Oct 08, 2008 3:05 am Post subject: Re: function append_sid doesn't exisit in session.php |
|
|
Following is the only place in includes/session.php I see append_sid
and read me files say sessions.php, but includes folder has session.php
I used one click install provided by dreamhost.
// Does the user need to change their password? If so, redirect to the
// ucp profile reg_details page ... of course do not redirect if we're already in the ucp
if (!defined('IN_ADMIN') && !defined('ADMIN_START') && $config['chg_passforce'] && $this->data['is_registered'] && $auth->acl_get('u_chgpasswd') && $this->data['user_passchg'] < time() - ($config['chg_passforce'] * 86400))
{
if (strpos($this->page['query_string'], 'mode=reg_details') === false && $this->page['page_name'] != "ucp.$phpEx")
{
redirect(append_sid("{$phpbb_root_path}ucp.$phpEx", 'i=profile&mode=reg_details'));
}
}
return;
} |
|
|
| Back to top |
|
 |
Peter77 phpBB SEO Team


Joined: 10 May 2006 Posts: 515 Location: Michigan
|
Posted: Wed Oct 08, 2008 11:41 am Post subject: Re: function append_sid doesn't exisit in session.php |
|
|
| Are you running phpbb3 3.0.2 ? |
|
|
| Back to top |
|
 |
cooldude41
Joined: 07 Oct 2008 Posts: 6
|
Posted: Wed Oct 08, 2008 12:34 pm Post subject: Re: function append_sid doesn't exisit in session.php |
|
|
| Board version: 3.0.2 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15133
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |