mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
More updates
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3172 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
84696ccc75
commit
32830195ee
5 changed files with 12 additions and 10 deletions
|
@ -28,7 +28,7 @@ function language_select($default, $select_name = "language", $dirname="language
|
|||
{
|
||||
global $phpEx, $phpbb_root_path;
|
||||
|
||||
$dir = opendir($phpbb_root_path . $dirname);
|
||||
$dir = opendir(realpath($dirname));
|
||||
|
||||
$lang = array();
|
||||
while ( $file = readdir($dir) )
|
||||
|
|
|
@ -273,7 +273,7 @@ if ( $userdata['session_logged_in'] )
|
|||
else
|
||||
{
|
||||
$s_privmsg_new = 0;
|
||||
$icon_pm = $images['pm_no_new_msg'];
|
||||
$icon_pm = $images['pm_new_msg'];
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
|
@ -61,7 +61,8 @@ if ( $result = $db->sql_query($sql) )
|
|||
|
||||
if ( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
if (!isset($HTTP_POST_VARS['sid']) || $HTTP_POST_VARS['sid'] != $userdata['session_id'])
|
||||
// session id check
|
||||
if ($sid == '' || $sid != $userdata['session_id'])
|
||||
{
|
||||
message_die(ERROR, 'Invalid_session');
|
||||
}
|
||||
|
|
|
@ -33,7 +33,7 @@ if ( !defined('IN_PHPBB') )
|
|||
//
|
||||
function show_coppa()
|
||||
{
|
||||
global $template, $lang, $phpbb_root_path, $phpEx;
|
||||
global $userdata, $template, $lang, $phpbb_root_path, $phpEx;
|
||||
|
||||
$template->set_filenames(array(
|
||||
'body' => 'agreement.tpl')
|
||||
|
@ -46,8 +46,8 @@ function show_coppa()
|
|||
"AGREE_UNDER_13" => $lang['Agree_under_13'],
|
||||
'DO_NOT_AGREE' => $lang['Agree_not'],
|
||||
|
||||
"U_AGREE_OVER13" => append_sid("profile.$phpEx?mode=register&agreed=true"),
|
||||
"U_AGREE_UNDER13" => append_sid("profile.$phpEx?mode=register&agreed=true&coppa=true"))
|
||||
"U_AGREE_OVER13" => "profile.$phpEx?mode=register&agreed=true&sid=" . $userdata['session_id'],
|
||||
"U_AGREE_UNDER13" => "profile.$phpEx?mode=register&agreed=true&coppa=true&sid=" . $userdata['session_id'])
|
||||
);
|
||||
|
||||
$template->pparse('body');
|
||||
|
@ -80,9 +80,10 @@ if (
|
|||
isset($HTTP_POST_VARS['cancelavatar']) ||
|
||||
$mode == 'register' )
|
||||
{
|
||||
if (!isset($HTTP_POST_VARS['sid']) || $HTTP_POST_VARS['sid'] != $userdata['session_id'])
|
||||
// session id check
|
||||
if ($sid == '' || $sid != $userdata['session_id'])
|
||||
{
|
||||
message_die(ERROR, 'Invalid_session_id');
|
||||
message_die(ERROR, 'Invalid_session');
|
||||
}
|
||||
|
||||
include($phpbb_root_path . 'includes/functions_validate.'.$phpEx);
|
||||
|
@ -246,7 +247,6 @@ if ( isset($HTTP_POST_VARS['submit']) )
|
|||
$error = TRUE;
|
||||
$error_msg .= ( ( isset($error_msg) ) ? '<br />' : '' ) . $lang['Fields_empty'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
$passwd_sql = '';
|
||||
|
|
|
@ -29,7 +29,8 @@ if ( !defined('IN_PHPBB') )
|
|||
|
||||
if ( isset($HTTP_POST_VARS['submit']) )
|
||||
{
|
||||
if (!isset($HTTP_POST_VARS['sid']) || $HTTP_POST_VARS['sid'] != $userdata['session_id'])
|
||||
// session id check
|
||||
if ($sid == '' || $sid != $userdata['session_id'])
|
||||
{
|
||||
message_die(ERROR, 'Invalid_session');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue