Jump to content
MakeWebGames

[mccode]Multi alert


Delete-please
 Share

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 ;)

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...