[ Avaa Bypassed ]




Upload:

Command:

www-data@3.148.202.164: ~ $
#!/usr/bin/perl
# index.cgi
# Display a list of services, built from svcs command

require './smf-lib.pl';
&ReadParse();
&ui_print_header(undef, $text{'property_group_editor_title'}, "");

# get instance fmri
if (defined($in{'fmri'})) {
	$fmri = $in{'fmri'};
	# remove quotes...
	$fmri =~ /\'([^\']*)\'/;
	$fmri = $1;
	if ($fmri =~ /(svc:\/[^:]*):(.*)/) {
		$svc = $1;
		$inst = $2;
	} else {
		&error("Invalid fmri: instance must be specified!");
		}
} else {
	&error("No fmri supplied to property group editor!");
	}

# deal with add/deletion of property groups first. this way
# pgroup list will show changes...
if ((defined($in{'add'})) &&
    (defined($in{'addname'})) &&
    (defined($in{'addtype'})) &&
    (defined($in{'addsinst'}))) {
	$addname = "$in{'addname'}";
	$addtype = "$in{'addtype'}";
	$addsinst = "$in{'addsinst'}";
	if (($addname =~ /.+/) && ($addtype =~ /.+/) && ($addsinst =~ /.+/)) {
		&svc_addpg("$svc", "$addsinst", "$addname", "$addtype");
		}
	}
if (defined($in{'remove'})) {
	# get remove pg list
	@remove_pgs = split(/\0/, $in{'applyto'});
	foreach $rpg (@remove_pgs) { 
		# split into service or instance level/name
		if ($rpg =~ /([^\/]*)\/(.*)/) {
			$pgsinst = $1;
			$pgname = $2;
			&svc_delpg("$svc", "$pgsinst", "$pgname");
			}
		}
	}

@pgroup_listing_svc = &svc_listpg($svc, "service");
@pgroup_listing_inst = &svc_listpg($svc, $inst);
@pgroup_listing = (@pgroup_listing_svc, @pgroup_listing_inst);

print "<h2>";
&text_and_whats_this("property_group_editor_detail");
print " : $fmri </h2>\n";

print "<form method=\"POST\" action=\"property_group_editor.cgi?fmri='$fmri'\">\n";

# add pg table first...
print "<p><h3>$text{'property_group_editor_addpg'}</h3>\n";
print "<table><tr>";
print "<td><b>$text{'property_group_editor_addsinst'}</b></td>\n";
print "<td><b>$text{'property_group_editor_addname'}</b></td>\n";
print "<td><b>$text{'property_group_editor_addtype'}</b></td></tr>\n";
print "<tr><td>\n";
@sinstarray = ("service", "$inst");
&print_selection("addsinst", "service", \@sinstarray);
print "</td><td>\n";
print "<input size=30 name=\"addname\" value=\"\">\n";
print "</td><td>\n";
print "<input size=30 name=\"addtype\" value=\"\">\n";
print "</td></tr>\n";
print "<tr><td>&nbsp;</td><td>&nbsp;</td><td>";
print "<input type=submit name=\"add\" value=\"$text{'property_group_editor_add'}\">\n";
print "</td></tr></table></b>\n";

print "<table border width=100%>\n";
print "<tr><td><table width=100%>\n";
print "<tr $cb><td><b>$text{'property_group_editor_apply'}</b>:&nbsp;";
print "<input type=submit name=\"remove\" onClick=\"return (confirm(\'$text{'property_group_editor_deleteconfirm'}\'))\" value=\"$text{'property_group_editor_delete'}\">&nbsp;\n";
print "</td></tr></table></td></tr>\n";
print "<tr><td><table width=100%>\n";
print "<tr $cb>\n";
print "<td><b>$text{'property_group_editor_select'}</b></td>\n";
print "<td><b>$text{'property_group_editor_sinst'}</b></td>\n";
print "<td><b>$text{'property_group_editor_pgroup_name'}</b></td>\n";
print "<td><b>$text{'property_group_editor_pgroup_type'}</b></td></tr>\n";

foreach $pg (@pgroup_listing) {
	print "<tr $cb>";
	$sinst = $pg->{'sinst'};
	$name = $pg->{'pgroup_name'};
	$type = $pg->{'pgroup_type'};
	print "<td>\n";
	print "<input type=checkbox name=\"applyto\" value=\"$sinst/$name\">";
	print "</td><td>\n";
	print "$sinst</td><td>\n";
	# don't allow edit of nonpersistent items!
	if ($type =~ /NONPERSISTENT/) {
		print "$name";
	} else {
		$entity = ($sinst eq "service") ? "$svc" : "$fmri";
		print
	"<a href=\"property_editor.cgi?fmri='$fmri'&sinst=$sinst&pgroup=$name\">$name</a>";
		}
	print "</td><td>$type</td>\n";
	print "</tr>\n";
}
print "</table></td></tr></table></form>\n";

&print_cmds_run();

&ui_print_footer("instance_viewer.cgi?fmri='$fmri'",
	$text{'property_group_editor_back'});


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
config-solaris File 20 B 0644
config.info File 73 B 0644
config.info.ca File 80 B 0644
config.info.de File 98 B 0644
config.info.nl File 88 B 0644
dep_viewer.cgi File 3.22 KB 0755
dependency_template.xml File 140 B 0644
dependent_template.xml File 138 B 0644
exec_template.xml File 143 B 0644
index.cgi File 4.91 KB 0755
instance_template.xml File 60 B 0644
instance_template_end.xml File 12 B 0644
instance_viewer.cgi File 1.13 KB 0755
log_viewer.cgi File 1.33 KB 0755
manpage_template.xml File 88 B 0644
module.info File 201 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 156 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 162 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 181 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 234 B 0644
module.info.ca File 146 B 0644
module.info.ca.auto File 12 B 0644
module.info.cs File 0 B 0644
module.info.cs.auto File 144 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 144 B 0644
module.info.de File 0 B 0644
module.info.de.auto File 164 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 266 B 0644
module.info.es File 0 B 0644
module.info.es.auto File 165 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 141 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 153 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 143 B 0644
module.info.fr File 0 B 0644
module.info.fr.auto File 169 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 159 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 122 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 180 B 0644
module.info.it File 0 B 0644
module.info.it.auto File 167 B 0644
module.info.ja File 0 B 0644
module.info.ja.auto File 154 B 0644
module.info.ko File 0 B 0644
module.info.ko.auto File 141 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 151 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 166 B 0644
module.info.ms File 0 B 0644
module.info.ms.auto File 163 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 183 B 0644
module.info.nl File 51 B 0644
module.info.nl.auto File 99 B 0644
module.info.no File 0 B 0644
module.info.no.auto File 148 B 0644
module.info.pl File 0 B 0644
module.info.pl.auto File 149 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 149 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 158 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 179 B 0644
module.info.ru File 0 B 0644
module.info.ru.auto File 193 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 147 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 119 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 149 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 290 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 153 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 189 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 225 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 180 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 116 B 0644
module.info.zh_TW File 0 B 0644
module.info.zh_TW.auto File 125 B 0644
path_chooser.cgi File 3.27 KB 0755
property_editor.cgi File 4.42 KB 0755
property_group_editor.cgi File 3.74 KB 0755
property_group_template.xml File 74 B 0644
property_group_template_end.xml File 18 B 0644
property_template.xml File 67 B 0644
restarter_template.xml File 41 B 0644
search_instance.cgi File 1.45 KB 0755
service_template.xml File 225 B 0644
service_template_end.xml File 29 B 0644
smf-lib.pl File 27.22 KB 0755
smfwizard_dependency.cgi File 2 KB 0755
smfwizard_dependent.cgi File 1.97 KB 0755
smfwizard_exec.cgi File 1.55 KB 0755
smfwizard_instance.cgi File 764 B 0755
smfwizard_manpage.cgi File 897 B 0755
smfwizard_process_submit.cgi File 359 B 0755
smfwizard_property.cgi File 1.46 KB 0755
smfwizard_property_group.cgi File 1020 B 0755
smfwizard_restarter.cgi File 601 B 0755
smfwizard_service.cgi File 852 B 0755
smfwizard_template.cgi File 790 B 0755
svc_chooser.cgi File 4.41 KB 0755
svc_chooser_test.cgi File 759 B 0755
template_template.xml File 187 B 0644
template_template_end.xml File 28 B 0644
wizard.pl File 20.12 KB 0755
wizardtest.cgi File 767 B 0755