summary refs log tree commit diff stats
path: root/includes
diff options
context:
space:
mode:
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/functions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/includes/functions.php b/includes/functions.php index d8d1bc4..7f85f96 100755 --- a/includes/functions.php +++ b/includes/functions.php
@@ -118,11 +118,8 @@ function postBlogPost($title,$author,$tags,$content)
118 $inspost = "INSERT INTO updates (title,slug,author,text) VALUES (\"" . $title . "\",\"" . $slug . "\",\"" . $author . "\",\"" . addslashes($content) . "\")"; 118 $inspost = "INSERT INTO updates (title,slug,author,text) VALUES (\"" . $title . "\",\"" . $slug . "\",\"" . $author . "\",\"" . addslashes($content) . "\")";
119 $inspost2 = mysql_query($inspost); 119 $inspost2 = mysql_query($inspost);
120 120
121 $getpost = "SELECT * FROM updates WHERE slug = \"" . $slug . "\""; 121 $id = mysql_insert_id();
122 $getpost2 = mysql_query($getpost); 122 addTags($id, $tags);
123 $getpost3 = mysql_fetch_array($getpost2);
124
125 addTags($getpost3['id'], $tags);
126 123
127 $upconf = "UPDATE config SET value = \"" . date('md') . "\" WHERE name = \"lastUpdate\""; 124 $upconf = "UPDATE config SET value = \"" . date('md') . "\" WHERE name = \"lastUpdate\"";
128 $upconf2 = mysql_query($upconf); 125 $upconf2 = mysql_query($upconf);
@@ -161,6 +158,8 @@ function postBlogPost($title,$author,$tags,$content)
161 $msg = new xmlrpcmsg("weblogUpdates.ping", array( new xmlrpcval('Four Island', 'string'), 158 $msg = new xmlrpcmsg("weblogUpdates.ping", array( new xmlrpcval('Four Island', 'string'),
162 new xmlrpcval('http://fourisland.com/', 'string'))); 159 new xmlrpcval('http://fourisland.com/', 'string')));
163 $client->send($msg); 160 $client->send($msg);
161
162 return $id;
164} 163}
165 164
166function recalcPop($id) 165function recalcPop($id)