Delete-please Posted January 21, 2009 Share Posted January 21, 2009 ok this is pretty simple but usefull... When a user logs in on an ip address that matches another accounts IP ID 1 gets an event ok so here we go find: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. In header.php Underneath add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. done any issues/bugs post below Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 21, 2009 Share Posted January 21, 2009 Re: [mccode]Multi alert Just to clean it up some for you.. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Z?v?? Posted January 22, 2009 Share Posted January 22, 2009 Re: [mccode]Multi alert Just a little suggestion... Before adding this to your game, I would allow for there to be certain exceptions to which users can login on the same IP Address before sending the event. For example, you have two users that are family members and you approve of them being on the same IP. You should add these two users to the exception list so you don't get an event every time they login. This is a good way to filter the system a little bit so you're not getting so many annoying events. It will also prevent loading up your events table in the database. Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 22, 2009 Author Share Posted January 22, 2009 Re: [mccode]Multi alert who cares about filling an event table up? Unless you used a really crap host it would take millions of events to even effect your data.. Although i do see your point Quote Link to comment Share on other sites More sharing options...
jds137 Posted January 22, 2009 Share Posted January 22, 2009 Re: [mccode]Multi alert It also sends non stop events, reminds me of a virus. lol Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 22, 2009 Author Share Posted January 22, 2009 Re: [mccode]Multi alert it only sends one event when they login. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 22, 2009 Share Posted January 22, 2009 Re: [mccode]Multi alert You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
RecklessCounty Posted January 23, 2009 Share Posted January 23, 2009 Re: [mccode]Multi alert Just so everyone knows....to add someone to the exception list on the first line where is says You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. change the numbers 1, 2 and 3 to the ID of the player/players you want to exempt Quote Link to comment Share on other sites More sharing options...
codestryke Posted January 23, 2009 Share Posted January 23, 2009 Re: [mccode]Multi alert Wouldn't this check be better suited in the login sequence somewhere? Maybe I'm missing something but if the person does pass the multi check it continues to check to see if they are a multi on every page hit, kind of a waste on server resources ;) Quote Link to comment Share on other sites More sharing options...
Sparkz Posted January 23, 2009 Share Posted January 23, 2009 Re: [mccode]Multi alert pffft...LOL...$exception Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 23, 2009 Share Posted January 23, 2009 Re: [mccode]Multi alert pffft...LOL...$exception I find your post amusing.. want to know why? Because i'm not laughing. What is wrong with the $exception_list.. you got a better way? Please do show. And if you come back with SQL shit please do it the right way ;) Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 23, 2009 Author Share Posted January 23, 2009 Re: [mccode]Multi alert for those who cba to test the script instead of posting stupid things TEST THE FUC**NG SCRIPT!!! it only sends 1 event!!! Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 23, 2009 Share Posted January 23, 2009 Re: [mccode]Multi alert i think they mean the 1 event each time they log in....... I guess......cause its obvious by reading that once the event is sent there is a session made so while logged in you will NOT get anymore events...So....I don't know what they mean... Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 23, 2009 Author Share Posted January 23, 2009 Re: [mccode]Multi alert thank you its good to see some people read things before posting Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 24, 2009 Share Posted January 24, 2009 Re: [mccode]Multi alert Actualy this will continuasly send event's. Due to the fact: [...]In header.php Underneath add [...] Quote Link to comment Share on other sites More sharing options...
POG1 Posted January 24, 2009 Share Posted January 24, 2009 Re: [mccode]Multi alert This is a stupid idea.. Some people will share a computer and therefore share an ip, they will then be sending events all the time. Put this on pages where the user sends stuff (items,money,crsystals) so they can play without cheating ;) Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 24, 2009 Author Share Posted January 24, 2009 Re: [mccode]Multi alert dam killah i thought you was smart this has been tested and it only sends one event Every login not every page i tested it several times. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 24, 2009 Share Posted January 24, 2009 Re: [mccode]Multi alert Oh jeez.. let me post what you have wrong ok. You putting this in header.php.. a file that is ran every time you click on a link right? You have: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Please tell me where does it put: $_SESSION['detected_multi'] = 1; ? NO WHERE! Now let's see. I add this code bellow to a test file: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. What do we get? www.deadlykillah.com/yubi_sucks.php: First click: SEE!! Second Click: SEE!! Third Click: SEE!! Ok we can of course see it is not working right? Now let's add this to the bottom of the page... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And now we get: First Click: SEE!! Second Click: Ok now its working. Now tell me who is smart and who is stupid? Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 24, 2009 Author Share Posted January 24, 2009 Re: [mccode]Multi alert only thing you have proven there is that you have nothing better to do with your time because your a saddo :-D Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 24, 2009 Share Posted January 24, 2009 Re: [mccode]Multi alert only thing you have proven there is that you have nothing better to do with your time because your a saddo ;D Eish.. can i prove you wrong again? Only thing i have done there is to prove you are wrong in my spare time. Atleast i get and am no mommy's boy. At saddo? Please.. i go out every weekend. Got a bike of my own 400cc.. and got a girlfriend.. Saddo? PFFT! Quote Link to comment Share on other sites More sharing options...
Delete-please Posted January 24, 2009 Author Share Posted January 24, 2009 Re: [mccode]Multi alert keep thinking that mate one day you may fool your self and others :lol: Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 25, 2009 Share Posted January 25, 2009 Re: [mccode]Multi alert I been told this don't work for v1... This should work for v1. Run this SQL alter table users add lastip_login VARCHAR(255) NOT NULL DEFAULT '127.0.0.1'; Now. Open authenticate.php Find header("Location: loggedin.php"); add before that. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now use this code instead. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Haunted Dawg Posted January 25, 2009 Share Posted January 25, 2009 Re: [mccode]Multi alert And again. Where is the $_SESSION['detected_multi'] = 1; If you people are not going to do it then just do this in authenticate.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted January 25, 2009 Share Posted January 25, 2009 Re: [mccode]Multi alert Never mind...My bad man.. I just now realized what you meant.... ======================= sorry everyone that header code for v1 i posted before i will not work. This is it. header code for v1 You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Other stuff was right. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.