Fix abstract passwords in host/domain manage planel logins
This commit is contained in:
@@ -36,8 +36,10 @@ abstract class Service_Host {
|
||||
|
||||
/**
|
||||
* Our HTML button that will enable us to manage this domain.
|
||||
*
|
||||
* @param so Our Service Object
|
||||
*/
|
||||
abstract public function manage_button($u,$p,$d);
|
||||
abstract public function manage_button(Model_Service_Plugin_Host $spho,$t);
|
||||
|
||||
/**
|
||||
* Return an instance of this class
|
||||
|
@@ -16,17 +16,18 @@ class Service_Host_Plesk extends Service_Host {
|
||||
private $login_pass_field = 'passwd';
|
||||
|
||||
// Our required abstract classes
|
||||
public function manage_button($u,$p,$d) {
|
||||
public function manage_button(Model_Service_Plugin_Host $spho,$t) {
|
||||
$debug = FALSE;
|
||||
$output = '';
|
||||
|
||||
$output .= Form::open(
|
||||
sprintf('%s/%s',$this->so->manage_url,'login_up.php3'),
|
||||
array('target'=>'w24','method'=>'post','id'=>'manage')
|
||||
$debug ? 'debug/site' : sprintf('%s/%s',$this->so->manage_url,'login_up.php3'),
|
||||
array('target'=>'w24','method'=>'post','id'=>sprintf('id_%s_%s',$spho->service_id,$t))
|
||||
);
|
||||
$output .= Form::input($this->login_user_field,$u,array('type'=>'hidden','id'=>'u'));
|
||||
$output .= Form::input($this->login_pass_field,$p,array('type'=>'hidden','id'=>'p'));
|
||||
$output .= Form::input($this->login_user_field,$spho->username_value(),array('type'=>'hidden','id'=>sprintf('u_%s_%s',$spho->service_id,$t)));
|
||||
$output .= Form::input($this->login_pass_field,substr(md5($spho->password_value()),0,8),array('type'=>'hidden','id'=>sprintf('p_%s_%s',$spho->service_id,$t)));
|
||||
$output .= Form::close();
|
||||
$output .= Form::button('submit',_('Manage'),array('class'=>'form_button'));
|
||||
$output .= Form::button('submit',_('Manage'),array('class'=>'form_button','value'=>sprintf('%s:%s',$spho->service_id,$t)));
|
||||
|
||||
return $output;
|
||||
}
|
||||
|
Reference in New Issue
Block a user