Changeset 733
- Timestamp:
- 09/10/05 15:39:51 (8 years ago)
- Location:
- trunk/wifidog-auth
- Files:
-
- 4 modified
-
ChangeLog (modified) (1 diff)
-
wifidog/classes/Authenticator.php (modified) (2 diffs)
-
wifidog/classes/Network.php (modified) (1 diff)
-
wifidog/classes/Node.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wifidog-auth/ChangeLog
r732 r733 2 2 * signup.php: Fixed bug in detecting is the user is already part of the 3 3 network. 4 * classes/{Authenticator,Network,Node}.php: isset, and issues preventing 5 users from logging out. 4 6 5 7 2005-09-10 Francois Proulx <francois.proulx@gmail.com> -
trunk/wifidog-auth/wifidog/classes/Authenticator.php
r722 r733 72 72 { 73 73 //Try to destroy all connections tied to the current node 74 $sql = "SELECT conn_id FROM connections WHERE user_id = '{$user->getId()}' AND node_id= {$node->getId()}AND token_status='".TOKEN_INUSE."';\n";74 $sql = "SELECT conn_id FROM connections WHERE user_id = '{$user->getId()}' AND node_id='{$node->getId()}' AND token_status='".TOKEN_INUSE."';\n"; 75 75 $conn_rows = null; 76 76 $db->ExecSql($sql, $conn_rows, false); … … 129 129 $conn_rows = array (); 130 130 $db->ExecSql($sql, $conn_rows, true); 131 foreach ($conn_rows as $conn_row) 132 { 133 $this->acctStop($conn_row['conn_id']); 134 } 131 if (isset($conn_rows)) { 132 foreach ($conn_rows as $conn_row) 133 { 134 $this->acctStop($conn_row['conn_id']); 135 } 136 } 135 137 } 136 138 -
trunk/wifidog-auth/wifidog/classes/Network.php
r726 r733 333 333 throw new Exception("Network::getAuthenticator(): Security error: The parameters passed to the constructor of the authenticator are potentially unsafe"); 334 334 } 335 $objstring = 'return new '.$this->mRow['network_authenticator_class']. '('.$this->mRow['network_authenticator_params'].');';335 $objstring = 'return new '.$this->mRow['network_authenticator_class']."('".$this->mRow['network_authenticator_params']."');"; 336 336 return eval ($objstring); 337 337 } -
trunk/wifidog-auth/wifidog/classes/Node.php
r727 r733 1163 1163 // Get all network, but exclude user subscribed content if asked 1164 1164 if ($exclude_subscribed_content == true && $subscriber) 1165 $sql = "SELECT content_id FROM node_has_content WHERE node_id=' $this->id' AND content_id NOT IN (SELECT content_id FROM user_has_content WHERE user_id = '{$subscriber->getId()}') ORDER BY subscribe_timestamp DESC";1165 $sql = "SELECT content_id FROM node_has_content WHERE node_id='{$this->id}' AND content_id NOT IN (SELECT content_id FROM user_has_content WHERE user_id = '{$subscriber->getId()}') ORDER BY subscribe_timestamp DESC"; 1166 1166 else 1167 $sql = "SELECT content_id FROM node_has_content WHERE node_id=' $this->id' ORDER BY subscribe_timestamp DESC";1167 $sql = "SELECT content_id FROM node_has_content WHERE node_id='{$this->id}' ORDER BY subscribe_timestamp DESC"; 1168 1168 $db->ExecSql($sql, $content_rows, false); 1169 1169
