$dbname = $uname.DELIMETER.$i_newdb;
if ($User->isOverQuota() && !isAdmin()) {
$err1[] = 'You are over your quota. You may not add more databases.';
- } elseif (count($User->getDBList())>MAXDBS && !isAdmin()) {
+ } elseif (count($User->getDBList())>=$User->getDBQuotaHard() && !isAdmin()) {
$err1[] = 'You have too many databases. You may not add more databases.';
} elseif (empty($i_newdb)) {
$err1[] = 'Your database name may not be empty.';
function isOverQuota() {
return $this->exists()?($this->info['bOverQuota']>0?true:false):'';
}
+ function getDBQuotaHard() {
+ return $this->exists()?$this->info['nDatabasesHard']:0;
+ }
function getBytes() {
if($this->exists()) {
$arr['nBytes'] = $this->info['nBytes'];