Forums / Cotonti / General / Hacking UrlEditor

need to hack one line

Eugene
#36905 2013-01-28 14:05

Thank you for advice!

I made this piece of code


if ($path[0] == 'users' && $count == 3 && !isset($_GET['m'])) {

    $_GET['e'] = 'users';
    $_GET['m'] = 'details';
    $_GET['u'] = $path[1];
    $_GET['det'] = $path[2];

    return;
}

and in urltrans.dat

users	m=details&u=*&det=*		users/{cot_url_username()}/{$det}

Thank you ))