[vhffs-dev] [1766] fixed wrongfully displayed error when user login for the first time (which does an automatic registration process) on the forum

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1766
Author:   gradator
Date:     2011-05-17 18:44:09 +0200 (Tue, 17 May 2011)
Log Message:
-----------
fixed wrongfully displayed error when user login for the first time (which does an automatic registration process) on the forum

Modified Paths:
--------------
    branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch
    trunk/vhffs-forum/punbb-1.3.5_vhffs.patch

Modified: branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch
===================================================================
--- branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-17 11:23:19 UTC (rev 1765)
+++ branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-17 16:44:09 UTC (rev 1766)
@@ -338,7 +338,7 @@
 +	}
 +	else if(empty($user_id)) { // new user 
 +		$initial_group_id = ($forum_config['o_regs_verify'] == '0') ? $forum_config['o_default_user_group'] : FORUM_UNVERIFIED;
-+		if( $forum_db->query('INSERT INTO '.$forum_db->prefix.'users (group_id, username, email, realname, registered, registration_ip, last_visit) VALUES ( '.$initial_group_id.' , \''.$forum_db->escape($form_username).'\', \''.$forum_db->escape($vhffs_user_mail).'\', \''.$forum_db->escape($vhffs_user_firstname).' '. $forum_db->escape($vhffs_user_lastname).'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().' )' ) ) {
++		if( ! $forum_db->query('INSERT INTO '.$forum_db->prefix.'users (group_id, username, email, realname, registered, registration_ip, last_visit) VALUES ( '.$initial_group_id.' , \''.$forum_db->escape($form_username).'\', \''.$forum_db->escape($vhffs_user_mail).'\', \''.$forum_db->escape($vhffs_user_firstname).' '. $forum_db->escape($vhffs_user_lastname).'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().' )' ) ) {
  
 -			($hook = get_hook('li_login_qr_update_user_hash')) ? eval($hook) : null;
 -			$forum_db->query_build($query) or error(__FILE__, __LINE__);

Modified: trunk/vhffs-forum/punbb-1.3.5_vhffs.patch
===================================================================
--- trunk/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-17 11:23:19 UTC (rev 1765)
+++ trunk/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-17 16:44:09 UTC (rev 1766)
@@ -338,7 +338,7 @@
 +	}
 +	else if(empty($user_id)) { // new user 
 +		$initial_group_id = ($forum_config['o_regs_verify'] == '0') ? $forum_config['o_default_user_group'] : FORUM_UNVERIFIED;
-+		if( $forum_db->query('INSERT INTO '.$forum_db->prefix.'users (group_id, username, email, realname, registered, registration_ip, last_visit) VALUES ( '.$initial_group_id.' , \''.$forum_db->escape($form_username).'\', \''.$forum_db->escape($vhffs_user_mail).'\', \''.$forum_db->escape($vhffs_user_firstname).' '. $forum_db->escape($vhffs_user_lastname).'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().' )' ) ) {
++		if( ! $forum_db->query('INSERT INTO '.$forum_db->prefix.'users (group_id, username, email, realname, registered, registration_ip, last_visit) VALUES ( '.$initial_group_id.' , \''.$forum_db->escape($form_username).'\', \''.$forum_db->escape($vhffs_user_mail).'\', \''.$forum_db->escape($vhffs_user_firstname).' '. $forum_db->escape($vhffs_user_lastname).'\', '.$vhffs_inscription_date.', \''.get_remote_address().'\', '.time().' )' ) ) {
  
 -			($hook = get_hook('li_login_qr_update_user_hash')) ? eval($hook) : null;
 -			$forum_db->query_build($query) or error(__FILE__, __LINE__);


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/