diff options
Diffstat (limited to 'central')
-rw-r--r-- | central/trunk/includes/instadisc.php | 5 | ||||
-rw-r--r-- | central/trunk/login.php | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/central/trunk/includes/instadisc.php b/central/trunk/includes/instadisc.php index e6fc862..225814e 100644 --- a/central/trunk/includes/instadisc.php +++ b/central/trunk/includes/instadisc.php | |||
@@ -11,7 +11,8 @@ function instaDisc_checkVerification($username, $verification, $verificationID, | |||
11 | $getverid2 = mysql_query($getverid); | 11 | $getverid2 = mysql_query($getverid); |
12 | $getverid3 = mysql_fetch_array($getverid2); | 12 | $getverid3 = mysql_fetch_array($getverid2); |
13 | if ($getverid3['id'] != $verificationID) | 13 | if ($getverid3['id'] != $verificationID) |
14 | { $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; | 14 | { |
15 | $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; | ||
15 | $getitem2 = mysql_query($getitem); | 16 | $getitem2 = mysql_query($getitem); |
16 | $getitem3 = mysql_fetch_array($getitem2); | 17 | $getitem3 = mysql_fetch_array($getitem2); |
17 | if ($getitem3[$nameField] == $username) | 18 | if ($getitem3[$nameField] == $username) |
@@ -136,7 +137,7 @@ function instaDisc_sendDatabase($cserver) | |||
136 | $client->send($msg); | 137 | $client->send($msg); |
137 | } | 138 | } |
138 | 139 | ||
139 | function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID) | 140 | function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0) |
140 | { | 141 | { |
141 | $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; | 142 | $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; |
142 | $getuser2 = mysql_query($getuser); | 143 | $getuser2 = mysql_query($getuser); |
diff --git a/central/trunk/login.php b/central/trunk/login.php index b40b467..19c5dc3 100644 --- a/central/trunk/login.php +++ b/central/trunk/login.php | |||
@@ -14,7 +14,7 @@ if (!isset($_GET['submit'])) | |||
14 | 14 | ||
15 | if (instaDisc_verifyUser($_POST['username'], $_POST['password'])) | 15 | if (instaDisc_verifyUser($_POST['username'], $_POST['password'])) |
16 | { | 16 | { |
17 | $_SESSION['username'] == $_POST['username']; | 17 | $_SESSION['username'] = $_POST['username']; |
18 | 18 | ||
19 | $template = new FITemplate('loggedin'); | 19 | $template = new FITemplate('loggedin'); |
20 | $template->add('SITENAME', instaDisc_getConfig('siteName')); | 20 | $template->add('SITENAME', instaDisc_getConfig('siteName')); |