Dayo Posted April 17, 2009 Posted April 17, 2009 ive seen so many post like how do i unban myself as an admin has feded me :cry: so just add this to cron_minute You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Before You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. all this will do is remove your ban and as many times as they try you will be unbanned But if you have an admin already feded they will be unbaned in that case ip ban them or demote them. Quote
Miniman Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] Or you could add in the staff file.... if($r['user_level'] == 2) { die ("Admins cant be fedded."); $h->endpage(); exit; } OR if($r['userid'] == 1) { die ("The owner cannot be fedded"); $h->endpage(); exit; } Quote
p_T_s Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] what staff file do i put it in? You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I tried it in staff_punit.php but its not working Quote
noddy Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] ive seen so many post like how do i unban myself as an admin has feded me :cry: so just add this to cron_minute You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Before You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. all this will do is remove your ban and as many times as they try you will be unbanned But if you have an admin already feded they will be unbaned in that case ip ban them or demote them. Wouldnt it work better in header? less of a wait? Quote
Dayo Posted April 17, 2009 Author Posted April 17, 2009 Re: admins cant be feded [v2] no not reli cos its a max of 60 seconds plus its only used 1440 times a day where as if you have a big comunity it could be used 1000s of times a hour/day Quote
Yubi Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] Just use a query Quote
yaz123 Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] Or.. Just put it onto the header XD :P $fed = sprintf("UPDATE users SET fedjail = %u WHERE (user_level = %u)", 0, 2); $db->query($fed); Quote
DELETE ME NOW! Posted April 17, 2009 Posted April 17, 2009 Re: admins cant be feded [v2] Or you could add in the staff file.... if($r['user_level'] == 2) { die ("Admins cant be fedded."); $h->endpage(); exit; } OR if($r['userid'] == 1) { die ("The owner cannot be fedded"); $h->endpage(); exit; } Why You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. will work without You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. and You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Simple. Quote
Danny696 Posted April 19, 2009 Posted April 19, 2009 Re: admins cant be feded [v2] much eaier minute cron is You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Dayo Posted April 19, 2009 Author Posted April 19, 2009 Re: admins cant be feded [v2] but what if all your admins are feded ... Quote
AlabamaHit Posted April 19, 2009 Posted April 19, 2009 Re: admins cant be feded [v2] I'm pretty sure that Staff can NOT be fedded in v2. If they are. They are getting Taken off staff then fedded. Quote
Sparkz Posted April 19, 2009 Posted April 19, 2009 Re: admins cant be feded [v2] If Your An Admin, Then Go To PHPMYADMIN And Edit Users : You Will See A Little Pen One The Side Of The Name Click That : Value Go Down Find, fedjail 0 And It Should Get You Out Quote
Danny696 Posted April 19, 2009 Posted April 19, 2009 Re: admins cant be feded [v2] the name is missleasing Quote
Dayo Posted April 19, 2009 Author Posted April 19, 2009 Re: admins cant be feded [v2] well insted of calling it [V2] Admins can be fedded but for only a max time of 60 seconds or admins cant be feded [v2] hurmmmmm :roll: Quote
AlabamaHit Posted April 19, 2009 Posted April 19, 2009 Re: admins cant be feded [v2] V2 staff can NOT be fedded.....This wont work. Staff being feded. Are being taken off staff and then feded. If not...They have gone in and screwed up the codes. Stock v2 staff can Not be put into jail. Quote
mentaljason Posted April 20, 2009 Posted April 20, 2009 Re: admins cant be feded [v2] To be honnest i would use id's for your chosen staff as admins can easily de-staff you then bann you... so i would always stick ith the id. Quote
Uridium Posted April 20, 2009 Posted April 20, 2009 Re: admins cant be feded [v2] I remodded my installer.php so when your the first one to Reg your placed into a different table called Admin saves anyone harrasing you ;) Quote
mentaljason Posted April 22, 2009 Posted April 22, 2009 Re: admins cant be feded [v2] How would that work? it would take too much time as you would have to add everything like twick like for mailing etc.... seems to complictaed and POINTLES to me... Quote
Uridium Posted April 22, 2009 Posted April 22, 2009 Re: admins cant be feded [v2] How would that work? it would take too much time as you would have to add everything like twick like for mailing etc.... seems to complictaed and POINTLES to me... It creates 2 accounts one in the users and one in a new table called admin just incase someone did decide to ban you. you just login via a seperate page other than the register.php and you can edit yourself. Think of it as a GOD account Quote
Drizzah Posted April 16, 2010 Posted April 16, 2010 V2 staff can NOT be fedded.....This wont work. Staff being feded. Are being taken off staff and then feded. If not...They have gone in and screwed up the codes. Stock v2 staff can Not be put into jail. v2 staff can to be federal jailed. Look for this in the staff_punit.php file and there is nothing stopping it from happening. To the people saying the user is being taken off staff before being fed-jailed are wrong also. Anyone staff that has access to the fed-jailing can jail anyone as v2 sits. function fed_user_submit() <--- What to look for in staff_punit ----<<< { global $db,$ir,$c,$h,$userid; EDIT: Forgot to mention that it is the regular jailuser.php file that doesn't allow staff jailing. I think the best code on this topic is from "DELETE ME NOW!" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
Nicholas Posted April 16, 2010 Posted April 16, 2010 i use this to stop people from fedding admins lol. (yes AlabamaHit is correct V2 has a file set up to stop players fedding staff...) call it "jailuser.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in "viewuser.php" this is the link you can use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. remove this function from staff_punit.php (should be near top) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. there should be a "mailban.php" too... incase you dont have it... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in "viewuser.php" this is the link you can use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. remove this function from "staff_punit.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. i created the "forumban.php" as V2 hasnt created one but here it is... You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. in "viewuser.php" this is the link you can use You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. remove this function from "staff_punit.php" You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then you be fine from admins getting fedded, mail banned or forum banned. lol. NOTE: i recoded this on here so you could get some errors lol. NOTE: this isnt secured fully. cba to do it lol 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.