From e88f3d0e3f34b3cd396ad8fa11c6717addf04e63 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 7 Sep 2008 15:56:25 +0000 Subject: Series: Added Add Subscription form Refs #53 --- series/core/trunk/includes/instadisc.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'series/core/trunk/includes/instadisc.php') diff --git a/series/core/trunk/includes/instadisc.php b/series/core/trunk/includes/instadisc.php index be6fcee..6cf4657 100644 --- a/series/core/trunk/includes/instadisc.php +++ b/series/core/trunk/includes/instadisc.php @@ -63,4 +63,10 @@ function instaDisc_changePassword($password) $setconfig3 = mysql_fetch_array($setconfig2); } +function instaDisc_addSubscription($id, $title, $url, $category, $password = '') +{ + $inssub = "INSERT INTO subscriptions (identity, title, url, category, password) VALUES (\"" . mysql_real_escape_string($id) . "\",\"" . mysql_real_escape_string($title) . "\",\"" . mysql_real_escape_string($url) . "\",\"" . mysql_real_escape_string($category) . "\",\"" . mysql_real_escape_string(($password == '' ? '' : md5($password))) . "\")"; + $inssub2 = mysql_query($inssub); +} + ?> -- cgit 1.4.1