diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 15:56:25 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-09-07 15:56:25 +0000 |
commit | e88f3d0e3f34b3cd396ad8fa11c6717addf04e63 (patch) | |
tree | 39a572f12b594e43763ebc47b1c7a49a9efcd4a1 /series/core/trunk/includes/instadisc.php | |
parent | 0a8ffbcb4a4fd3ed08d7618a166e3a00ea24a011 (diff) | |
download | instadisc-e88f3d0e3f34b3cd396ad8fa11c6717addf04e63.tar.gz instadisc-e88f3d0e3f34b3cd396ad8fa11c6717addf04e63.tar.bz2 instadisc-e88f3d0e3f34b3cd396ad8fa11c6717addf04e63.zip |
Series: Added Add Subscription form
Refs #53
Diffstat (limited to 'series/core/trunk/includes/instadisc.php')
-rw-r--r-- | series/core/trunk/includes/instadisc.php | 6 |
1 files changed, 6 insertions, 0 deletions
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) | |||
63 | $setconfig3 = mysql_fetch_array($setconfig2); | 63 | $setconfig3 = mysql_fetch_array($setconfig2); |
64 | } | 64 | } |
65 | 65 | ||
66 | function instaDisc_addSubscription($id, $title, $url, $category, $password = '') | ||
67 | { | ||
68 | $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))) . "\")"; | ||
69 | $inssub2 = mysql_query($inssub); | ||
70 | } | ||
71 | |||
66 | ?> | 72 | ?> |