X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/54f21498843819c2d063ce3dd4a450fc006d7301..7983570288ed2798470a552ec04f64aa646b664a:/login/edit/index.php diff --git a/login/edit/index.php b/login/edit/index.php index fb668cf..2ba0cf3 100644 --- a/login/edit/index.php +++ b/login/edit/index.php @@ -1,8 +1,9 @@ admin('user')) { - $user = new User(strtolower("profile$Args"), FALSE); - $Article->title = "Profiel {$user->login}"; - print "

{$Article->title}

\n"; - print placeholder_include('login/edit'); +if ($Page->path and $User->admin('user')) { + $user = new User(strtolower("profile{$Page->path}"), FALSE); + print $Page->widget('login/admin'); + $Page->title = "Profiel {$user->login}"; + print "

{$Page->title}

\n"; + print $Page->widget('login/edit'); return; }