diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:14 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2006-02-08 21:51:14 +0000 |
| commit | a89d395b51c1cb1f63a06dac5b7c64e219f2d338 (patch) | |
| tree | 2a765ef45a7aa8ca1e2a038d9189984db12bfe03 | |
| parent | 1b2975f15284e2b3e38cffa81a39f6bcee8ccdae (diff) | |
| download | quota-a89d395b51c1cb1f63a06dac5b7c64e219f2d338.tar.gz quota-a89d395b51c1cb1f63a06dac5b7c64e219f2d338.tar.bz2 quota-a89d395b51c1cb1f63a06dac5b7c64e219f2d338.zip | |
php: introduce new method: getPref( $package, $pref, $defaut ) (order is open for discussion
tpl: $gBitPref.package.pref
applied package name to all saves - should make database more organised and should allow more reliable uninstalls in the future
| -rw-r--r-- | admin/admin_quota_inc.php | 12 | ||||
| -rw-r--r-- | templates/admin_quota.tpl | 4 |
2 files changed, 9 insertions, 7 deletions
diff --git a/admin/admin_quota_inc.php b/admin/admin_quota_inc.php index 37a9ac3..bc8e441 100644 --- a/admin/admin_quota_inc.php +++ b/admin/admin_quota_inc.php @@ -1,12 +1,14 @@ <?php -// $Header: /cvsroot/bitweaver/_bit_quota/admin/admin_quota_inc.php,v 1.2 2005/08/01 18:41:18 squareing Exp $ +// $Header: /cvsroot/bitweaver/_bit_quota/admin/admin_quota_inc.php,v 1.3 2006/02/08 21:51:14 squareing Exp $ // Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al. // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. -if (isset($_REQUEST["quotaset"]) && isset($_REQUEST["homeSample"])) { - $gBitSystem->storePreference("home_quota", $_REQUEST["homeSample"]); - $gBitSmarty->assign('home_quota', $_REQUEST["homeSample"]); -} + +// is this used? +//if( isset( $_REQUEST["quotaset"] ) && isset( $_REQUEST["homeSample"] ) ) { +// $gBitSystem->storePreference( "home_quota", $_REQUEST["homeSample"], QUOTA_PKG_NAME ); +// $gBitSmarty->assign( 'home_quota', $_REQUEST["homeSample"] ); +//} require_once( QUOTA_PKG_PATH.'LibertyQuota.php' ); diff --git a/templates/admin_quota.tpl b/templates/admin_quota.tpl index e2a3a98..63493dd 100644 --- a/templates/admin_quota.tpl +++ b/templates/admin_quota.tpl @@ -36,8 +36,8 @@ {foreach key=quotaId item=quota from=$quotaList} <tr class="{cycle values=odd,even}"> <td><a href="{$smarty.server.PHP_SELF}?page=quota"a_id={$quotaId}">{$quota.title}</a></td> - <td align="right">{$quota.disk_usage/1000000} MB</td> - <td align="right">{$quota.monthly_transfer/1000000} MB</td> + <td align="right">{$quota.disk_usage/1000000} MB</td> + <td align="right">{$quota.monthly_transfer/1000000} MB</td> </tr> {/foreach} </table> |
