diff -upNr me.47/me.info me.50/me.info
--- me.47/me.info	1969-12-31 19:00:00.000000000 -0500
+++ me.50/me.info	2007-01-09 15:51:01.017582900 -0500
@@ -0,0 +1,2 @@
+name = Me aliasing
+description = "Provides links to current user's pages using 'me' instead of user id."
diff -upNr me.47/me.module me.50/me.module
--- me.47/me.module	2006-11-12 11:02:48.000000000 -0500
+++ me.50/me.module	2007-01-09 19:06:37.489344000 -0500
@@ -1,16 +1,16 @@
 <?php
-// $Id: me.module,v 1.3 2006/11/12 16:02:48 ahoeben Exp $
 
 /**
  * Implementation of hook_help().
  */
-function me_help($section) {
+/* function me_help($section) {
   switch ($section) {
     case 'admin/modules#description':
       return t('Provides links to current user\'s pages using \'me\' instead of user id.');
   }
 }
-
+ */
+ 
 /**
  * Implementation of hook_menu().
  */
@@ -28,10 +28,21 @@ function me_menu($may_cache) {
         $items[] = array(
           'path' => $alias,
           'type' => MENU_CALLBACK,
-          'callback' => 'me_relay'
+          'callback' => 'me_relay',
+		  'access' => user_access('access content'), 
         );
       }
     }
+
+	$items[] = array(
+	    'path' => 'admin/settings/me',
+	    'title' => t('Me aliasing'),
+	    'description' => t('Define URL paths for Me aliasing.'),
+	    'callback' => 'drupal_get_form',
+	    'callback arguments' => array('me_admin_settings'),
+	    'access' => user_access('administer site configuration'),
+	    'type' => MENU_NORMAL_ITEM, // optional
+	);
   }
 
   return $items;
@@ -42,7 +53,7 @@ function me_menu($may_cache) {
  *
  * Provide a single textbox that allows admins to enter any number of paths containing 'me'
  */
-function me_settings() {
+function me_admin_settings() {
   $form['me_aliases'] = array(
     '#type'=>'textarea',
     '#title'=>t('Aliases to create'),
@@ -52,7 +63,7 @@ function me_settings() {
     '#description'=>t('The per-user aliases to create. Each alias must contain the \'me\' fragment or it will be ignored. Enter one alias per line, and do not include trailing or leading slashes.'),
   );
 
-  return $form;
+  return system_settings_form($form);
 }
 
 /**
@@ -71,6 +82,8 @@ function me_relay() {
     $dest.=(($dest=='')?'':'/').(($fragment=='me')?$user->uid:$fragment);
     $index++;
     $fragment = arg($index);
+//	  watchdog('Me alias', '"' . $fragment . '" -> "' . $dest . '"', WATCHDOG_ERROR);
   }
+
   drupal_goto($dest);
 }
\ No newline at end of file
