From 01669b5b3e38d4fd1138034458ad1e9339c8cf9c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 16 Aug 2008 17:01:43 +0000 Subject: Central: Fixed a few minor errors Ok, this is sort of part [15], part strange unnoticed error(s). Refs #25 --- central/trunk/includes/instadisc.php | 5 +++-- central/trunk/login.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'central') 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, $getverid2 = mysql_query($getverid); $getverid3 = mysql_fetch_array($getverid2); if ($getverid3['id'] != $verificationID) - { $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; + { + $getitem = "SELECT * FROM " . $table . " WHERE " . $nameField . " = \"" . mysql_real_escape_string($username) . "\""; $getitem2 = mysql_query($getitem); $getitem3 = mysql_fetch_array($getitem2); if ($getitem3[$nameField] == $username) @@ -136,7 +137,7 @@ function instaDisc_sendDatabase($cserver) $client->send($msg); } -function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID) +function instaDisc_addItem($username, $subscription, $title, $author, $url, $semantics, $encryptionID = 0) { $getuser = "SELECT * FROM users WHERE username = \"" . mysql_real_escape_string($username) . "\""; $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'])) if (instaDisc_verifyUser($_POST['username'], $_POST['password'])) { - $_SESSION['username'] == $_POST['username']; + $_SESSION['username'] = $_POST['username']; $template = new FITemplate('loggedin'); $template->add('SITENAME', instaDisc_getConfig('siteName')); -- cgit 1.4.1