]> andersk Git - sql-web.git/blobdiff - lib/proc.lib.php
git-svn-id: svn://presbrey.mit.edu/sql/web@112 a142d4bd-2cfb-0310-9673-cb33a7e74f58
[sql-web.git] / lib / proc.lib.php
index f9ebc8d6bd9a659a1c673aedc9867f0cdb99274a..adf8252858526148ef4176df1ad06dbf914bdc19 100644 (file)
@@ -1,4 +1,7 @@
 <?php
+/*
+       (c) 2005 Joe Presbrey
+*/
 
 require_once('mitsql.lib.php');
 
@@ -11,9 +14,9 @@ class proc {
                $uname = $User->getUsername();
                $uname = str_replace('.','',$uname);
                $dbname = $uname.DELIMETER.$i_newdb;
-               if ($User->isOverQuota()) {
+               if ($User->isOverQuota() && !isAdmin()) {
                        $err1[] = 'You are over your quota. You may not add more databases.';
-               } elseif (count($User->getDBList())>MAXDBS) {
+               } elseif (count($User->getDBList())>MAXDBS && !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.';
This page took 0.025315 seconds and 4 git commands to generate.