diff options
| author | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
|---|---|---|
| committer | Lester Caine <lester@lsces.co.uk> | 2026-05-14 09:52:56 +0100 |
| commit | 68347720e62934628a466945696d9218c45cc42d (patch) | |
| tree | 9a789c756ef220078f9c48960b8e2390214463e5 /admin | |
| parent | f0e7da86b8701c3d71d02ed7aa5db968025592a5 (diff) | |
| download | quota-master.tar.gz quota-master.tar.bz2 quota-master.zip | |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'admin')
| -rwxr-xr-x | admin/admin_quota_inc.php | 4 | ||||
| -rwxr-xr-x | admin/pump_quota_inc.php | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/admin/admin_quota_inc.php b/admin/admin_quota_inc.php index 22a3d87..47abee5 100755 --- a/admin/admin_quota_inc.php +++ b/admin/admin_quota_inc.php @@ -22,10 +22,10 @@ if( !empty( $_REQUEST['savequota'] ) ) { if( $gQuota->store( $_REQUEST ) ) { header( 'Location: '.KERNEL_PKG_URL.'admin/index.php?page=quota' ); die; - } else { + } $saveError = TRUE; $gBitSmarty->assign( 'errors', $gQuota->mErrors ); - } + } elseif( !empty( $_REQUEST['assignquota'] ) ) { foreach( array_keys( $_REQUEST ) as $key ) { if( preg_match( '/^quota_group_([-0-9]*)/', $key, $match ) ) { diff --git a/admin/pump_quota_inc.php b/admin/pump_quota_inc.php index d76e1d3..07ff359 100755 --- a/admin/pump_quota_inc.php +++ b/admin/pump_quota_inc.php @@ -10,7 +10,6 @@ */ use Bitweaver\Quota\LibertyQuota; - $quota = new LibertyQuota(); $quota->mDb->Execute("INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('1', 2000000, 20000000, 'Free Trial', 'A little space to try out site features' )"); $quota->mDb->Execute("INSERT INTO `".BIT_DB_PREFIX."quotas` ( `quota_id`, `disk_usage`, `monthly_transfer`, `title`, `description` ) VALUES ('2', 10000000, 100000000, 'Site Supporters', 'Extra space for site supporters.' )"); |
