[ Avaa Bypassed ]




Upload:

Command:

www-data@18.221.244.218: ~ $
#!/usr/bin/perl
# edit_file.cgi
# Display a file editor and its options

require './custom-lib.pl';
&ReadParse();

$access{'edit'} || &error($text{'file_ecannot'});
if ($in{'new'}) {
	&ui_print_header(undef, $text{'fcreate_title'}, "", "fcreate");
	if ($in{'clone'}) {
		$edit = &get_command($in{'id'}, $in{'idx'});
		}
	}
else {
	&ui_print_header(undef, $text{'fedit_title'}, "", "fedit");
	$edit = &get_command($in{'id'}, $in{'idx'});
	}

print &ui_form_start("save_file.cgi", "post");
print &ui_hidden("new", $in{'new'});
print &ui_hidden("id", $edit->{'id'});
print &ui_table_start($text{'file_details'}, "width=100%", 2);

if (!$in{'new'}) {
	print &ui_table_row(&hlink($text{'file_id'}, "fileid"),
		"<tt>$edit->{'id'}</tt>");
	}

# Description, text and HTML
print &ui_table_row(&hlink($text{'edit_desc'}, "desc"),
	&ui_textbox("desc", $edit->{'desc'}, 60));
print &ui_table_row(&hlink($text{'edit_desc2'}, "desc2"),
	&ui_textarea("html", $edit->{'html'}, 2, 60));

# File to edit, and environment checkbox
print &ui_table_row(&hlink($text{'file_edit'}, "file"),
	&ui_textbox("edit", $edit->{'edit'}, 60)." ".
	&file_chooser_button("edit", 0)."<br>".
	&ui_checkbox("envs", 1, $text{'file_envs'}, $edit->{'envs'}));

# File owner and group
print &ui_table_row(&hlink($text{'file_owner'}, "owner"),
	&ui_radio("owner_def", $edit->{'user'} ? 0 : 1,
		  [ [ 1, $text{'file_leave'} ],
		    [ 0, $text{'file_user'}." ".
			 &ui_textbox("user", $edit->{'user'}, 13)." ".
			 $text{'file_group'}." ".
			 &ui_textbox("group", $edit->{'group'}, 13) ] ]));

# File permissions
print &ui_table_row(&hlink($text{'file_perms'}, "perms"),
	&ui_opt_textbox("perms", $edit->{'perms'}, 3, $text{'file_leave'},
			$text{'file_set'}));

# Commands to run before and after
print &ui_table_row(&hlink($text{'file_beforeedit'}, "beforeedit"),
	&ui_textbox("beforeedit", $edit->{'beforeedit'}, 60));
print &ui_table_row(&hlink($text{'file_before'}, "before"),
	&ui_textbox("before", $edit->{'before'}, 60));
print &ui_table_row(&hlink($text{'file_after'}, "after"),
	&ui_textbox("after", $edit->{'after'}, 60));

# Command ordering on main page
print &ui_table_row(&hlink($text{'edit_order'},"order"),
	&ui_opt_textbox("order", $edit->{'order'} || "", 6, $text{'default'}));

# Visible in Usermin?
print &ui_table_row(&hlink($text{'edit_usermin'},"usermin"),
	&ui_yesno_radio("usermin", $edit->{'usermin'}));

print &ui_table_end();

# Show parameters
&show_params_inputs($edit, 1, 1);

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

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


Filemanager

Name Type Size Permission Actions
help Folder 0755
images Folder 0755
lang Folder 0755
CHANGELOG File 2.9 KB 0644
acl_security.pl File 1.03 KB 0755
backup_config.pl File 683 B 0755
cgi_args.pl File 1.14 KB 0755
config File 42 B 0644
config-ALL-linux File 42 B 0644
config.info File 490 B 0644
config.info.ca File 500 B 0644
config.info.cs File 326 B 0644
config.info.de File 575 B 0644
config.info.es File 338 B 0644
config.info.fr File 669 B 0644
config.info.hr File 0 B 0644
config.info.it File 448 B 0644
config.info.ko File 266 B 0644
config.info.ms File 534 B 0644
config.info.nl File 580 B 0644
config.info.no File 548 B 0644
config.info.pl File 612 B 0644
config.info.ru File 158 B 0644
config.info.sk File 0 B 0644
config.info.tr File 269 B 0644
config.info.uk File 165 B 0644
custom-lib.pl File 16.71 KB 0755
defaultacl File 25 B 0644
edit_cmd.cgi File 3.69 KB 0755
edit_file.cgi File 2.67 KB 0755
edit_sql.cgi File 2.64 KB 0755
feedback_files.pl File 208 B 0755
form.cgi File 1.29 KB 0755
index.cgi File 4.14 KB 0755
log_parser.pl File 553 B 0755
module.info File 165 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 145 B 0644
module.info.ar File 0 B 0644
module.info.ar.auto File 200 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 277 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 297 B 0644
module.info.ca File 130 B 0644
module.info.ca.auto File 22 B 0644
module.info.cs File 33 B 0644
module.info.cs.auto File 145 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 158 B 0644
module.info.de File 149 B 0644
module.info.de.auto File 26 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 299 B 0644
module.info.es File 32 B 0644
module.info.es.auto File 116 B 0644
module.info.eu File 0 B 0644
module.info.eu.auto File 147 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 223 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 170 B 0644
module.info.fr File 34 B 0644
module.info.fr.auto File 142 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 196 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 169 B 0644
module.info.hu File 26 B 0644
module.info.hu.auto File 151 B 0644
module.info.it File 31 B 0644
module.info.it.auto File 112 B 0644
module.info.ja File 34 B 0644
module.info.ja.auto File 163 B 0644
module.info.ko File 32 B 0644
module.info.ko.auto File 154 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 164 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 153 B 0644
module.info.ms File 136 B 0644
module.info.ms.auto File 15 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 148 B 0644
module.info.nl File 25 B 0644
module.info.nl.auto File 123 B 0644
module.info.no File 33 B 0644
module.info.no.auto File 120 B 0644
module.info.pl File 139 B 0644
module.info.pl.auto File 16 B 0644
module.info.pt File 32 B 0644
module.info.pt.auto File 129 B 0644
module.info.pt_BR File 0 B 0644
module.info.pt_BR.auto File 170 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 168 B 0644
module.info.ru File 48 B 0644
module.info.ru.auto File 253 B 0644
module.info.sk File 33 B 0644
module.info.sk.auto File 136 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 146 B 0644
module.info.sv File 23 B 0644
module.info.sv.auto File 119 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 295 B 0644
module.info.tr File 23 B 0644
module.info.tr.auto File 140 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 285 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 271 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 195 B 0644
module.info.zh File 30 B 0644
module.info.zh.auto File 91 B 0644
module.info.zh_TW File 27 B 0644
module.info.zh_TW.auto File 97 B 0644
prefs.info File 26 B 0644
run.cgi File 3.89 KB 0755
save.cgi File 1.5 KB 0755
save_cmd.cgi File 2.44 KB 0755
save_file.cgi File 1.79 KB 0755
save_sql.cgi File 1.53 KB 0755
sql.cgi File 1.5 KB 0755
sqlform.cgi File 962 B 0755
view.cgi File 1.43 KB 0755