Current time: 05-06-2024, 06:47 PM Hello There, Guest! (LoginRegister)


Post Reply 
New Version of E-mail, FTP, and SQL Password Changer
Author Message
Dolomike Offline
Newbie
*

Posts: 7
Joined: Sep 2009
Reputation: 1
Post: #1
New Version of E-mail, FTP, and SQL Password Changer
Hi all,

I have completed a new version of the password changer. Please give it a try and let me know if you find any errors or would like any additions. I've tried to follow the coding standards so hopefully this code is good enough to make it into the trunk at some point.

The password changer has the following features:
  • Allows users to change E-mail, FTP, and SQL passwords
  • Administrator can turn on/off password changer
  • Administrator can select which passwords can be changed
  • Uses captcha (same one already used in ispCP)
  • Performs all the same password checks that is done within ispCP
  • Timer retry for incorrect attempts (not fully working)
  • Uses default ispCP theme for same look and feel as the rest of the ispCP
  • Logs each failure and successful password change

To install, perform the following steps:
  • Change to the ispCP GUI directory ( cd /var/www/ispcp/gui)
  • Extract the files (tar -zxvf changepassword-0.1.tar.gz)
  • Add the following configuration settings into include/ispcp-lib.php

    PHP Code:
    // Enable change password functionality
    Config::set('CHANGEPASSWORD'true);

    // Enable individual password change
    Config::set('CHANGEPASSWORDEMAIL'true);
    Config::set('CHANGEPASSWORDFTP'true);
    Config::set('CHANGEPASSWORDSQL'true);

    // captcha imagewidth
    Config::set('CHANGEPASSWORD_CAPTCHA_WIDTH'280);
    // captcha imagehigh
    Config::set('CHANGEPASSWORD_CAPTCHA_HEIGHT'70);
    // captcha background color
    Config::set('CHANGEPASSWORD_CAPTCHA_BGCOLOR', array(229,243,252));
    // captcha text color
    Config::set('CHANGEPASSWORD_CAPTCHA_TEXTCOLOR', array(0,53,92)); 
  • For any accounts you don't want users to be able to change, simply set the corresponding configuration setting in include/ispcp-lib.php to false
  • Try it out! http://ispcp.domain.tld/changepassword.php

A few things still need to be done:
  • Fix the retry timer - not displayed at the right page and the "back" link is hardcoded to index.php in include/login-functions.php
  • Add web GUI code to allow the configuration settings to be changed within the ispCP web GUI (Under the Settings page)


Attached File(s)
.gz  changepassword-0.1.tar.gz (Size: 5.06 KB / Downloads: 69)
02-28-2010 05:57 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
New Version of E-mail, FTP, and SQL Password Changer - Dolomike - 02-28-2010 05:57 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)