1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-30 09:39:55 +02:00

Moving the system to the new URL assembling, fixed call to a non-existent eUrl method system wide.

This commit is contained in:
secretr
2011-11-26 18:17:42 +00:00
parent 0f794aa225
commit 548b585f7e
16 changed files with 55 additions and 42 deletions

View File

@@ -17,7 +17,7 @@ require_once ('../class2.php');
if (!getperms('4|U0|U1|U2|U3') )
{
header('location:'.$e107->url->getUrl('core:core','main','action=index'));
header('location:'.$e107->url->create('/'));
exit;
}
@@ -53,7 +53,8 @@ if (e_QUERY == 'logoutas' || varset($_POST['useraction']) == 'logoutas')
if (isset ($_POST['useraction']) && $_POST['useraction'] == 'usersettings')
{
header('location:'.$e107->url->getUrl('core:user','main','func=settings&id='.(int) $_POST['userid']));
// __URLFIX__ - user name
header('location:'.$e107->url->create('user/profile/edit', 'id='.(int) $_POST['userid'], 'full=1&encode=0'));
exit;
}
@@ -1342,7 +1343,7 @@ class users
break;
case 'user_name':
return "<a href='".$e107->url->getUrl('core:user','main','func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a>";
return "<a href='".$e107->url->getUrl('user/profile/view', 'name='.$row['user_name'].'&id='.$row['user_id'])."'>{$row['user_name']}</a>";
break;
case 'user_perms': //TODO display link to popup window with editable perms.