server()) { metaRefresh("../login.php"); exit; } // load quota list if ($_SESSION['config']->get_scriptPath()) { $tempacc = new account(); $tempacc->type = "group"; $acct_q = getquotas(array($tempacc)); } // print header echo $_SESSION['header']; echo "\n\n"; echo "
\n"; $acct = new Account(); // check if profile should be edited if ($_GET['edit']) { $acct = loadGroupProfile($_GET['edit']); } // display formular echo ("
\n"); if ($_SESSION['config']->is_samba3()) { // Samba part echo ("
" . _("Samba") . "\n"); echo ("\n"); // domain echo ("\n"); echo ("\n"); echo "\n"; echo ("\n"); echo ("\n"); echo ("
" . _("Domain") . ": " . _("Help") . "
\n"); echo ("
\n"); } // Quota settings if script is given if ($_SESSION['config']->get_scriptPath()) { echo ("
"); echo "
"._('Quota properties')."\n"; echo "\n"; // description line echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; echo "\n"; // help line echo "'."\n". "'."\n". "'."\n". "'."\n". "'."\n". ''."\n"; // quota settings for ($i = 0; $i < (sizeof($acct_q[0]->quota)); $i++) { // load values from profile for ($k = 0; $k < sizeof($acct->quota); $k++) { // check for equal mountpoints if ($acct->quota[$k][0] == $acct_q[0]->quota[$i][0]) { $acct_q[0]->quota[$i][2] = $acct->quota[$i][2]; $acct_q[0]->quota[$i][3] = $acct->quota[$i][3]; $acct_q[0]->quota[$i][6] = $acct->quota[$i][6]; $acct_q[0]->quota[$i][7] = $acct->quota[$i][7]; } } echo "\n"; echo '\n"; // mountpoint echo '\n"; // blocks soft limit echo '\n"; // blocks hard limit echo '\n"; // inodes soft limit echo '\n"; // inodes hard limit echo "\n"; } echo "
" . _('Mountpoint') . "  " . _('Soft block limit') . "  " . _('Hard block limit') . "  " . _('Soft inode limit') . "  " . _('Hard inode limit') . "  
"._('Help').'"._('Help').'"._('Help').'"._('Help').'"._('Help').'
' . $acct_q[0]->quota[$i][0] . "quota[$i][0] . "\">
\n"; // save number of mountpoints echo "quota)) . "\">\n"; echo "
\n"; } echo ("

\n"); // profile name and submit/abort buttons echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo (""); echo ("\n"); echo ("\n"); echo ("\n"); echo ("\n"); echo (""); echo ("\n"); echo ("
" . _("Profile name") . ":" . _("Help") . "
 
\n"); echo (" 
\n"); echo ("
\n");