[ Avaa Bypassed ]




Upload:

Command:

www-data@18.221.207.166: ~ $
#!/usr/bin/perl
# edit_title.cgi
# Display menu option details

require './grub-lib.pl';
&foreign_require("fdisk", "fdisk-lib.pl");
&ReadParse();
$conf = &get_menu_config();
if ($in{'new'}) {
	&ui_print_header(undef, $text{'title_add'}, "");
	}
else {
	&ui_print_header(undef, $text{'title_edit'}, "");
	$title = $conf->[$in{'idx'}];
	}

# Form header
print &ui_form_start("save_title.cgi");
print &ui_hidden("new", $in{'new'});
print &ui_hidden("idx", $in{'idx'});
print &ui_table_start($text{'title_header'}, "width=100%", 4);

# Kernel title
print &ui_table_row($text{'title_title'},
	&ui_textbox("title", $title->{'value'}, 50));

$r = $title->{'root'} || $title->{'rootnoverify'};
if (!$r) {
	$mode = 0;
	}
elsif ($dev = &bios_to_linux($r)) {
	$mode = 2;
	}
else {
	$mode = 1;
	}
$sel = &foreign_call("fdisk", "partition_select", "root", $dev, 2, \$found);
if (!$found && $mode == 2) {
	$mode = 1;
	}

# Root partition
print &ui_table_row($text{'title_root'},
	&ui_radio("root_mode", $mode,
		  [ [ 0, $text{'default'}."<br>" ],
		    [ 2, $text{'title_sel'}." ".$sel."<br>" ],
		    [ 1, $text{'title_other'}." ".
			 &ui_textbox("other",
			    $mode == 1 ? $title->{'root'} : '', 50) ] ]).
	"<br>\n".
	&ui_checkbox("noverify", 1, $text{'title_noverify'},
		     $title->{'rootnoverify'}), 3);

# Boot mode
$boot = $title->{'chainloader'} ? 1 :
	$title->{'kernel'} ? 2 : 0;
if ($boot == 2) {
	$title->{'kernel'} =~ /^(\S+)\s*(.*)$/;
	$kernel = $1; $args = $2;
	}

# Booting a kernel
@opts = ( );
push(@opts, [ 2, $text{'title_kernel'},
	      &ui_table_start(undef, undef, 2, [ undef, "nowrap" ]).
	      &ui_table_row($text{'title_kfile'},
		&ui_textbox("kernel", $kernel, 50)." ".
		&file_chooser_button("kernel", 0)).
	      &ui_table_row($text{'title_args'},
		&ui_textbox("args", $args, 50)).
	      &ui_table_row($text{'title_initrd'},
		&ui_opt_textbox("initrd", $title->{'initrd'}, 40,
				$text{'global_none'})).
	      &ui_table_row($text{'title_modules'},
		&ui_textarea("module",
			join("\n", split(/\0/, $title->{'module'})), 3, 50,
			"off")).
	      &ui_table_end() ]);

# Chain loader
$chain = $title->{'chainloader'};
push(@opts, [ 1, $text{'title_chain'},
	      &ui_opt_textbox("chain", $chain eq '+1' || !$chain ? '' : $chain,
			      50, $text{'title_chain_def'}."<br>",
			      $text{'title_chain_file'})."<br>".
	      &ui_checkbox("makeactive", 1, $text{'title_makeactive'},
			   defined($title->{'makeactive'})) ]);

# None (menu entry only)
push(@opts, [ 0, $text{'title_none1'}, $text{'title_none2'} ]);

print &ui_table_row($text{'title_boot'},
	&ui_radio_table("boot_mode", $boot, \@opts), 3);

# Lock options
print &ui_table_row($text{'title_lock'},
	&ui_yesno_radio("lock", defined($title->{'lock'})));

print &ui_table_end();
if ($in{'new'}) {
	print &ui_form_end([ [ undef, $text{'create'} ] ]);
	}
else {
	print &ui_form_end([ [ undef, $text{'save'} ],
			     [ 'delete', $text{'delete'} ] ]);
	}

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


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 449 B 0644
backup_config.pl File 601 B 0755
cgi_args.pl File 229 B 0755
config File 69 B 0644
config-coherent-linux File 99 B 0644
config-debian-linux File 59 B 0644
config-gentoo-linux File 65 B 0644
config-mandrake-linux File 65 B 0644
config-openmamba-linux File 103 B 0644
config-pardus-linux File 65 B 0644
config-redhat-linux-7.2-7.4 File 66 B 0644
config-redhat-linux-8.0-ALL File 99 B 0644
config-solaris File 74 B 0644
config-syno-linux File 69 B 0644
config-trustix-linux File 99 B 0644
config.info File 235 B 0644
config.info.bg File 417 B 0644
config.info.ca File 276 B 0644
config.info.cs File 255 B 0644
config.info.de File 284 B 0644
config.info.es File 278 B 0644
config.info.fr File 258 B 0644
config.info.it File 284 B 0644
config.info.ja File 290 B 0644
config.info.ms File 244 B 0644
config.info.nl File 250 B 0644
config.info.no File 247 B 0644
config.info.pl File 136 B 0644
config.info.ru File 279 B 0644
config.info.uk File 296 B 0644
config.info.zh_TW File 188 B 0644
down.cgi File 364 B 0755
edit_global.cgi File 1.87 KB 0755
edit_title.cgi File 2.92 KB 0755
grub-lib.pl File 5.12 KB 0755
index.cgi File 2.2 KB 0755
install.cgi File 1.65 KB 0755
install_check.pl File 368 B 0755
log_parser.pl File 453 B 0755
module.info File 246 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 171 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 218 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 255 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 282 B 0644
module.info.ca File 173 B 0644
module.info.ca.auto File 13 B 0644
module.info.cs File 32 B 0644
module.info.cs.auto File 161 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 168 B 0644
module.info.de File 176 B 0644
module.info.de.auto File 14 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 307 B 0644
module.info.es File 34 B 0644
module.info.es.auto File 169 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 156 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 259 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 189 B 0644
module.info.fr File 42 B 0644
module.info.fr.auto File 161 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 237 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 188 B 0644
module.info.hu File 0 B 0644
module.info.hu.auto File 217 B 0644
module.info.it File 25 B 0644
module.info.it.auto File 137 B 0644
module.info.ja File 33 B 0644
module.info.ja.auto File 195 B 0644
module.info.ko File 29 B 0644
module.info.ko.auto File 150 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 201 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 194 B 0644
module.info.ms File 155 B 0644
module.info.ms.auto File 13 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 168 B 0644
module.info.nl File 24 B 0644
module.info.nl.auto File 162 B 0644
module.info.no File 29 B 0644
module.info.no.auto File 145 B 0644
module.info.pl File 31 B 0644
module.info.pl.auto File 157 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 224 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 233 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 196 B 0644
module.info.ru File 40 B 0644
module.info.ru.auto File 219 B 0644
module.info.sk File 0 B 0644
module.info.sk.auto File 172 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 167 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 157 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 298 B 0644
module.info.tr File 0 B 0644
module.info.tr.auto File 212 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 265 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 240 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 224 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 150 B 0644
module.info.zh_TW File 29 B 0644
module.info.zh_TW.auto File 131 B 0644
save_global.cgi File 1.78 KB 0755
save_title.cgi File 2.17 KB 0755
up.cgi File 360 B 0755