UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Hey there guys, I've edited this thread, and I've cleaned it up, like I promised =)
First of all, you're going to want to download the PIN System script, by going to the following link:
PIN System - Liam (From RaGEZONE).rar
Once you have done that, you're going to want to extract that into the main main directory of your hotel, (XAMPP / WWWROOT) - Then you're going to want to run this SQL Query:
Quote:
CREATE TABLE IF NOT EXISTS `unlock_pins` (
`userid` int(11) NOT NULL,
`unlock_code` varchar(20) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
ALTER TABLE `users`
ADD COLUMN `staff_pin` int(4) NOT NULL DEFAULT '1234';
Once you have done that, you can then give your staff their very own PINs!
But, if you want the PIN system to actually be enforced, you're going to want to open up your `client.php` or `newclient.php` file and paste this anywhere under, as long as it's under the global require!
PHP Code:
// No PIN - LOCKED!
if($users->GetUserVar(USER_ID, 'rank') > 4 && !isset($_SESSION["staff_PassAuth"])) {
header ("Location: " . WWW . "/denied.php");
}
if($users->GetUserVar(USER_ID, 'failed_pins') > 4) {
header ("Location: " . WWW . "/locked_out.php");
}
And if you want the best security for your staff, add this to your housekeeping index:
PHP Code:
if($users->GetUserVar(USER_ID, 'failed_pins') > 4) { header ("Location: " . WWW . "/locked_out.php");
}
Images:
http://img600.imageshack.us/img600/5...rification.png
http://img838.imageshack.us/img838/1...aersvsedtb.png
I thank you for taking the time to read this, and using my script, if you are! I hope you enjoyed my release. Credits go to Jonty, for releasing the original script.. And to me, for completing it and making it more advanced!
If I helped you, or you liked this release, feel free to like the thread, or REP me! Cheers, Liam. Enjoy =D
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Well that's a long PHP code :P
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Prizm
Well that's a long PHP code :P
Thanks, can you make it for RevCMS too? ^.^
No problem ;) I will upload it as a download when I wake up (once I go to sleep, that is..)
And, next time, please read the thread. I'm NOT converting this into another thread... Sorry :P But it's not that hard to convert it =)
Cheers,
Liam!
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Liam
No problem ;) I will upload it as a download when I wake up (once I go to sleep, that is..)
And, next time, please read the thread. I'm NOT converting this into another thread... Sorry :P But it's not that hard to convert it =)
Cheers,
Liam!
haha I forgot to read the text under the quote =P
I know RevCMS in and out, so it wouldn't be that hard ;)
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Next time put that code in a
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
SeaTroll
Next time put that code in a
What if I didn't want to though?
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Liam
What if I didn't want to though?
Then at least use PHP tags, not quotes. :P:
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
n0minal
Then at least use PHP tags, not quotes. :P:
Eh, give me a break dude it's 7 AM o__o No sleep <3 No hatin ? Nah I'll clean up the thread sooner or later =)
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Dude, please if you have more than 10 CSS rules in a file make a .css file and link the file with HTML >< The code is a lot messy with all of those CSS class. :lol:
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Emetophobic
Dude, please if you have more than 10 CSS rules in a file make a .css file and link the file with HTML >< The code is a lot messy with all of those CSS class. :lol:
Indeed, it looks very messy with all this CSS on the pages.
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
The pin system was never needed. I mean if the user was stupid enough to give out the password, tough. It just creates unneeded cookies and queries.
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Zak©
The pin system was never needed. I mean if the user was stupid enough to give out the password, tough. It just creates unneeded cookies and queries.
So you rather less security just because it's one TINY cookie on your computer? Hrmmmm.. That's nice =) Enjoy the release fellows!
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Liam
So you rather less security just because it's one TINY cookie on your computer? Hrmmmm.. That's nice =) Enjoy the release fellows!
The pin system is cool and somewhat creative but..... it does get to be a little annoying after a while.
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
leenster
The pin system is cool and somewhat creative but..... it does get to be a little annoying after a while.
I've gotten use to it, that's me personally. But your hotel, your rules.. If you want it, you use it, if you don't, don't use it.
Re: UberCMS PIN System [v2.3 - Edit of Jonty's PIN System]
Quote:
Originally Posted by
Liam
So you rather less security just because it's one TINY cookie on your computer? Hrmmmm.. That's nice =) Enjoy the release fellows!
If you're smart enough to use a decent CMS then you should be more then fine since every "hacker" in the Habbo community is a skid who can only DOS.
It's not a bank account we don't need several security verifications. But i guess that's just your view.