includes/pageprocess.php
changeset 108 1c7f59df9474
parent 103 a8891e108c95
child 142 ca9118d9c0f2
--- a/includes/pageprocess.php	Tue Aug 28 19:00:20 2007 -0400
+++ b/includes/pageprocess.php	Wed Aug 29 18:23:37 2007 -0400
@@ -709,6 +709,13 @@
       echo '<tr><td class="row3">Real name: ' . $userdata['real_name'] . '</td></tr>';
     }
     
+    // Administer user button
+    
+    if ( $session->user_level >= USER_LEVEL_ADMIN )
+    {
+      echo '<tr><td class="row1"><a href="' . makeUrlNS('Special', 'Administration', 'module=' . $paths->nslist['Admin'] . 'UserManager&src=get&user=' . urlencode($target_username), true) . '" onclick="ajaxAdminUser(\'' . addslashes($target_username) . '\'); return false;">Administer user</a></td></tr>';
+    }
+    
     // Comments
     
     echo '<tr><th class="subhead">' . htmlspecialchars($target_username) . '\'s latest comments</th></tr>';