![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hello all,
I am new to roundcube and this is my 1st message. I have developed a page where people can register into my mail server. It works ok except that I donôt know how to log in the user(i have the $user & $pass) so i want to use them to log in the user and i want to go to the inbox after that. I am struggling to understand the index.php file and i donôt know how to do it. Can anyone help me? Thanks. Ed. |
|
#2
|
|||
|
|||
|
This question is probably offtopic in the requests forum...
If I understand you correctly, then one possible hack to do it would be using a intermediary page like the following, which would just submit the form with login-information to roundcube: Code:
<html> <head> <title>Redirect page</title> </head> <body onload="forms[0].submit();"> <form action="my-roundcube-url" method="post"> <input type="hidden" name="_action" value="login"> <input type="hidden" name="_user" value="$user"> <input type="hidden" name="_pass" value="$pass"> <input type="submit" value="Enter Mailbox"> </form> </body> </html> |
|
#3
|
|||
|
|||
|
Hi,
I didnôt see your answer until now. Thanks for answering. I havenôt been able to solve it (well actually once it worked 2 or 3 times and then it hang up again). Ed. |
|
#4
|
|||
|
|||
|
I didn't think i should post in this thread considering that it's in the wrong category, but I didn't think it would be right to make another post about this same thing, so here it goes. I've been using Roundcube for about a month now for a free email site much like yahoo mail. I'm using the latest RC2 version, and I have a registration system. About the registrations system to start, how it works it it runs through two files, the first is the data gathering section (form), the second is the data processing section (form processor). The form section gathers the appropriate information such as "Username" and "password" as well as a javascript password validation. The form processing section takes the form data and creates a new account through cpanel, with this method everything worked great but there was one problem, the users that registered had no way of knowing if they were registered, if there username was already taken, or if the server had an error. So I came up with a solution, the form processor would make the request to cpanel, and it would return the page contents, from there I added in a couple of these:
Code:
if (strpos($page, 'successfully') !== false) { echo '<center><h3>Registered</h3>Your account has been created, you may now login</center>'; }
Thanks in advance, John |
|
#5
|
|||
|
|||
|
Adjust the following code for your needs and place it in your registration script in an appropriate place.
Code:
// Login new user $_POST['_user'] = $strUser . "@" . $strDomain; $_POST['_pass'] = $strPass; $_POST['_host'] = $strHost; $_action = "login"; -Roland |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
| For more information about the ads and why they're here, please see the FAQ |