![]() |
|
|
|||||||
| For more information about the ads and why they're here, please see the FAQ |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
#21
|
|||
|
|||
|
Quote:
|
|
#22
|
|||
|
|||
|
Yes, I will publish the plugin. I am trying to find the best way to make it "easy" to install.
__________________
Heritz |
|
#23
|
|||
|
|||
|
Do you guys know how to generate a unix patch file? I mean, those with lots of ++++++++++ and stuff? Would be easier for me to generate a patch file like that.
The cPanel patch is very similar to the "pretty change password" patch published in this forum, there is just a difference in the core files.
__________________
Heritz |
|
#24
|
|||
|
|||
|
Quote:
|
|
#25
|
|||
|
|||
|
Ok, perfect. Working on it.
__________________
Heritz |
|
#26
|
|||
|
|||
|
Quote:
waiting anxiously for this mode..after the remote email account creation mod this is the mod that has been missing in RC |
|
#27
|
|||
|
|||
|
Do you have SSH access to your cPanel server? can you please check if you have this file in your server?
/usr/local/cpanel/base/dowebmailpasswd.cgi This file comes with all the cPanel installations. And its needed to install the plugin. I just want to be sure if you have it as I do.
__________________
Heritz |
|
#28
|
|||
|
|||
|
Quote:
Changepass.php-- just a form. Code:
<?php //changepass.php?>
<style type="text/css">
td
{
color: #014D5F;
}
</style>
<table cellpadding="2" cellspacing="2" border="0" align="center">
<tr><td> Change Password</td></tr>
</table>
<form name="emsignup" method="POST" action="cppass.php" autocomplete="off">
<table cellpadding="5" cellspacing="2" border="0" align="center">
</td>
</tr>
<tr>
<td bgcolor="#DDDDDD">User Name: </td><td bgcolor="#DDDDDD"><input type="text" name="NewEmail"> </td>
</tr>
<tr>
<td bgcolor="#DDDDDD">New Password: </td><td bgcolor="#DDDDDD"><input type="text" name="Password"></td>
</tr>
<tr>
<td colspan="2"><input type="submit" value="Change" class="button"></td>
</tr>
</table>
</form>
Code:
cppass.php
<?php
//cppass.php
// cPanel info
$cpuser = 'username'; // cPanel username
$cppass = 'password'; // cPanel password
$cpdomain = 'domain.com'; // cPanel domain or IP
$cpskin = 'skin'; // cPanel skin. Mostly x or x2, na4 etc
$edomain = 'domain.com'; // email domain (usually same as cPanel domain above)
$euser = $_POST['NewEmail'];
$epass = $_POST['Password'];
if ( $euser == "" OR $epass == "" ) {
$ermsg = "All fields of the form must be completed.";
}
###############################################################
# END OF SETTINGS
###############################################################
// change password of entered email account
$f = fopen ("http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/poppasswordchanged.html?email=$euser&domain=$edomain&password=$epass", "r");
// note the 'poppasswordchanged.html' changes depending on your cp version
if (!$f) {
die('Cannot change password. Possible reasons: "fopen" function allowed on your server, PHP is running in SAFE mode');
}
// Check result
while (!feof ($f)) {
$line = fgets ($f, 1024);
if (ereg ("already exists!", $line, $out)) {
die('Such email account already exists.');
}
}
fclose($f);
echo "Password for $euser@$edomain has been changed to $epass.";
?>
Now if only I coud do that |
|
#29
|
|||
|
|||
|
Yes bro, actually my patch does what you said, but mine doesn't use the poppasswordchanged.html. Mine use a CGI script that all the cPanel installations have.
I made it using CURL and it works basically like you said. I took the program/steps/settings/passwd.inc and I changed it to make it work using the CGI script. You wont need SSH access or something to use this patch. Its completely friendly and there is no "avanced" knowledge requirements. I am creating a package for this. I will make a new thread as soon as I have everything set up.
__________________
Heritz |
|
#30
|
|||
|
|||
|
Quote:
|
![]() |
| 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 |