about summary refs log tree commit diff stats
path: root/central/trunk/instadisc.php
diff options
context:
space:
mode:
Diffstat (limited to 'central/trunk/instadisc.php')
-rw-r--r--central/trunk/instadisc.php22
1 files changed, 22 insertions, 0 deletions
diff --git a/central/trunk/instadisc.php b/central/trunk/instadisc.php new file mode 100644 index 0000000..f8f33e5 --- /dev/null +++ b/central/trunk/instadisc.php
@@ -0,0 +1,22 @@
1<?php
2
3/* InstaDisc Server - A Four Island Project */
4
5include_once('db.php');
6
7function instaDisc_checkVerification($username, $verification, $verificationID, $table, $nameField, $passField)
8{
9 $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . $username . "\"";
10 $getitem2 = mysql_query($getitem);
11 $getitem3 = mysql_fetch_array($getitem2);
12 if ($getitem3[$nameField] == $username)
13 {
14 $test = $username . ':' . $getitem3[$passField] . ':' . $verificationID;
15
16 return (md5($test) == $verification);
17 }
18
19 return false;
20}
21
22?>