PDA

View Full Version : redirect page to other page after change password



iyan
05-29-2004, 09:10 AM
helo all

can we redirect to other page instead of directadmin login when user changed their password from CMD_CHANGE_EMAIL_PASSWORD page ?

regards
IYAN

DirectAdmin Support
05-31-2004, 03:23 PM
Hello,

http://www.directadmin.com/features.php?id=229

add the form value "redirect"

eg:
<input type=hidden name=redirect value="http://somewhere.com">

/usr/local/directadmin/data/templates/email_pass_change/index.html

John

iyan
05-31-2004, 04:34 PM
Thanks John for replied,

how can I build a change password page using user domain ? I did :

<a href=<? $HTTP_HOST ?>:2222/CMD_CHANGE_EMAIL_PASSWORD

but the result on browser is :

http://webmail.iyan.org/:2222/CMD_CHANGE_EMAIL_PASSWORD

there is / after domain, so the page is failed,

DirectAdmin Support
06-01-2004, 10:28 AM
Hello,

I assume you're using php...
You need to use http:// whevnere making an href url with a full link:

<a href="http://<? $HTTP_HOST ?>:2222/CMD_CHANGE_EMAIL_PASSWORD">link</a>

If you want to create your own "change password" page.. just create it on your your own website (hosted through apache).. and just use a form exactly like on the CMD_CHANGE_EMAIL_PASSWORD page... add the "redirect" value as described in that link (above).

John

iyan
06-02-2004, 12:36 AM
john,

using :

<a href="http://<? $HTTP_HOST ?>:2222/CMD_CHANGE_EMAIL_PASSWORD">link</a>

still have broken link,

it just show on browser :

http://:2222/CMD_CHANGE_EMAIL_PASSWORD

DirectAdmin Support
06-02-2004, 10:30 AM
Try: $_SERVER['HTTP_HOST']

iyan
06-03-2004, 07:37 PM
John

still have "/" before :2222, look like this :

http://webmail.iyan.org/:2222/CMD_CHANGE_EMAIL_PASSWORD

ok, no problem, we use anonymous Domain for this, thanks be4