[ABD] Double Account Preventer

Any abandoned MODs will be moved to this forum.

WARNING: MODs in this forum are not currently being supported or maintained by the original MOD author. Proceed at your own risk.
Forum rules
IMPORTANT: MOD Development Forum rules

WARNING: MODs in this forum are not currently being supported nor updated by the original MOD author. Proceed at your own risk.
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [RC] Double Account Preventer

Post by woipi90 »

i get this error when i update my functions.php on the new version 1.0.3....

when i delete the new part of the update instruction again it's working again....
Parse error: syntax error, unexpected $end in /var/www/virtual/______/htdocs/includes/functions.php on line 2210
and also it shows an error in the line 4210 where the new script is added but not all the time....


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
kmklr72
Registered User
Posts: 477
Joined: Sat Dec 29, 2007 9:37 pm
Location: St. Louis, USA
Name: Kevin

Re: [RC] Double Account Preventer

Post by kmklr72 »

The on/off option for the proxy and dnsbl checks will have a few options. Off, Flag, and Block. They all are pretty self-explanatory :lol: . Instead of logging the blocks and flags, I was thinking of adding a second list and listing the users that were flagged/blocked. Would you want me to add notifications to this part of the mod as well (pm, post, and email)?


@woipi90

Which version were you using before you updated and which version are you on now?
User avatar
Ashley.S.
Registered User
Posts: 469
Joined: Mon Aug 04, 2008 6:01 pm
Location: Falmouth, Cornwall, UK
Name: Ashley .S.
Contact:

Re: [RC] Double Account Preventer

Post by Ashley.S. »

notifications are always good as long as they can be configured, although I prefer logging systems sometimes as notifications can sometimes fail to be sent out or they have been sent out too late in my experience
Regards,
-Ashley.S. [ PurephpBB Founder ]
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

Re: [RC] Double Account Preventer

Post by ZDarkness »

Code: Select all

Fatal error: Call to a member function get_dap_config() on a non-object in /home/forumadm/public_html/includes/functions.php on line 3789

Code: Select all

// Begin DAP MOD
	$dap_config = $dap->get_dap_config();

	$sql = 'SELECT * FROM ' . USERS_TABLE . ' WHERE user_id = ' . $user->data['user_id'];
	$result = $db->sql_query($sql);

	while ($row = $db->sql_fetchrow($result))
	{
		$user_banned_cookie = $row['user_banned_cookie'];
	}
	$db->sql_freeresult($result);

	if ($_COOKIE['DAPBan'] != $user_banned_cookie)
	{
		$dap->ban_cookie($user_banned_cookie);
	}

	if ($dap_config['cookie_ban_enabled'] == 1 && $_COOKIE['DAPBan'] == 1 && $user->data['user_id'] != ANONYMOUS)
	{
		trigger_error($dap_config['cookie_ban_message']);
	}
	// End DAP MOD

That's the line:

Code: Select all

	$dap_config = $dap->get_dap_config();
kmklr72
Registered User
Posts: 477
Joined: Sat Dec 29, 2007 9:37 pm
Location: St. Louis, USA
Name: Kevin

Re: [RC] Double Account Preventer

Post by kmklr72 »

The class hasn't been globalized in that function. Put this code before that line:

Code: Select all

global $dap;
Last edited by kmklr72 on Fri May 29, 2009 11:13 pm, edited 1 time in total.
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

Re: [RC] Double Account Preventer

Post by ZDarkness »

kmklr72 wrote:The class hasn't been globalizes in that function. Put this code before that line:

Code: Select all

global $dap;

Worked perfectly,

Thanks a lot.
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [RC] Double Account Preventer

Post by woipi90 »

^^ that was my bug problem too....
but now i get this

Code: Select all

Warning: Unterminated comment starting line 2149 in /var/www/virtual/-----/htdocs/includes/functions.php on line 2149

Warning: set_error_handler() expects the argument (msg_handler) to be a valid callback in /var/www/virtual/------/htdocs/common.php on line 208

Fatal error: Call to undefined function phpbb_user_session_handler() in /var/www/virtual/------/htdocs/includes/session.php on line 1838

grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
User avatar
woipi90
Registered User
Posts: 908
Joined: Mon Feb 16, 2009 5:32 pm
Location: Austria

Re: [RC] Double Account Preventer

Post by woipi90 »

so i refreshed the site again and it works now.... ;)


grz woipi
My mods: Ultimate Board Clubs
Support: only for the UBCS!
-----
function be_friends($uid, $u){return ($u == $user->['user_id']) ? false : true;}
$this->be_friends($uid, $user->['user_id']) ? $allow_pm : echo "You failed again";
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

Re: [RC] Double Account Preventer

Post by ZDarkness »

Code: Select all

[phpBB Debug] PHP Notice: in file /includes/functions_dap.php on line 389: Invalid argument supplied for foreach()
Retornar à Página Principal
Erro Geral
SQL ERROR [ mysql4 ]

Column 'topic_status' cannot be null [1048]
Enable post notification is set to Yes
This happened when I tried to register with a same Ip of another account.
The forum that I set to post notification is a forum where only admins can post.

I would like this mod check users logged in with same ip too.
kmklr72
Registered User
Posts: 477
Joined: Sat Dec 29, 2007 9:37 pm
Location: St. Louis, USA
Name: Kevin

Re: [RC] Double Account Preventer

Post by kmklr72 »

What version are you using ZDarkness? Also, if you have access to the database, you should have these values on the common_names column in the phpbb_users table:

Code: Select all

Null - Yes
Default - NULL
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

Re: [RC] Double Account Preventer

Post by ZDarkness »

kmklr72 wrote:What version are you using ZDarkness? Also, if you have access to the database, you should have these values on the common_names column in the phpbb_users table:

Code: Select all

Null - Yes
Default - NULL
phpBB 3.0.4
PHP version 5.2.6
Operating system Linux
MySQL version 5.0.67-community

Code: Select all

common_names  	mediumtext  	utf8_bin  	  	Yes  	NULL  	
I set Cookie check at registration to yes and registered with 2 accounts on Seamonkey browser, changing Ip only and nothing happened.
Last edited by ZDarkness on Wed May 27, 2009 3:35 am, edited 1 time in total.
kmklr72
Registered User
Posts: 477
Joined: Sat Dec 29, 2007 9:37 pm
Location: St. Louis, USA
Name: Kevin

Re: [RC] Double Account Preventer

Post by kmklr72 »

That's strange. I think you've just found a bug. If you could, please post the block of code that line is in and I'll try to fix it tomorrow.
ZDarkness
Registered User
Posts: 45
Joined: Sun Oct 14, 2007 2:39 am
Location: Brasil, SP, Sorocity
Contact:

Re: [RC] Double Account Preventer

Post by ZDarkness »

Edit³
kmklr72 wrote:That's strange. I think you've just found a bug. If you could, please post the block of code that line is in and I'll try to fix it tomorrow.

Code: Select all

		}	

		if (isset($dupe_ips))
		{
			// Get usernames list for notifications
			foreach ($dupe_names as $dupe_name)
			{
This is the line.

Code: Select all

			foreach ($dupe_names as $dupe_name)
I hope you can fix the bug above as soon as possible...

Cookie check is working well, I thought it created a cookie in the account creation and/or in log in but it only creates when user log in and check if the record already have an account, ie if I create 2 or more accounts without log in, I am not crawled.


Thank you for modx and support.
Last edited by ZDarkness on Fri May 29, 2009 3:16 am, edited 1 time in total.
User avatar
IPB_Refugee
Registered User
Posts: 1290
Joined: Fri Jul 07, 2006 2:25 pm
Location: Austria
Name: Wolfgang Weber

Re: [RC] Double Account Preventer

Post by IPB_Refugee »

Thank you for continuing this MOD, kmklr72! :)

*subscribed to the topic the old way*


Regards
Wolfgang
kmklr72
Registered User
Posts: 477
Joined: Sat Dec 29, 2007 9:37 pm
Location: St. Louis, USA
Name: Kevin

Re: [RC] Double Account Preventer

Post by kmklr72 »

@IPB_Refugee
I'm glad to be working on it again.



@ZDarkness
Sorry that it took so long to get to this, I've been having exams to I'm pretty busy right now :lol: . Replace the functions_dap.php file in your includes directory with this one and see if it works.
Locked

Return to “[3.0.x] Abandoned MODs”