1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-07 01:06:48 +02:00

Checked all calls to message_die and made sure that if they would be outputted to a user

without a major error that they got their error string from the lang file
Also made sure all calls had the right arguments in teh right place


git-svn-id: file:///svn/phpbb/trunk@1289 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
James Atkinson
2001-11-09 08:57:37 +00:00
parent 41c15e37ce
commit 833f085eb2
6 changed files with 21 additions and 9 deletions

View File

@@ -956,8 +956,8 @@ if( isset($HTTP_GET_VARS['perform']) || isset($HTTP_POST_VARS['perform']) )
if(!$result && ( !(SQL_LAYER == 'postgres' && eregi("drop table", $sql) ) ) )
{
include('page_header_admin.'.$phpEx);
echo "~~$sql~~";
//include('page_header_admin.'.$phpEx);
// echo "~~$sql~~";
message_die(GENERAL_ERROR, "Error importing backup file", "", __LINE__, __FILE__, $sql);
}
}

View File

@@ -63,7 +63,7 @@ if( isset($HTTP_POST_VARS['edit']) || isset($HTTP_POST_VARS['new']) )
}
if( !$db->sql_numrows($result) )
{
message_die(GENERAL_MESSAGE, "That user group does not exist");
message_die(GENERAL_MESSAGE, $lang['Group_not_exist']);
}
$group_info = $db->sql_fetchrow($result);
@@ -199,7 +199,7 @@ else if( isset($HTTP_POST_VARS['group_update']) )
}
if( !$db->sql_numrows($result) )
{
message_die(GENERAL_MESSAGE, "That user group does not exist");
message_die(GENERAL_MESSAGE, $lang['Group_not_exist']);
}
$group_info = $db->sql_fetchrow($result);

View File

@@ -43,7 +43,14 @@ require('pagestart.inc');
//
// Set VERBOSE to 1 for debugging info..
//
define("VERBOSE", 0);
if(DEBUG)
{
define("VERBOSE", 1);
}
else
{
define("VERBOSE", 0);
}
//
// Increase maximum execution time in case of a lot of users, but don't complain about it if it isn't
@@ -88,6 +95,7 @@ if(isset($HTTP_POST_VARS['submit']))
}
$email_headers .= $g_list[$i]['user_email'];
}
mail($board_config['board_email'],$HTTP_POST_VARS["$f_title"],$HTTP_POST_VARS["$f_msg"],$email_headers);
$notice = $lang['Messages'].' '.$lang['Sent'].'!';
}