src/plugins/projects-hierarchy/www/img/trash.gif -text svneol=unset#image/gif
src/plugins/projects-hierarchy/www/index.php -text
src/plugins/quota_management/INSTALL -text
-src/plugins/quota_management/common/quota_management-init.php -text
src/plugins/quota_management/common/quota_managementPlugin.class.php -text
src/plugins/quota_management/cronjobs/quota_update.pl -text svneol=unset#text/x-perl
src/plugins/quota_management/db/quota_management-init.sql -text
+++ /dev/null
-<?php
-
-/**
- *
- * This file is part of FusionForge.
- *
- * FusionForge is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * FusionForge is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-global $gfplugins;
-require_once $gfplugins.'quota_management/common/quota_managementPlugin.class.php' ;
-
-$quota_managementPluginObject = new quota_managementPlugin ;
-
-register_plugin ($quota_managementPluginObject) ;
-
-// Local Variables:
-// mode: php
-// c-file-style: "bsd"
-// End:
-
-?>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-require_once('../../env.inc.php');
+require_once dirname(__FILE__)."/../../env.inc.php";
require_once $gfcommon.'include/pre.php';
// the header that displays for the project portion of the plugin
$quota_management = plugin_get_object($pluginname);
if (!$type) {
- exit_missing_params($_SERVER['HTTP_REFERER'],array(_('No TYPE specified')), 'home');
+ exit_missing_param($_SERVER['HTTP_REFERER'],array(_('No TYPE specified')),'home');
} elseif (!$id) {
- exit_missing_params($_SERVER['HTTP_REFERER'],array(_('No ID specified')), 'home');
+ exit_missing_param($_SERVER['HTTP_REFERER'],array(_('No ID specified')),'home');
} else {
if ($type == 'group') {
$group = group_get_object($id);
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-require_once('../../env.inc.php');
+require_once dirname(__FILE__)."/../../env.inc.php";
require_once $gfcommon.'include/pre.php';
require_once $gfwww.'admin/admin_utils.php';
<?php echo _('Ftp, Home'); ?>
<?php echo _('scm'); ?>* :
- <?php echo _('Cvs, Svn'); ?>
+ <?php echo _('CVS, SVN'); ?>
<?php echo _('others'); ?>* :
<?php echo _('Download - without quota control'); ?>
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-require_once('../../env.inc.php');
+require_once dirname(__FILE__)."/../../env.inc.php";
require_once $gfcommon.'include/pre.php';
require_once $gfwww.'admin/admin_utils.php';
+$cmd = getStringFromRequest('cmd');
+
$quota_management = plugin_get_object('quota_management');
$_quota_block_size = 1024;
<?php
// quota update
-if ($_POST["cmd"] == "maj")
+if ($cmd == "maj")
{
$qs = $_POST["qs"] * $_quota_block_size;
$qh = $_POST["qh"] * $_quota_block_size;
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-global $id;
-global $quota_management;
-
-require_once('../../env.inc.php');
+require_once dirname(__FILE__)."/../../env.inc.php";
require_once $gfcommon.'include/pre.php';
require_once $gfwww.'project/admin/project_admin_utils.php';
+$id = getIntFromRequest('group_id');
+$quota_management = plugin_get_object('quota_management');
+
session_require_perm('project_admin', $id);
$group = &group_get_object($id);
</tr>
<tr style="background:<?php echo $color2; ?>">
<td style="border-top:thin solid #808080">
- <?php echo _('Cvs, Svn'); ?>
+ <?php echo _('CVS, SVN'); ?>
</td>
<td style="border-top:thin solid #808080;font-weight:bold;color:red" align="right">
<?php echo $msg2; ?>