Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #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: 88,298
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
  #2  
Old 12-15-2014, 11:17 AM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,244
Hall of Famer is on a distinguished road
Default

Well, the auto-ban system is here for a reason. Users can cheat with inspect element, which allows them to modify values in checkbox, dropdown list or hidden fields. For instance, by manipulating the breeding form with inspect element, a user may be able to breed his/her own adoptables with other user's, which should not be allowed. When this happens, the user is penalized with an auto-ban. Similarly, if you try to pound an owned adoptable that does not belong to you, you will be auto-banned too.

There definitely is a way to disable this, and it seems to me that you have found this. Be careful with this action though.
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
Reply

Tags
auto-ban, banned, usergroup


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Making an auto installer Nemesis Feedback and Suggestions 9 12-23-2013 08:55 AM
New Users auto redirect to page mapleblade Mys v1.2.x Mods 6 02-09-2012 09:47 AM
Disable Inspect Element SilverDragonTears Questions and Supports 2 10-28-2011 10:10 AM
How do I completely disable/delete Breeding and genders? D.A.T.A. Questions and Supports 5 08-29-2011 01:34 AM


All times are GMT -5. The time now is 04:37 AM.

Currently Active Users: 9772 (0 members and 9772 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636