Delete-please Posted January 16, 2009 Posted January 16, 2009 ok lets get started :P run the following SQL You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Change the 19 to the next number of spare table example i have 18 tables in my settings so i run 19 to insert the table the current password for the login is "default". Ok next step find in staff.php: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. under add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. now create a file called stafflogin.php put this inside You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Now create a file called staffl.php and put this inside You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open sglobals and find You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Above add You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. And thats all +1 me if you found this helpfull Quote
AlabamaHit Posted January 16, 2009 Posted January 16, 2009 Re: V2 Staff password with admin function You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. can be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. its auto increment So. it will update the number for ya :-P Quote
Delete-please Posted January 16, 2009 Author Posted January 16, 2009 Re: V2 Staff password with admin function ahhh thanks im still very new so every tip helps! Quote
jds137 Posted January 17, 2009 Posted January 17, 2009 Re: V2 Staff password with admin function Wouldn't this work just as well, less coding :P You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
John99 Posted January 17, 2009 Posted January 17, 2009 Re: V2 Staff password with admin function Yeahh,,, why not make it database.. staff_users table < after in there `staffid`,`staff_name`,`staff_username`,staff_password` then thats done then just make it like normal login with diffrent sessions like mc codes .. ? but include it in game like include_oncee("globals.php"); :P Quote
ReaSonZ Posted January 17, 2009 Posted January 17, 2009 Re: V2 Staff password with admin function Nice Yubi +1 When I Get Force Addition I Think I Need So Many Post First Quote
Delete-please Posted January 17, 2009 Author Posted January 17, 2009 Re: V2 Staff password with admin function Thanks and i wanted to do it so you set it by the basic settings :-P i may use some of your ideas though :) Quote
MyGunWars Posted January 19, 2009 Posted January 19, 2009 Re: V2 Staff password with admin function +1 :-D Quote
Zero-Affect Posted January 19, 2009 Posted January 19, 2009 Re: V2 Staff password with admin function sql is always a bad idea with passwords to staff panel... why not built in password example: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. d869db7fe62fb07c25a0403ecaea55031744b5fb is whatever just so you know... Quote
POG1 Posted January 19, 2009 Posted January 19, 2009 Re: V2 Staff password with admin function You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. can be You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. its auto increment So. it will update the number for ya :-P or.. VALUES ( NULL, 'game_pass', 'default' ) or just leave that field out. Quote
BluntMan Posted January 28, 2009 Posted January 28, 2009 Re: V2 Staff password with admin function ive installed it and its working fine apart from after i put in the password once i dont need to anymore it lets me in without asking does anybody know why? Quote
Vasien Posted January 29, 2009 Posted January 29, 2009 Re: V2 Staff password with admin function Looking over the code you only need to use the staff password every account login. So every time you login to the game will need to enter a staff password. Quote
Guest Anonymous Posted January 29, 2009 Posted January 29, 2009 Re: V2 Staff password with admin function sql is always a bad idea with passwords to staff panel... why not built in password Not sure how you draw that conclusion. Commercially, and personally, I use an ACL layer authenticated against an SQL back end with no problems. No issue with brute force either, unlike a static password (assuming no predictive layer). Quote
Zero-Affect Posted January 29, 2009 Posted January 29, 2009 Re: V2 Staff password with admin function not everyone is security cautious specially people on this forum, therefore a existing password with maybe a simple anti brute logger would be sufficient since on MC games with the right amount of knowledge you could access it on the db easier than bruting it... I'm sure you could knock up a quick example Nyna and show me where i am wrong Quote
Haunted Dawg Posted January 29, 2009 Posted January 29, 2009 Re: V2 Staff password with admin function http://criminalexistence.com/ceforums/h ... 830#p78830 Please tell me.. what an improvement.. Because.. While your's uses sql. Mine don't. Quote
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.