{if {$smarty.request.routine|default:''} == 'confirm_delete'} {if $priv_is_admin} {assign var='msg' value="Are you sure you want to delete the user? '"|cat:{$smarty.request.username|default:''}|cat:"'?"} {assign var='yes_code' value={$smarty.server.SCRIPT_NAME}|cat:"?action=admin&routine=delete&user_id="|cat:{$smarty.request.user_id|default:''}} {assign var='no_code' value={$smarty.server.SCRIPT_NAME}|cat:"?action=admin"} {include file='confirm.tpl'} {else} {include file='error.tpl' err_code='ERR_NOT_ENOUGH_PRIVILEGES'} {/if} {elseif {$smarty.request.routine|default:''} == 'confirm_rebuild_tables'} {if $priv_is_admin} {assign var='msg' value="Are you sure you want to re-create the tables and erase all the data?"} {assign var='yes_code' value={$smarty.server.SCRIPT_NAME}|cat:"?action=admin&routine=rebuild_tables"} {assign var='no_code' value={$smarty.server.SCRIPT_NAME}|cat:"?action=admin"} {include file='confirm.tpl'} {else} {include file='error.tpl' err_code='ERR_NOT_ENOUGH_PRIVILEGES'} {/if} {/if}
| User | Privilege | Actions |
|---|---|---|
| {$user.privileges} | Edit data | Remove |