When access is denied, also provide when possible and wanted, the needed
permissions so that in the future, user will be able to ask for
permission easily.
Renamed previous user handlers as admin user handlers.
Added non admin user handler /user/{uid} .
Add new `send_...` response to `CMS_API.response_api`, and use them
instead of `create {...RESPONSE}.... ; execute`.
Fixed potential issue with storage mailer initialization if folder does
not exist.
Added utf_8_encoded helpers function on CMS_API interface.
Fixed a few unicode potential issues.
Removed a few obsolete calls.
39 lines
937 B
Smarty
39 lines
937 B
Smarty
{assign name="debug_enabled" value="True"/}
|
|
{if condition="$debug_enabled"}
|
|
<!-- start debug -->
|
|
{literal}
|
|
<style>
|
|
div.cms-debug>span {
|
|
position: absolute;
|
|
bottom: 5px;
|
|
right: 5px;
|
|
color: #ccc;
|
|
padding: 5px;
|
|
}
|
|
div.cms-debug:hover>span {
|
|
color: red;
|
|
}
|
|
div.cms-debug>span+ul {
|
|
display: none;
|
|
border: solid 2px red;
|
|
background-color: #ccc;
|
|
white-space: pre-wrap;
|
|
}
|
|
div.cms-debug:hover>span+ul {
|
|
display: block;
|
|
position: relative;
|
|
bottom: 5px;
|
|
left: 1%; right: 1%;
|
|
width: 98%;
|
|
}
|
|
</style>
|
|
{/literal}
|
|
<div class="cms-debug"><span>Show debug</span>
|
|
<ul>
|
|
{assign name="kpage" value="page"/}{assign name="kregions" value="regions"/}{foreach key="k" item="i" from="$page.variables"}{unless condition="$k ~ $kpage"}{unless condition="$k ~ $kregions"}<li><strong>{$k/}</strong>={htmlentities}{$i/}{/htmlentities}</li>{/unless}{/unless}
|
|
{/foreach}
|
|
</ul>
|
|
</div>
|
|
<!-- end debug -->
|
|
{/if}
|