Currently, index.php contains the following lines:
<?php function authenticated() {
if ($cfg[protect]===true && !isset($_SERVER['PHP_AUTH_USER'])) return false;
if (isset($_SERVER['PHP_AUTH_USER']) &&($_SERVER['PHP_AUTH_USER'] != $cfg[user] || $_SERVER['PHP_AUTH_PW'] != $cfg[pass])) return false;
return true;
} if (authenticated()) echo ' | <a href="./admin">Admin</a>'; ?>
This should be updated to:
<?php echo $ccms['adminlink'] ?>
That way, if you develop other templates you are not repeating the security logic.