-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Content rules configuration - ".olicontent" file #10
Labels
feature
Specific features updates and suggestions
Comments
matiboux
changed the title
Content rules ".oliaccess"f ile
Content rules configuration - ".olicontent" file
Mar 25, 2017
matiboux
added
feature
Specific features updates and suggestions
standby
It's there, but on standby
labels
Mar 25, 2017
matiboux
added a commit
that referenced
this issue
Mar 25, 2017
Added support for a different 404 error file Minor edits in OliCore:setupMySQL() → Issue #10 development step
matiboux
added a commit
that referenced
this issue
Mar 25, 2017
Added support for a different 404 error file Minor edits in OliCore:setupMySQL() → Issue #10 development step
matiboux
added a commit
that referenced
this issue
Mar 26, 2017
Edits on OliCore::loadContent() → Unfinished 403 error handler Added $pathTo parameter to OliCore::decodeContentRules() Added OliCore::fileAccessAllowed() function Minor edits on OliCore::getUserRightLevel() OliCore::getRightLevel() is now deprecated, use directly OliCore::translateUserRight() instead → Issue #10 development step
I stopped mentioning the issue in my commits, |
Update: Everything is not supported. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Like the index file name config (#6) previously added to the framework, why not support something such as a .olicontent file?
This new file would contains all content rules of the current content directory and sub-directories.
When rules are not specified in a content directory, Oli should use either the parent directory rules (for a sub-directory), the website configuration or the framework default settings, in that specific order.
All rules:
Index: "{filename}"
– e.g.Index: "index.php"
Error: {http-code} "{filename}"
– e.g.Error: 404 "404.php"
Access: [{files}] DENY/ALLOW *
orAccess: [{files}] DENY/ALLOW [from {right}] [to {right}]
The
{files}
parameter is an encoded json array.The
{rights}
parameters are included to the range.Access: DENY *
orAccess: DENY to VIP
(VIP also denied)Access: ALLOW *
orAccess: ALLOW from USER
(USER also allowed)Access: ["login.php"] ALLOW *
Also, some new config should be added for default errors file handlers.
The text was updated successfully, but these errors were encountered: