-
- 1,613 Posts
When your website is live and you want to do corrections or whatever which are only visible for manager logged-in users, you can use this snippet:
Snippet name:
loggedOnly
<?php
// [!loggedOnly?private=`--only visible when logged in--` &public=`--visible--`!]
$output = '';
$private = isset( $private ) ? $private : $output;
$public = isset( $public ) ? $public : $output;
if (!isset($_SESSION['mgrInternalKey'])) {
$output = $public;
}
else {
$output = $private;
}
return $output;
?>
Evolution user, I like the back-end speed and simplicity