bashtube/webroot/logout.shs
4 raccoons in a trenchcoat. / luna vivian 156b8fde27 changed logout text formatting
2023-04-20 00:12:34 +02:00

15 lines
324 B
Bash
Executable file

#!/bin/bash
declare -A strings
logout
meta[redirect]='/'
#source templates/head.sh
source "${cfg[namespace]}/templates/header.shs"
if [[ ${cfg[template]} != 'retro' ]]; then
echo "<h1>Logged out successully.</h1><p>Redirecting...</p>"
fi
render strings "${cfg[namespace]}/templates/themes/${cfg[template]}/logout.html"