403Webshell
Server IP : 182.53.201.61  /  Your IP : 216.73.217.175
Web Server : Apache/2.2.15 (Fedora)
System : Linux km10.dyndns.org 2.6.31.5-127.fc12.i686.PAE #1 SMP Sat Nov 7 21:25:57 EST 2009 i686
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/samba/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/samba/list_groups.cgi
#!/usr/bin/perl
# list_group.cgi
# List all existing Samba groups

require './samba-lib.pl';

$access{'maint_groups'} || &error($text{'groups_ecannot'});
&ui_print_header(undef, $text{'groups_title'}, "");

&check_group_enabled($text{'groups_cannot'});

@groups = &list_groups();
@links = ( "<a href='edit_group.cgi?new=1'>$text{'groups_add'}</a>" );
if (@groups) {
	@groups = sort { lc($a->{'name'}) cmp lc($b->{'name'}) } @groups
		if ($config{'sort_mode'});
	print &ui_links_row(\@links);
	print &ui_columns_start([ $text{'groups_name'},
				  $text{'groups_unix'},
				  $text{'groups_type'},
				  $text{'groups_sid'} ]);
	foreach $g (@groups) {
		print &ui_columns_row([
			"<a href='edit_group.cgi?idx=$g->{'index'}'>".
			  &html_escape($g->{'name'})."</a>",
			$g->{'unix'} == -1 ? $text{'groups_nounix'} :
			  "<tt>".&html_escape($g->{'unix'})."</tt>",
			$text{'groups_type_'.$g->{'type'}} ||
			  &html_escape($g->{'type'}),
			"<tt>".&html_escape($g->{'sid'})."</tt>",
			]);
		}
	print &ui_columns_end();
	}
else {
	print "<b>$text{'groups_none'}</b><p>\n";
	}
print &ui_links_row(\@links);

&ui_print_footer("", $text{'index_sharelist'});


Youez - 2016 - github.com/yon3zu
LinuXploit