page: move placeholder_include() to widget method
[minimedit.git] / login / edit / index.php
index c56109fbd53df0992d186019fba7fc5e3d53d127..2ba0cf38711729942f86ba353ab8db1c59207055 100644 (file)
@@ -1,6 +1,9 @@
 <?php
-if ($Args) {
-       $Place['user'] = ltrim($Args, '/');
-       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;
 }