Fix abstract passwords in host/domain manage planel logins

This commit is contained in:
Deon George
2012-06-22 15:12:59 +10:00
parent 0eecfe8abd
commit df82268405
12 changed files with 93 additions and 42 deletions

View File

@@ -52,6 +52,14 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
->set('so',$this);
}
public function username_value() {
return $this->service_username;
}
public function password_value() {
return $this->service_password;
}
/**
* Return the IP Address for the service
*/
@@ -307,7 +315,7 @@ class Model_Service_Plugin_ADSL extends Model_Service_Plugin {
$traffic_type = $this->get_traffic_data_daily($period,TRUE);
// @todo If no data comes in, then this can be stuck reporting traffic for an old date.
$day = count($traffic_type) ? max(array_keys($traffic_type)) : 1;
$lastday = date('d',strtotime('last day of',$period));
$lastday = date('d',strtotime('last day of',$period));
foreach ($traffic as $k => $v) {
// If we are the last day of the period