TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-01-2009, 01:16 AM   #1 (permalink)
The Wanderer
 
Join Date: Aug 2009
Posts: 15
Thanks: 11
tearsofthesun is on a distinguished road
Default Extra IP account.

Well, i was trying to find a way to keep track of how many account my user's have and display. here is the code i have.

PHP Code:
<?php
$aka3 
$_SERVER['REMOTE_ADDR'];
$multi mysql_query("SELECT * FROM members WHERE aka3 = '$aka3'")or die(mysql_error());
if (
$multi >1){
}
while(
$row mysql_fetch_array($multi)){
echo 
$row['setname'];
}
?>
This code is actually working to a certain extent. the problem is it only display MY extra accounts i have to me.

I want it to display other people that have the extra account.
tearsofthesun is offline  
Reply With Quote
Old 09-01-2009, 03:03 AM   #2 (permalink)
The Addict
 
Join Date: May 2009
Posts: 287
Thanks: 5
adamdecaf is on a distinguished road
Default

Also, you will not be able to view their accounts because the script will grab and use your IP address. You could create a log of the IP addresses and then manually search the DB(s) or save a log of every search.
__________________
My Site
adamdecaf is offline  
Reply With Quote
The Following User Says Thank You to adamdecaf For This Useful Post:
tearsofthesun (09-01-2009)
Old 09-01-2009, 04:51 AM   #3 (permalink)
The Wanderer
 
Join Date: Aug 2009
Posts: 15
Thanks: 11
tearsofthesun is on a distinguished road
Default

Can someone show me how to do that real fast? or will that be a hassle?
tearsofthesun is offline  
Reply With Quote
Old 09-01-2009, 09:28 AM   #4 (permalink)
The Contributor
 
Join Date: Mar 2009
Posts: 49
Thanks: 0
TheOnly92 is on a distinguished road
Default

What are you actually trying to prevent? Multi-accounts or account sharing?
TheOnly92 is offline  
Reply With Quote
Old 09-01-2009, 01:28 PM   #5 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

Quote:
Originally Posted by tearsofthesun View Post
Can someone show me how to do that real fast? or will that be a hassle?
http://lmgtfy.com/?q=php+prevent+multiple+accounts

I'm pointing you to this link becuase that is where I would go to answer your question.
__________________

Village Idiot is offline  
Reply With Quote
Old 09-01-2009, 07:25 PM   #6 (permalink)
The Wanderer
 
Join Date: Aug 2009
Posts: 15
Thanks: 11
tearsofthesun is on a distinguished road
Default

Quote:
Originally Posted by TheOnly92 View Post
What are you actually trying to prevent? Multi-accounts or account sharing?
Sort of :)
tearsofthesun is offline  
Reply With Quote
Old 09-02-2009, 07:17 AM   #7 (permalink)
The Contributor
 
Join Date: Mar 2009
Posts: 49
Thanks: 0
TheOnly92 is on a distinguished road
Default

Well, both require different methods to prevent...

If you need to prevent same person having multiple accounts, just check for those with same IP address. If you need to prevent same account being shared by people, then you will have to log each IP and check if there are 2 different IP logins simultaneously.

Before providing you with more precise solutions, which are you actually trying to prevent?
TheOnly92 is offline  
Reply With Quote
The Following User Says Thank You to TheOnly92 For This Useful Post:
tearsofthesun (09-02-2009)
Old 09-02-2009, 11:04 AM   #8 (permalink)
The Wanderer
 
Join Date: Aug 2009
Posts: 15
Thanks: 11
tearsofthesun is on a distinguished road
Default

I'm trying to prevent the same person from having multiply accounts.
tearsofthesun is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy to Modify Login Script with Hierarchical User Permissions and XML Account File Wildhoney Script Giveaway 4 05-04-2011 06:11 AM
Stream problem Tanax Advanced PHP Programming 9 06-10-2009 12:33 PM
Java help(again) Tanax The Lounge 5 05-09-2009 02:46 PM
How to Login to Any Account on an Insecure Site Wildhoney Tips & Tricks 18 12-14-2008 09:58 PM
Count multiple users on same account Tanax Absolute Beginners 18 04-30-2008 11:22 PM


All times are GMT. The time now is 02:53 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design