To set access rights to a folder, you need first to define users.<br><br>
<b>Defining users</b><br>
Create a document in your root directory (directory where CSE_CMS.php resides) with the exact same name as the name given in <codes>ettings.php</code> in the variable 
<code>$CSE_USERLIST</code>. Do not add any extension like .txt unless you add it also in the variable.<br>
In this file, you define on each line 1 user:<br>
<code>username userpassword usergroup</code><br>
The usergroup is just a number, which is negative for "administrator" that gets all access, and positive for registered users. Eah user must belong to exactly 1 group.
Zero is not a valid group.<br>
Assume that Albert and Bernard belong to the blue team, and Cornelia and Dominique to the red team. Emil is administrator (and referee). The resulting file may be:<br>
<code>Albert pass1 1<br>
Bernard pass2 1<br>
Cornelia pass3 2<br>
Dominique pass4 2<br>
Emil pass5 -1</code><br><br>
<b>Define access rights</b><br>
By default, all folders and documents are visible for anybody.<br>Acces rights are folder-based, define the visibility of the folder itself and extend to the content of a folder and to all its subfolders.<br><br>
To limit acces rights, add in the folder a document called <code>CSE_lock</code>. This document contains just the number of the usergroups allowed to access the content.
Just type in the numbers separated by spaces.<br>So for example, the folder "blue team" will contain a <code>CSE_lock</code> document containing a <code>1</code>.<br>
The folder "red team" will contain a <code>CSE_lock</code> document containing a <code>2</code>.<br>
And the folder "red-blue exchange" will contain a <code>CSE_lock</code> document containing <code>1 2</code>, thus being allowed for both groups.<br><br>
Emil will have access to all of those folders, being an administrator.<br><br>
<b>Test</b><br>
You can register with username "demo" and password "demo", and you should see, in the main menu (and in the table of content on the right) a new folder "Restricted Access" appearing.<br>If you log off, the folder will dissapear again.<br>