mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 02:21:43 +02:00
Misc fixes
git-svn-id: file:///svn/phpbb/trunk@80 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -24,10 +24,18 @@
|
||||
|
||||
function error_die($db, $error_code = "", $error_msg = "")
|
||||
{
|
||||
global $template, $phpEx;
|
||||
global $template, $phpEx, $default_lang;
|
||||
|
||||
if(!$template->get("overall_header"))
|
||||
{
|
||||
if(!empty($default_lang))
|
||||
{
|
||||
include('language/lang_'.$default_lang.'.'.$phpEx);
|
||||
}
|
||||
else
|
||||
{
|
||||
include('language/lang_english.'.$phpEx);
|
||||
}
|
||||
include('page_header.'.$phpEx);
|
||||
}
|
||||
if(!$error_msg)
|
||||
|
@@ -3,7 +3,7 @@
|
||||
<table border="0" align="center" width="100%" bgcolor="#000000" cellpadding="0" cellspacing="1">
|
||||
<tr>
|
||||
<td>
|
||||
<table border="0" width="100%" cellpadding="0" cellspacing="1">
|
||||
<table border="0" width="100%" cellpadding="3" cellspacing="1">
|
||||
<tr class="tableheader">
|
||||
<td width="5%"> </td>
|
||||
<td>Topic</td>
|
||||
|
@@ -417,7 +417,8 @@ Backups completed ok.<P>
|
||||
$forum_id = $row['forum_id'];
|
||||
$topic_status = $row['topic_status'];
|
||||
$topic_notify = $row['topic_notify'];
|
||||
|
||||
$forum_id = $row['forum_id'];
|
||||
|
||||
$sql = "insert topics (topic_id, topic_title, topic_poster, topic_time, topic_views, forum_id, topic_status, topic_notify)
|
||||
values ($topic_id, '$topic_title', $topic_poster, $topic_time, $topic_views, $forum_id, $topic_status, $topic_notify)";
|
||||
mysql_query($sql, $db);
|
||||
|
@@ -43,10 +43,6 @@ if(!$result = $db->sql_query($sql))
|
||||
error_die($db, QUERY_ERROR);
|
||||
}
|
||||
|
||||
$pagetype = "viewforum";
|
||||
$page_title = "View Forum - $forum_name";
|
||||
include('page_header.'.$phpEx);
|
||||
|
||||
//
|
||||
// Add checking for private forums here!!
|
||||
//
|
||||
@@ -71,6 +67,9 @@ for($x = 0; $x < $db->sql_numrows($result); $x++)
|
||||
$forum_moderators .= ", ";
|
||||
$forum_moderators .= "<a href=\"profile.$phpEx?mode=viewprofile&user_id=".$forum_row[$x]["user_id"]."\">".$forum_row[$x]["username"]."</a>";
|
||||
}
|
||||
$pagetype = "viewforum";
|
||||
$page_title = "View Forum - $forum_name";
|
||||
include('page_header.'.$phpEx);
|
||||
|
||||
$template->set_block("body", "topicrow", "topics");
|
||||
|
||||
|
Reference in New Issue
Block a user