Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
// ...
if ($page == "admin" && !$user->isAdmin()) {
include("admin.php");
} else {
include("/pages/{$page}.html");
}
?>
@trietptm

This comment has been minimized.

Copy link
Owner Author

trietptm commented Jan 6, 2013

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.