DX Auth User Guide Version 1.0


From version 1.0.5 to 1.0.6

From version 1.0.4 to 1.0.5

From version 1.0.3 to 1.0.4

If you use is_role() function, be careful because in 1.0.4, $use_role_name parameter default is TRUE.

In previous version, $use_role_name parameter is defined as FALSE by default, even tough it was written as TRUE in documentation. So now it's fixed.

From version 1.0.2 to 1.0.3

Change function get_catpcha_image() to get_captcha_image(). Notice the first function is wrongly typed.

From version 1.0.1 to 1.0.2

Step 1: Update your roles table

Add parent_id field (int) not null default is 0, in roles table.

To add this column you will run a query similar to this:

ALTER TABLE `roles` ADD `parent_id` int(11) NOT NULL default '0'

See table anatomy to know more about this.

Step 2: Add permissions table

To add this table you will run a query similar to this:

CREATE TABLE `permissions` (
  `id` int(11) NOT NULL auto_increment,
  `role_id` int(11) NOT NULL,
  `data` text collate utf8_bin,
  PRIMARY KEY  (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;

See table anatomy to know more about this.

Note: role_uri table will be abandonded, in 1.0.2 it will use this permission table.