From 4952eb77d0f2ffc588a804184d7231e721fe45ce Mon Sep 17 00:00:00 2001 From: James Atkinson Date: Thu, 19 Apr 2001 06:07:37 +0000 Subject: create_date function needs to use gmdate in order to output a correct date. git-svn-id: file:///svn/phpbb/trunk@177 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/functions/functions.php | 107 +++++++++++++++++++++--------------------- 1 file changed, 54 insertions(+), 53 deletions(-) (limited to 'phpBB/functions') diff --git a/phpBB/functions/functions.php b/phpBB/functions/functions.php index eba819730e..dbd24b4de4 100644 --- a/phpBB/functions/functions.php +++ b/phpBB/functions/functions.php @@ -1,28 +1,28 @@ sql_query($sql)) { return 'ERROR'; @@ -82,7 +82,7 @@ function make_jumpbox($db) WHERE f.cat_id = c.cat_id GROUP BY c.cat_id, c.cat_title, c.cat_order ORDER BY c.cat_order"; - if(!$q_categories = $db->sql_query($sql)) + if(!$q_categories = $db->sql_query($sql)) { $db_error = $db->sql_error(); error_die(SQL_QUERY, "Couldn't obtain category list.", __LINE__, __FILE__); @@ -94,9 +94,9 @@ function make_jumpbox($db) $category_rows = $db->sql_fetchrowset($q_categories); $limit_forums = ""; - + $sql = "SELECT * - FROM ".FORUMS_TABLE." + FROM ".FORUMS_TABLE." ORDER BY cat_id, forum_order"; if(!$q_forums = $db->sql_query($sql)) { @@ -111,7 +111,7 @@ function make_jumpbox($db) $boxstring .= "\n"; $boxstring .= "\n"; $boxstring .= "\n"; - + if($total_forums) { for($y = 0; $y < $total_forums; $y++) @@ -123,7 +123,7 @@ function make_jumpbox($db) } } } - else + else { $boxstring .= "\n"; } @@ -142,9 +142,9 @@ function language_select($default, $name="language", $dirname="language/") global $phpEx; $dir = opendir($dirname); $lang_select = "