summaryrefslogtreecommitdiff
path: root/admin/pump_quota_inc.php
blob: 07ff359c381911b571b6078495927da20ac4fa27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
/**
 * @version $Header$
 * @package install
 * @subpackage pumps
 */

/**
 * required setup
 */
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.' )");
$quota->mDb->Execute("INSERT INTO `".BIT_DB_PREFIX."quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 1, 3 )");
$quota->mDb->Execute( "INSERT INTO `".BIT_DB_PREFIX."quotas_group_map` ( `quota_id`, `group_id` ) VALUES ( 2, 2 )");

$pumpedData['Quota'][] = 'Free Trial';
$pumpedData['Quota'][] = 'Site Supporters';