Skip to content

Instantly share code, notes, and snippets.

@evandrix
Forked from trietptm/gist:4467108
Last active December 10, 2015 18:08
Show Gist options
  • Save evandrix/4472401 to your computer and use it in GitHub Desktop.
Save evandrix/4472401 to your computer and use it in GitHub Desktop.
<?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