about summary refs log tree commit diff stats
path: root/series/core/trunk/includes/instadisc.php
diff options
context:
space:
mode:
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?>