diff options
| author | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 17:30:21 +0000 |
|---|---|---|
| committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2001-07-14 17:30:21 +0000 |
| commit | 5a3a3f56ad8c1ee5575e5417c74603db12c915ea (patch) | |
| tree | 7f708e1efc4f80e40a16a848e0a1da5ec4e3bfef /phpBB/index.php | |
| parent | b88ce0ce5a9657f3ac77914a6de58f3a2d5ab340 (diff) | |
| download | forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.gz forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.bz2 forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.tar.xz forums-5a3a3f56ad8c1ee5575e5417c74603db12c915ea.zip | |
Template config system, store relevant config stuff here
git-svn-id: file:///svn/phpbb/trunk@661 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
| -rw-r--r-- | phpBB/index.php | 28 |
1 files changed, 3 insertions, 25 deletions
diff --git a/phpBB/index.php b/phpBB/index.php index 7664f79576..e0857a2f90 100644 --- a/phpBB/index.php +++ b/phpBB/index.php @@ -135,28 +135,6 @@ if($total_categories = $db->sql_numrows($q_categories)) // // Obtain list of moderators of each forum // -/* $sql = "SELECT f.forum_id, u.username, u.user_id - FROM " . FORUMS_TABLE . " f, " . USERS_TABLE . " u, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa - WHERE aa.forum_id = f.forum_id - AND aa.auth_mod = " . TRUE . " - AND ug.group_id = aa.group_id - AND u.user_id = ug.user_id - ORDER BY f.forum_id, u.user_id"; - if(!$q_forum_mods = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query forum moderator information", "", __LINE__, __FILE__, $sql); - } - $forum_mods_list = $db->sql_fetchrowset($q_forum_mods); - - for($i = 0; $i < count($forum_mods_list); $i++) - { - $forum_mods_name[$forum_mods_list[$i]['forum_id']][] = $forum_mods_list[$i]['username']; - $forum_mods_id[$forum_mods_list[$i]['forum_id']][] = $forum_mods_list[$i]['user_id']; - - $forum_mods_single_user[$forum_mods_list[$i]['forum_id']][] = 1; - }*/ - - $sql = "SELECT f.forum_id, g.group_name, g.group_id, g.group_single_user, ug.user_id FROM " . FORUMS_TABLE . " f, " . GROUPS_TABLE . " g, " . USER_GROUP_TABLE . " ug, " . AUTH_ACCESS_TABLE . " aa WHERE aa.forum_id = f.forum_id @@ -237,11 +215,11 @@ if($total_categories = $db->sql_numrows($q_categories)) if($userdata['session_start'] >= $userdata['session_time'] - 300) { - $folder_image = ($forum_rows[$j]['post_time'] > $userdata['session_last_visit']) ? "<img src=\"" . $images['new_folder'] . "\">" : "<img src=\"" . $images['folder'] . "\">"; + $folder_image = ($forum_rows[$j]['post_time'] > $userdata['session_last_visit']) ? "<img src=\"" . $images['folder_new'] . "\">" : "<img src=\"" . $images['folder'] . "\">"; } else { - $folder_image = ($forum_rows[$j]['post_time'] >= $userdata['session_time'] - 300) ? "<img src=\"" . $images['new_folder'] . "\">" : "<img src=\"" . $images['folder'] . "\">"; + $folder_image = ($forum_rows[$j]['post_time'] >= $userdata['session_time'] - 300) ? "<img src=\"" . $images['folder_new'] . "\">" : "<img src=\"" . $images['folder'] . "\">"; } $posts = $forum_rows[$j]['forum_posts']; @@ -262,7 +240,7 @@ if($total_categories = $db->sql_numrows($q_categories)) $last_post = $last_post_time . "<br />by "; $last_post .= "<a href=\"" . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $forum_rows[$j]['user_id']) . "\">" . $last_poster . "</a> "; - $last_post .= "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $forum_rows[$j]['topic_last_post_id']) . "#" . $forum_rows[$j]['topic_last_post_id'] . "\"><img src=\"" . $images['latest_reply'] . "\" width=\"20\" height=\"11\" border=\"0\" alt=\"" . $lang['View_latest_post'] . "\"></a>"; + $last_post .= "<a href=\"" . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $forum_rows[$j]['topic_last_post_id']) . "#" . $forum_rows[$j]['topic_last_post_id'] . "\"><img src=\"" . $images['icon_latest_reply'] . "\" width=\"20\" height=\"11\" border=\"0\" alt=\"" . $lang['View_latest_post'] . "\"></a>"; } else { |
