[RevCMS]Client Script

Fume

wag1 piff ting
Dec 4, 2014
172
33
Hello devbest,
I have made a useful little script that is added to your client.
What does it do?
Well what it does it shows the User ID, Username, Email, IP Address and the accounts on the ip address.
It is also draggable like the mod tools therefore you can move it to where you want it.

What is the point of this?
This script helps catch out advertisers so you can be ready to ban them when they come into the client, it also helps you spot out any people trying to duplicate accounts (maybe for coins or for user count to get staff)

How to install:
This is simple, all you have to do is download the 2 files. Put the new.php file in your main directory and replace your client.php with my one.

Screenshot:
cEa8wAx.png

Download:




Enjoy! :)
p.s only staff members rank 4+ can see this, if you want it changed, open client and look for:
Code:
if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 4)
And change the '4'
 

Mastah

the funny thing is \r\n i did
Oct 25, 2010
739
41
The IP part and the mail part and the username part are pretty useless because you can just find it by using userinfo, also that most of the hotels nowerday have a tool in the Housekeeping which allows them to basically finds the accounts and the IP's that have registered along with the mail. So you'd be better off using this as a Housekeeping function than a client function.

Useless actually.
 

Fume

wag1 piff ting
Dec 4, 2014
172
33
The IP part and the mail part and the username part are pretty useless because you can just find it by using userinfo, also that most of the hotels nowerday have a tool in the Housekeeping which allows them to basically finds the accounts and the IP's that have registered along with the mail. So you'd be better off using this as a Housekeeping function than a client function.

Useless actually.
You have a point, but this can be used for the hotels that do not have a housekeeping. It is also a quicker way to find out this information as you don't have to go onto housekeeping to get it.
But anyway, thanks for the feedback:up:
Also, like I said, it can be used to catch advertisers before they even enter the client, if someone registers with the name like 'HabboHotel' then you know that they will be advertising so you can be ready to ban them.
 

Jaden

not so active
Aug 24, 2014
886
263
p.s only staff members rank 4+ can see this, if you want it changed, open client and look for:
Code:
if(mysql_result(mysql_query("SELECT rank FROM users WHERE id = '" . $_SESSION['user']['id'] . "'"), 0) >= 4)
And change the '4'
I don't use RevCMS but I'm pretty sure you could just do something like:
PHP:
global $users;

if ($users->getInfo($_SESSION['user']['id'], 'rank') >= 4) {
       // do something.
}
People use RevCMS, but fail to make use of the tools provided within the CMS to shrink if not improve your code.
I haven't downloaded this or anything but I'm sure it could be improved based on the code you posted above.
 

Fume

wag1 piff ting
Dec 4, 2014
172
33
I don't use RevCMS but I'm pretty sure you could just do something like:
PHP:
global $users;

if ($users->getInfo($_SESSION['user']['id'], 'rank') >= 4) {
       // do something.
}
People use RevCMS, but fail to make use of the tools provided within the CMS to shrink if not improve your code.
I haven't downloaded this or anything but I'm sure it could be improved based on the code you posted above.
Well tbh, this is a script that I made ages ago, I have been using it ever since, haven't really edited it.
However if I would of made it recently the code would be more tidy,
but it works, that's all that matters right?;)
 

Fume

wag1 piff ting
Dec 4, 2014
172
33
Okay, I know this was uploaded like 2 years ago, but i've recently opened a retro so I made a few adjustments to it.
What I've done:
  • Added a title
  • Added the time and date the account was created

I'm aware the code is still long and messy, but as long as it works it doesn't bother me :D
anyway its here for however wants it:
(just the new.php file needs replacing)

Screenshot:
m13heDg-SrOCa48ex8YslQ.png
 

Users who are viewing this thread

Top