Skip to content

Instantly share code, notes, and snippets.

@evandrix evandrix/gist:4472401 forked from trietptm/gist:4467108
Last active Dec 10, 2015

Embed
What would you like to do?
<?php
// ...
if ($page == "admin" && !$user->isAdmin()) {
include("admin.php");
} else {
include("/pages/{$page}.html");
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.