Jump to content
MakeWebGames

Recommended Posts

Posted

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.

Posted

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;

}

Posted

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

Posted

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?

Posted

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

Posted

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

Posted

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.

Posted

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

Posted

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:

Posted

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.

Posted

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

Posted

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...

Posted

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

  • 11 months later...
Posted
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.

Posted

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

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.

×
×
  • Create New...