Recent Tutorials
Who is online?
In total there are 7 users online :: 2 Registered, 0 Hidden and 5 Guests

djblah, SLGray

[ View the whole list ]

Most users ever online was 172 on Fri 19 Feb 2016, 05:17

Using the database protect and filter options

View previous topic View next topic Go down

Ange Tuteur
Title :
Coffee Addict
Gender : Male
Age : 21
Posts : 4675
Points : 9689
Reputation : 2331
Location : Macungie, PA
Language : EN10, FR5
Browser : Browser : Brave Forum Version : Forum Version : Forumactif Edge
Awards :
View all awards
View user profile

PostAnge Tuteur on Mon 16 Feb 2015, 01:37

Version 1.02 of the database included an option which allows you to filter posts from modifications and protect your database. Note that these options are not full proof, but for the most part will help protect your database from normal members. For an explanation on these options, read on.

Database Protect

This option enables all security options such as filter. It's boolean, so it can be enabled and disabled with the following values :

  • 1 (Enabled)
  • 0 (Disabled)
  • true (Enabled)
  • false (Disabled)

If you want to ensure your database is only accessible by Administrators, then it is important that you have this option Enabled !

Database Filter

Filter allows you to filter certain tables from being edited or deleted. It takes an array of PIDs, with each PID being separated by a comma. By default the filter option should look like the following code.
_database.filter = [];

To protect a table, go to your database, copy the PID from your table's header, and paste it between the brackets.

_database.filter = [1387];

To protect multiple tables, simply do the same, but make sure to separate each PID by a comma !
_database.filter = [ 1387, 1391, 1690, 1759 ];

With this set, anyone who tries to edit or delete a table will be redirected to the index.
New Member
Title :
Gender : Unspecified
Posts : 4
Points : 923
Reputation : 1
Language : English
Browser : Browser : Mozilla Firefox Forum Version : Forum Version : Other
Awards :
View all awards
View user profile

PostForumMember on Mon 16 Feb 2015, 08:43

Thank you. Smile

View previous topic View next topic Back to top

Create an account or log in to leave a reply

You need to be a member in order to leave a reply.

Create an account

Join our community by creating a new account. It's easy!

Create a new account

Log in

Already have an account? No problem, log in here.

Log in

Permissions in this forum:
You cannot reply to topics in this forum