http://www.atutor.ca/atutor/mantis/view.php?id=2843
authorjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 23 Nov 2006 17:28:20 +0000 (17:28 -0000)
committerjoel kronenberg <joel.kronenberg@utoronto.ca>
Thu, 23 Nov 2006 17:28:20 +0000 (17:28 -0000)
docs/profile.php
docs/themes/default/profile.tmpl.php

index 377af6d..e0fc340 100644 (file)
@@ -42,20 +42,12 @@ if ($profile_row = mysql_fetch_assoc($result)) {
                $status = _AT('enrolled');\r
        }\r
 \r
-       $privs = array();\r
-       $_privs = array();\r
-       foreach ($_privs as $key => $priv) {            \r
-               if (query_bit($row_en['privileges'], $key)) { \r
-                       $privs[] = $priv['name'];\r
-               }\r
-       }\r
        $_pages['profile.php']['title'] = _AT($display_name_formats[$_config['display_name_format']], $profile_row['login'], $profile_row['first_name'], $profile_row['second_name'], $profile_row['last_name']);\r
 \r
        require(AT_INCLUDE_PATH.'header.inc.php');\r
 \r
        $savant->assign('row', $profile_row);\r
        $savant->assign('status', $status);\r
-       $savant->assign('privs', $privs);\r
        $savant->display('profile.tmpl.php');\r
 } else {\r
        $msg->printErrors('NO_SUCH_USER');\r
index 62c63c9..3ed8261 100644 (file)
@@ -47,18 +47,7 @@ global $display_name_formats, $_config;
                        </dt>\r
 \r
                        <dt><?php echo _AT('status'); ?></dt>\r
-                       <dd>\r
-                               <?php echo $this->status; ?>\r
-                               <?php\r
-                               if ($this->privs) {\r
-                                       $priv_string = "(";\r
-                                       foreach ($this->privs as $priv) {\r
-                                               $priv_string .= _AT($priv).', ';\r
-                                       }                               \r
-                                       $priv_string = substr($priv_string, 0, -2);\r
-                                       echo $priv_string .')';\r
-                               }\r
-                               ?></dd>\r
+                       <dd><?php echo $this->status; ?></dd>\r
                </dl>\r
                <div style="clear: both; size: 1em"></div>\r
        </div>\r