|
@@ 1252-1256 (lines=5) @@
|
| 1249 |
|
|
| 1250 |
|
$ac->setPartition($account['partition']); |
| 1251 |
|
|
| 1252 |
|
if ($account['disklimit'] === "unlimited") { |
| 1253 |
|
$ac->setDiskLimit(-1); |
| 1254 |
|
} else { |
| 1255 |
|
$ac->setDiskLimit(intval(str_replace("M", "", $account['disklimit']))); |
| 1256 |
|
} |
| 1257 |
|
|
| 1258 |
|
$ac->setInodeUsed(intval($account['inodesused'])); |
| 1259 |
|
|
|
@@ 1264-1268 (lines=5) @@
|
| 1261 |
|
$ac->setBackup((bool)$account['has_backup']); |
| 1262 |
|
} |
| 1263 |
|
|
| 1264 |
|
if ($account['max_emailacct_quota'] === "unlimited") { |
| 1265 |
|
$ac->setMaxEmailAccountQuota(-1); |
| 1266 |
|
} else { |
| 1267 |
|
$ac->setMaxEmailAccountQuota(intval(str_replace("M", "", $account['max_emailacct_quota']))); |
| 1268 |
|
} |
| 1269 |
|
|
| 1270 |
|
$ac->setEmail($account['email']); |
| 1271 |
|
$ac->setSuspensionReason($account['suspendreason']); |
|
@@ 1289-1293 (lines=5) @@
|
| 1286 |
|
$ac->setMailboxFormat($account['mailbox_format']); |
| 1287 |
|
$ac->setIpAddress($account['ip']); |
| 1288 |
|
|
| 1289 |
|
if ($account['diskused'] === "unlimited") { |
| 1290 |
|
$ac->setDiskUsed(-1); |
| 1291 |
|
} else { |
| 1292 |
|
$ac->setDiskUsed(intval(str_replace("M", "", $account['diskused']))); |
| 1293 |
|
} |
| 1294 |
|
|
| 1295 |
|
$ac->setMaxSQL($account['maxsql'] === "unlimited" ? -1 : intval($account['maxsql'])); |
| 1296 |
|
|