diff options
Diffstat (limited to 'includes/functions.php')
| -rwxr-xr-x | includes/functions.php | 4 |
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 | ||
| 114 | function postBlogPost($title,$author,$tag1,$tag2,$tag3,$content) | 114 | function 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\""; |
