View Single Post
  #1  
Old 12-12-2014, 11:47 PM
Kyttias's Avatar
Kyttias Kyttias is offline
Premium Member
 
Join Date: Jan 2014
Posts: 857
Gender: Unknown/Other
Credits: 90,797
Kyttias is on a distinguished road
Angry So... How to Disable the Auto-Ban?

...I accidentally managed to get my admin account banned by reloading the confirm page for pounding an adoptable.

For the curious, I was being dumb, and was trying to view the message again while I edited what was being displayed. I was tired of seeing "at a cost of 0", so I had to change a few things to get the message to stop displaying.

I regained access to my admin panel by setting my usergroup from 5 back to 1 in the users table in the database, then had to change all the 'no's back to 'yes's in the users_status table in the database. Anything else I should know about?

How do I go about preventing this from happening to my users, at all, ever? Similar things can apparently happen with promo codes and while breeding. Would it be too much to ask that users get an error message, rather than an auto-ban? Things can always happen on accident (especially on slow/interrupted internet connections, where sometimes a page refresh is required to see anything at all). I want full control of when and where someone gets banned. I never want anyone banned without my knowledge or consent. I wouldn't mind receiving a PM alert with the user's activity, however.

For now I can comment out banuser($mysidia->user->username); in class_pound.php, the two locations in shows up in class_breedingvalidator.php and $ban = banuser($mysidia->user->username); in class_promocode.php.

But how can I go about creating a system that will alert me with a PM containing the username and action they were attempting to perform? Is there any immediate danger in letting users continue to do foolish things or will it automatically interrupt them and prevent the action from going through? Of course I don't want the action to go through, I just don't want them to be banned for it.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it.

Last edited by Kyttias; 12-13-2014 at 12:31 AM.
Reply With Quote