{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}
{if $priv_is_admin} Server Settings
Add New User
Optimize (compress) MySQL tables
Re-create MySQL tables
{/if} Change panel access password

{if {$smarty.request.routine|default:''} == 'server_settings_form'} {if $priv_is_admin}

Server Settings

{else} {include file='error.tpl' err_code='ERR_NOT_ENOUGH_PRIVILEGES'} {/if} {elseif {$smarty.request.routine|default:''} == 'change_pass_form'}

Change access password

{elseif {$smarty.request.routine|default:''} == 'new_user_form'} {if $priv_is_admin}

Add User

{else} {include file='error.tpl' err_code='ERR_NOT_ENOUGH_PRIVILEGES'} {/if} {elseif {$smarty.request.routine|default:''} == 'edit_form'} {if $priv_is_admin} {if isset($user_data) && is_array($user_data)}

Edit data

{else} {include file='error.tpl' err_code=''} {/if} {else} {include file='error.tpl' err_code='ERR_NOT_ENOUGH_PRIVILEGES'} {/if} {/if} {if $priv_is_admin && count($user_list) > 0}

Members List

{foreach from=$user_list item=user} {/foreach}
User Privilege Actions
{$user.username} {$user.privileges} Edit data | Remove
{/if}