page: move placeholder_include() to widget method
[minimedit.git] / login / edit / index.php
index b92104cf92568a578d549630eacca7962f79f0b6..2ba0cf38711729942f86ba353ab8db1c59207055 100644 (file)
@@ -1,5 +1,9 @@
 <?php
-if ($Args) {
-       ob_clean();
-       include 'login/edit/index.html';
+if ($Page->path and $User->admin('user')) {
+       $user = new User(strtolower("profile{$Page->path}"), FALSE);
+       print $Page->widget('login/admin');
+       $Page->title = "Profiel <em>{$user->login}</em>";
+       print "<h2>{$Page->title}</h2>\n";
+       print $Page->widget('login/edit');
+       return;
 }