From 07253dc75c69cf585ad39a218f3f2cf97b773987 Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Sat, 26 Dec 2009 20:02:05 +0000 Subject: commit before joe fucks shit git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@401 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/download/index.php | 6 +++--- modules/index/index.php | 4 ++-- modules/news/functions.php | 10 +++++----- modules/newsreel/index.php | 6 +++--- modules/page/index.php | 10 +++++----- 5 files changed, 18 insertions(+), 18 deletions(-) (limited to 'modules') diff --git a/modules/download/index.php b/modules/download/index.php index 1fa99e5..300bd46 100644 --- a/modules/download/index.php +++ b/modules/download/index.php @@ -26,13 +26,13 @@ $download = NULL; $download_relative_path = "modules/" . basename(dirname(__FILE__)) . "/files/"; $download_absolute_path = dirname(__FILE__) . "/files/"; -$result = $db->Query("SELECT uid, name, description, filename FROM bayonet_downloads"); +$result = $db->Query("SELECT `file_id`, `name`, `description`, `filename` FROM `bayonet_downloads`"); while(($row = $db->Fetch($result)) !== false) { $download[] = $row; } -OpenTable(); +OpenContent(); echo "
Downloads
"; echo "
"; foreach($download as $file) @@ -59,7 +59,7 @@ decho($download); echo "
"; -CloseTable(); +CloseContent(); ?> \ No newline at end of file diff --git a/modules/index/index.php b/modules/index/index.php index b7554b7..7d23bc6 100644 --- a/modules/index/index.php +++ b/modules/index/index.php @@ -26,9 +26,9 @@ } else { - OpenTable(); + OpenContent(); ReportError("Cannot load module '{$module}' directory.
\n"); - CloseTable(); + CloseContent(); } echo "
"; } diff --git a/modules/news/functions.php b/modules/news/functions.php index ee4345d..b76a53e 100644 --- a/modules/news/functions.php +++ b/modules/news/functions.php @@ -49,7 +49,7 @@ function getNewsComments($id){ function displayComments($data){ date_default_timezone_set("America/New_York"); - OpenTable(); + OpenContent(); ?>
@@ -104,7 +104,7 @@ function displayComments($data){ commentForm(); - CloseTable(); + CloseContent(); } /** @@ -164,7 +164,7 @@ function displayNews($data){ { $numComments = getNumOfComments($news['news_id']); - OpenTable(); ?> + OpenContent(); ?>
@@ -190,7 +190,7 @@ function displayNews($data){ "; } } @@ -245,7 +245,7 @@ function commentForm(){ ?>

- + diff --git a/modules/newsreel/index.php b/modules/newsreel/index.php index f0b9d73..0a986c2 100644 --- a/modules/newsreel/index.php +++ b/modules/newsreel/index.php @@ -1,5 +1,5 @@ - +