summary refs log tree commit diff stats
path: root/includes/functions.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2008-12-07 16:45:24 -0500
committerStarla Insigna <hatkirby@fourisland.com>2008-12-07 16:45:24 -0500
commita930e827048acf17d04a6af06c1616a72dee714a (patch)
treeda626bd9bdee9c21210ab8f48fca8f686785a022 /includes/functions.php
parent62d716cb332877662b3c6abf2206efb755a93a7f (diff)
downloadfourisland-a930e827048acf17d04a6af06c1616a72dee714a.tar.gz
fourisland-a930e827048acf17d04a6af06c1616a72dee714a.tar.bz2
fourisland-a930e827048acf17d04a6af06c1616a72dee714a.zip
Added support for a variable amount of tags
Previously, the blogging engine only allowed for three tags per post, and it also stored each in seperate fields. Now, all tags are stored in one
field and there can be more than three. The only functionality that has been removed because of this is that now, on archive pages, tags are not
shown next to the current month's posts as they used to be, because the Four Island templating system does not yet support sub-blocks of sub-blocks.
Diffstat (limited to 'includes/functions.php')
-rwxr-xr-xincludes/functions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/functions.php b/includes/functions.php index e7b7537..3e9382a 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -111,11 +111,11 @@ function generateSlug($title,$table)
111 return($title); 111 return($title);
112} 112}
113 113
114function postBlogPost($title,$author,$tag1,$tag2,$tag3,$content) 114function postBlogPost($title,$author,$tags,$content)
115{ 115{
116 $slug = generateSlug($title,'updates'); 116 $slug = generateSlug($title,'updates');
117 117
118 $inspost = "INSERT INTO updates (title,slug,author,tag1,tag2,tag3,text) VALUES (\"" . $title . "\",\"" . $slug . "\",\"" . $author . "\",\"" . $tag1 . "\",\"" . $tag2 . "\",\"" . $tag3 . "\",\"" . addslashes($content) . "\")"; 118 $inspost = "INSERT INTO updates (title,slug,author,tags,text) VALUES (\"" . $title . "\",\"" . $slug . "\",\"" . $author . "\",\"" . $tags . "\",\"" . addslashes($content) . "\")";
119 $inspost2 = mysql_query($inspost); 119 $inspost2 = mysql_query($inspost);
120 120
121 $upconf = "UPDATE config SET value = \"" . date('md') . "\" WHERE name = \"lastUpdate\""; 121 $upconf = "UPDATE config SET value = \"" . date('md') . "\" WHERE name = \"lastUpdate\"";