' => array('profile/view', 'legacyQuery' => 'id.{id}', 'parseCallback' => 'idByName'),
)
diff --git a/e107_core/url/user/url.php b/e107_core/url/user/url.php
index 0700f8053..b40c391d2 100644
--- a/e107_core/url/user/url.php
+++ b/e107_core/url/user/url.php
@@ -68,7 +68,7 @@ class core_user_url extends eUrlConfig
break;
case 'edit':
- $url = 'usersettings.php?'.$params['id'];
+ $url = e_ADMIN_ABS."user.php?mode=main&action=edit&id=".$params['id'];// 'usersettings.php?'.$params['id'];
break;
}
}
diff --git a/e107_handlers/e107_class.php b/e107_handlers/e107_class.php
index 9863cfbd0..61b6b8bad 100644
--- a/e107_handlers/e107_class.php
+++ b/e107_handlers/e107_class.php
@@ -3441,7 +3441,11 @@ class e107
}
- define('e_ADMIN_AREA', ($inAdminDir && !deftrue('USER_AREA')));
+ if(!defined('e_ADMIN_AREA'))
+ {
+ define('e_ADMIN_AREA', ($inAdminDir && !deftrue('USER_AREA')));
+ }
+
define('ADMINDIR', $ADMIN_DIRECTORY);
define('SITEURLBASE', $this->HTTP_SCHEME.'://'.$_SERVER['HTTP_HOST']);
diff --git a/usersettings.php b/usersettings.php
index f95b6c85b..f56db436c 100644
--- a/usersettings.php
+++ b/usersettings.php
@@ -21,75 +21,11 @@ Admin log events:
USET_01 - admin changed user data
*/
-/*
-if(preg_match('/^\/(.*?)\/(usersettings\.php|\/edit)(\?|\/)(\d+)$/i', $_SERVER['REQUEST_URI'], $_usersettings_matches))
-{
- $eplug_admin = TRUE;
-}
-*/
require_once ('class2.php');
// TODO - Remove all the adminEdit stuff.
-/*
-class usersetting_admin extends e_admin_dispatcher
-{
-
- protected $modes = array(
- 'main' => array(
- 'controller' => 'usersettings_admin_ui',
- 'path' => null,
- 'ui' => null,
- 'uipath' => null,
- //'perm' => '0',
- )
- );
-
-
- protected $adminMenu = array(
- 'main/list' => array('caption'=> LAN_MANAGE, 'perm' => '0', 'url' => '{e_ADMIN}users.php'),
- 'main/add' => array('caption'=> LAN_USER_QUICKADD, 'perm' => '4|U0|U1', 'url' => '{e_ADMIN}users.php'),
- 'main/prefs' => array('caption'=> LAN_OPTIONS, 'perm' => '4|U2', 'url' => '{e_ADMIN}users.php'),
- 'main/ranks' => array('caption'=> LAN_USER_RANKS, 'perm' => '4|U3', 'url' => '{e_ADMIN}users.php')
- );
-
- protected $adminMenuAliases = array(
- 'main/edit' => 'main/list',
- 'main/admin' => 'main/list',
- 'main/userclass'=> 'main/list',
- 'main/test' => 'main/list',
- );
-
-
-
- protected $menuTitle = 'users';
-
-
- public function runObservers($run_header = true)
- {
- // Catch useraction
- if (isset($_POST['updatesettings']))
- {
-
- }
-
- return parent::runObservers($run_header);
- }
-
-
-
-}
-
-class usersettings_admin_ui extends e_admin_ui
-{
- public function EditPage()
- {
-
- }
-
-}
-*/
include_lan(e_LANGUAGEDIR.e_LANGUAGE.'/lan_'.e_PAGE);
@@ -209,87 +145,11 @@ if(!is_array($info) || ($info['user_admin'] == 1 && (!defined('ADMINPERMS') || A
}
}
-// TODO - Remove all the adminEdit stuff.
-/*
-
-if($adminEdit) // try to stay in Admin when admin is editing.
-{
- $mes = e107::getMessage();
- $ADMIN_USERSETTINGS_EDIT = $mes->render(). "
-
-
- ".e107::getForm()->admin_button('updatesettings',LAN_UPDATE,'update')."
-
-
-";
-
-
-$USERSETTINGS_EDIT = $ADMIN_USERSETTINGS_EDIT;
-include_lan(e_LANGUAGEDIR.e_LANGUAGE."/admin/lan_admin.php");
-new usersetting_admin();
-require_once (e_ADMIN."auth.php");
-//e107::getAdminUI()->runPage();
-}
-*/
-// else
-{
- require_once (HEADERF);
-}
// Save user settings (changes only)