FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » FUDforum Installation Issues » Upgrade from 2.3.5 to 3.0.0 not working
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Upgrade from 2.3.5 to 3.0.0 not working [message #167530 is a reply to message #167529] Fri, 06 July 2012 12:54 Go to previous messageGo to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3772
Registered: December 2004
Karma:
Senior Member
Administrator
Core Developer
Looks like 'users_opt' was introduced in FUDforum 2.6.0.

I should be able to prep a patch for 3.0.0 if you are interested. Something like this should work:

// FUDforum releases before 2.6.0 doesn't have a 'users_opt' field.
try {
	// Try with 'users_opt'.
	$auth = q_singleval("SELECT id FROM ".$DBHOST_TBL_PREFIX."users WHERE login='".addslashes($_POST['login'])."' AND passwd='".md5($_POST['passwd'])."' AND (users_opt & 1048576) > 0");
} catch (Exception $e) {
	// It didn't work, try without 'users_opt'.
	$auth = q_singleval("SELECT id FROM ".$DBHOST_TBL_PREFIX."users WHERE login='".addslashes($_POST['login'])."' AND passwd='".md5($_POST['passwd'])."' AND is_mod='A'");
}
[Message index]
 
Read Message icon8.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: admuser.php:359 ) 1054: Unknown column 'last_used_ip' in 'field list'
Next Topic: Upgrading 3.0.1 -> 3.0.4.1 failed: Convert reg_ip to registration_ip for IPv6
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Dec 22 12:35:03 GMT 2024

Total time taken to generate the page: 0.04673 seconds