about summary refs log tree commit diff stats
path: root/series/core/trunk/includes/instadisc.php
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-09-06 21:14:00 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-09-06 21:14:00 +0000
commitaa716b0b246bb9efa678dae48c1e36a315b5e3e4 (patch)
treeb9683d8039760ba243d2fe92214c43426a06ead8 /series/core/trunk/includes/instadisc.php
parent73ed91f80e62592d7aa86000ef30e06946be7c68 (diff)
downloadinstadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.tar.gz
instadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.tar.bz2
instadisc-aa716b0b246bb9efa678dae48c1e36a315b5e3e4.zip
Series: Started work on Series Control
Refs #28
Diffstat (limited to 'series/core/trunk/includes/instadisc.php')
-rw-r--r--series/core/trunk/includes/instadisc.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/series/core/trunk/includes/instadisc.php b/series/core/trunk/includes/instadisc.php new file mode 100644 index 0000000..f67ce44 --- /dev/null +++ b/series/core/trunk/includes/instadisc.php
@@ -0,0 +1,43 @@
1<?php
2
3/* InstaDisc Series - A Four Island Project */
4
5include('includes/db.php');
6include('includes/template.php');
7
8function instaDisc_subscriptionExists($id)
9{
10 $getsub = "SELECT * FROM subscriptions WHERE identity = \"" . mysql_real_escape_string($id) . "\"";
11 $getsub2 = mysql_query($getsub);
12 $getsub3 = mysql_fetch_array($getsub2);
13 if ($getsub3['identity'] != $id)
14 {
15 return 'false';
16 } else {
17 return 'true';
18 }
19}
20
21function instaDisc_getSubscription($id)
22{
23 $getsub = "SELECT * FROM subscriptions WHERE identity = \"" . mysql_real_escape_string($id) . "\"";
24 $getsub2 = mysql_query($getsub);
25 $getsub3 = mysql_fetch_array($getsub2);
26
27 return $getsub3;
28}
29
30function instaDisc_getAllSubscriptions()
31{
32 $getsubs = "SELECT * FROM subscriptions";
33 $getsubs2 = mysql_query($getsubs);
34 $i=0;
35 while ($getsubs3[$i] = mysql_fetch_array($getsubs2))
36 {
37 $i++;
38 }
39
40 return $getsubs3;
41}
42
43?>