Author Topic: AutoSignup with Directadmin Password support and Theme Integration (Version 2.0)  (Read 35649 times)

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
NEW VERSION 2.0 SUPPORTS 0.2.1

I have had many ask for the source of my company EmailPackRat.com. Well, i've finally gotten it cleaned up enough to pass it on.

Here's the Demo Running Round Cube 0.2stable (Version 1.1):
*REMOVED. OBSOLETE**

Here's the Demo Running Round Cube 0.2.1 (Version 2.1):
Email Packrat Development Install

Here's what you get:
- Custom logo PSD for you to modify your login/signup page.
- Modified DirectAdmin password change to modify the database for user signup so they coincide.
- Modified the mvision skin to work with signup and directadmin changes
- Added Ajax Successful save to the password change function (the original directadmin password change did this with a popup window instead of the green ajax top)
- Added Captcha to the signup process to make it more secure.

Known issues:
- mvision theme has problems with IE and the flagged image. (The next version (2.1)will be running umich)

To  be done in the next release (2.1):
- Remove theme selection drop down drop preferences (DONE)
- Change to Umich theme because mvision is to buggy....(Thanks to ksteinhoff for the theme) (DONE)
- Fix Umich IE mailbox list problem where it overlaps (DONE)
- Add import and export addressbook functions to the Umich theme (DONE)
- Change default Umich folder icons (DONE)
- Add Password Change functions to new Theme (DONE)
- Fix "Email Address" from wrapping on login page (DONE)
- Add trash full icon (Thanks to lacri for this addon) (DONE)
- Create new install package (Planning Stages)
- Clean up CSS (DONE)
- Remove specialized folders from properties (DONE)
- Fix Html compose bug in reply to Text format email (Thanks to Uschinator for the fix) (DONE)
- Add ActiveSync push mail information to login page. (Planning Stages)
- Remove help link on umich theme. (DONE)
- Change Favicon.ico (DONE)

Server side patches to IMAP, EXIM & Direct Admin
(1) Had to change the default spam folder to .Junk in Directadmin and for the already created domain (emailpackrat.com). *NOTE* this is only needed if you the domain already exists in DirectAdmin. if you are starting from scratch, change section (2) and you won't need to do this. Here's what I did:

In /etc/virtual/%yourdomainname%/filter I removed everything inside of it and replaced it with:
Code: [Select]
# Exim Filter

# created by DirectAdmin, version 1.33.3
# Do not modify this file as any changes will be
# overwritten when the user makes a change.
# (data is only written to this file, not read)

if error_message then finish endif

if
    $h_X-Spam-Status: contains "Yes,"
then
    if
        $local_part is "admin"
    then

        save /home/admin/Maildir/.Junk/new/ 660
    else
        save /home/admin/imap/$domain/$local_part/Maildir/.Junk/new/ 660

    endif
    finish
endif


#end filter

(2) I also had to replace ".INBOX.spam" with ".Junk" in both filter_spamfolder & filter_userspamfolder. These files are located in "/usr/local/directadmin/data/templates" This ensures that all domains added to directadmin automatically have the ".Junk" folder as the spam folder in /etc/virtual/%yourdomainname%/filter.



*PATCH 1.1*
There is a bug in the original version (1.0) that prevents the proper detection of a username's already taken. I have modified the zip below but feel free to just modify it yourself with the code below. Here's how to fix it.

Find the following line in emsu/signup.php
Code: [Select]
$result = mysql_query("SELECT id FROM useraccounts WHERE username='$requser'")
Replace with
Code: [Select]
$result = mysql_query("SELECT id FROM useraccounts WHERE username='$requser@$domain'")
Fix for 2.1 .cpanel error
Open signup.php and comment the following lines from line 83 down
Code: [Select]
// Get Cpanel connection details from DB
//$result = mysql_query("SELECT username, password, ip, port FROM cpanel")
//or die(mysql_error());
//$row = mysql_fetch_array( $result );

*UPDATE/ADDON in Version 1.1* (Thanks to Mahalo for the great suggestions)
  • Changed the password field so that it doesn't show what's typed
  • Changed the security question to a predefined set.
[/COLOR]
*UPDATE* Version 2.0
THIS PATCH IS FOR 0.2.1 SUPPORT. IF YOU ARE USING 0.2.1 PLEASE USE THE APPROPRIATE ZIP FILE.[/COLOR]

Here's the Download (1.1 = 0.2stable | 2.0 = 0.2.1):
« Last Edit: April 28, 2009, 01:41:24 PM by HawtDogFlvrWtr »

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #1 on: March 12, 2009, 06:41:07 PM »
If you like it please respond or rate the post. it makes me feel good :D

Offline n0rbertt

  • Newbie
  • *
  • Posts: 4
AutoSignup with Directadmin Password support and Theme Integration
« Reply #2 on: March 25, 2009, 06:06:23 PM »
Tyvm , I signed up with the forum just to download and use your script , will come in handy :D Nice website btw.

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #3 on: March 30, 2009, 02:20:25 PM »
No problem. I'm working on a new version for the new release. I've also found a small problem (not a vulnerability) with the source. I will be fixing that and releasing very soon so stop by often.

Offline Mahalo

  • Newbie
  • *
  • Posts: 7
AutoSignup with Directadmin Password support and Theme Integration
« Reply #4 on: March 30, 2009, 08:15:35 PM »
Oh man... I went through all of it and then found out that I have to pay for  direct admin a minimum of $29 a month...

I use Webmin/Virtualmin as my control panel and don't plan on using Direct Admin so I guess I'm shot down.

Anyway, looks like a great product. Some things that I noticed that you may consider in future releases might be:
1) Populated security questions. When I was entering questions I got booted several times because I was using apostrophes, like in "What is my dog's name" and it didn't like those.

2) Hiding the password when signing up.

Other than that (and the Direct Admin thing) it is awesome. Best of luck to you.

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #5 on: March 31, 2009, 05:52:39 AM »
Mahalo,

When I get a free second I'll work on a webmin version for you (If there is an email API).  As for the suggestions, I will add those now :)

Thanks,
Chris

*UPDATE*
The changes have been made and a patch has been released, Please check the first thread.

Quote from: Mahalo;18124
Oh man... I went through all of it and then found out that I have to pay for  direct admin a minimum of $29 a month...

I use Webmin/Virtualmin as my control panel and don't plan on using Direct Admin so I guess I'm shot down.

Anyway, looks like a great product. Some things that I noticed that you may consider in future releases might be:
1) Populated security questions. When I was entering questions I got booted several times because I was using apostrophes, like in "What is my dog's name" and it didn't like those.

2) Hiding the password when signing up.

Other than that (and the Direct Admin thing) it is awesome. Best of luck to you.
« Last Edit: March 31, 2009, 07:04:55 AM by HawtDogFlvrWtr »

Offline Mahalo

  • Newbie
  • *
  • Posts: 7
AutoSignup with Directadmin Password support and Theme Integration
« Reply #6 on: March 31, 2009, 09:05:48 AM »
Awesome! I'm subscribed to this thread so I'll check back often! Thanks again for your work. This is a really valuable addition to the RoundCube world.

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #7 on: March 31, 2009, 09:23:20 AM »
I just finished the patch for 0.2.1. If you are using 0.2.1 please download version 2.0. For those of you using 0.2stable, please use 1.1

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
Development Site
« Reply #8 on: April 01, 2009, 10:00:16 AM »
I have created a Development site to test new updates. If anyone wants to help find bugs for me it would be greatly appreciated.

Email Packrat Development Install

*CHANGE REPORT*[/COLOR]
- Moved to Umich Theme
- Change the login screen to look cleaner
- Removed the ability to change themes within preferences

*THINGS TO DO*
[/COLOR]
- Add the password tab to the settings window (DONE)
- Adjust internal logo's (DONE)
- Create new install package
- Clean up CSS (DONE)
- Remove specialized folders from properties
« Last Edit: April 05, 2009, 12:02:23 AM by HawtDogFlvrWtr »

Offline fast1

  • Newbie
  • *
  • Posts: 2
AutoSignup with Directadmin Password support and Theme Integration
« Reply #9 on: April 07, 2009, 05:03:26 AM »
this thread looks good, i should be be subscribing to it

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #10 on: April 07, 2009, 04:41:48 PM »
Quote from: fast1;18304
this thread looks good, i should be be subscribing to it


Sweet, I'm glad you are interested. if you have any suggestions please let me know. I'm always looking for improvements.

Thanks,
Chris

Offline Pumxee

  • Newbie
  • *
  • Posts: 3
AutoSignup with Directadmin Password support and Theme Integration
« Reply #11 on: April 09, 2009, 06:09:40 AM »
Can this be used with cpanel?
Im a noob!

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
AutoSignup with Directadmin Password support and Theme Integration
« Reply #12 on: April 09, 2009, 06:17:27 AM »
Quote from: Pumxee;18360
Can this be used with cpanel?
Im a noob!


There would be some minor modifications but yet. the direct admin patch was based on a cpanel patch. you just need to know what the API URL is and the requirements. once you've got that, you just modify the HTML within my script to follow that API order.

Offline IrishLad

  • Newbie
  • *
  • Posts: 1
LXAdmin
« Reply #13 on: April 10, 2009, 08:11:43 PM »
Hi,
This looks great and exactly what I what from RoundCube.

I am a complete beginner but would like to know if this will work with RoundCuke on LXAdmin which has it integrated, and if so how do I install it so that I can change the logo to my own domain and use your theme?

Thanks!

Offline HawtDogFlvrWtr

  • Jr. Member
  • **
  • Posts: 38
whoop there it is.
« Reply #14 on: April 10, 2009, 08:25:48 PM »
Quote from: IrishLad;18374
Hi,
This looks great and exactly what I what from RoundCube.

I am a complete beginner but would like to know if this will work with RoundCuke on LXAdmin which has it integrated, and if so how do I install it so that I can change the logo to my own domain and use your theme?

Thanks!


If LXAdmin has api functions to create email addresses, then yes it can. Here's how it works with directadmin.

All this does is add variables for the following Directadmin API "CMD_API_POP"

Code: [Select]
http://domainname.com/CMD_API_POP&action=create&domain=domain.com&user=emailuser&passwd=password&quota=10

Here is the reference from directadmin:
DirectAdmin Web Control API

If you can find the same create email API for LXAdmin, I will modify it for you to work. As for the images, they are included in the download in PSD format.

thanks,
Chris
P.S.
If your in need of another host, let me know :)
« Last Edit: April 10, 2009, 08:36:12 PM by HawtDogFlvrWtr »