-elseif (!empty($User['admin'])) {
- $staticpage = (file_exists("$Page/template.html") ? "$Page/template.html" : 'template.html');
-}
-
-# load static contents
-
-ob_start(); # page body
-ob_start(); # inner html
-print '<div class="static">'."\n\n";
-
-$found = FALSE;
-if (isset($staticpage)) {
- $found = include "./$staticpage";
+elseif ($User and $User->admin("edit $Page$Args")) {
+ $staticpage = (file_exists("$Page/template.inc.html") ? "$Page/template.inc.html" : 'template.inc.html');