[ Avaa Bypassed ]




Upload:

Command:

www-data@3.15.17.212: ~ $
#!/usr/bin/perl
# change.cgi
# Make all the changes, and re-direct to / in case the theme has changed

use strict;
use warnings;
no warnings 'redefine';
no warnings 'uninitialized';
require './change-user-lib.pl';
our (%text, %in, %gconfig, $base_remote_user, %access);
&ReadParse();

&ui_print_unbuffered_header(undef, $text{'change_title'}, "");

my @users = &acl::list_users();
my ($user) = grep { $_->{'name'} eq $base_remote_user } @users;
my $oldtheme = $user->{'theme'};
my $oldoverlay = $user->{'overlay'};
if (!defined($oldtheme)) {
	($oldtheme, $oldoverlay) = split(/\s+/, $gconfig{'theme'});
	}

# Validate the password
if ($access{'pass'} && &can_change_pass($user) && !$in{'pass_def'}) {
	$in{'pass'} =~ /:/ && &error($text{'change_ecolon'});
	$in{'pass'} eq $in{'pass2'} ||
		&error($text{'change_epass2'});
	my $perr = &acl::check_password_restrictions(
		$user->{'name'}, $in{'pass'});
	&error(&text('change_epass', $perr)) if ($perr);
	}

# Parse custom language
if ($access{'lang'}) {
	if ($in{'lang_def'}) {
		$user->{'lang'} = undef;
		$user->{'langauto'} = undef;
		}
	else {
		$user->{'lang'} = $in{'lang'};
		$user->{'langauto'} = $in{'langauto'} ? 1 : 0;
		}
	}

# Parse custom locale
if ($access{'locale'}) {
	# Parse new locale
	if ($in{'locale_def'} ||
	    $in{'locale'}) {
		if ($in{'locale_def'}) {
			$user->{'locale'} = undef;
			}
		else {
			$user->{'locale'} = $in{'locale'};
			}
		}
	# Parse old dateformat
	if ($in{'dateformat_def'} ||
	    $in{'dateformat'}) {
		if ($in{'dateformat_def'}) {
			$user->{'dateformat'} = undef;
			}
		else {
			$user->{'dateformat'} = $in{'dateformat'};
			}
		}
	}

# Parse custom theme and possibly overlay
my ($newoverlay, $newtheme);
if ($access{'theme'}) {
	if ($in{'theme_def'}) {
		$user->{'theme'} = undef;
		}
	else {
		$user->{'theme'} = $in{'theme'};
		}
	$newtheme = $user->{'theme'};
	if (!defined($newtheme)) {
		$newtheme = $gconfig{'theme'};
		}

	# Overlay
	if (!$in{'overlay'}) {
		$newoverlay = undef;
		$user->{'overlay'} = undef;
		}
	else {
		$newoverlay = $in{'overlay'};
		$user->{'theme'} || &error($text{'change_eoverlay'});
		my %oinfo = &get_theme_info($in{'overlay'});
		if ($oinfo{'overlays'} &&
		    &indexof($user->{'theme'},
			     split(/\s+/, $oinfo{'overlays'})) < 0) {
			&error($text{'change_eoverlay2'});
			}
		$user->{'overlay'} = $in{'overlay'};
		}
	}

# Parse password change
if ($access{'pass'} && &can_change_pass($user) && !$in{'pass_def'}) {
	$user->{'pass'} = &acl::encrypt_password($in{'pass'});
	$user->{'temppass'} = 0;
	}

if ($access{'theme'} &&
    ($newtheme ne $oldtheme || $newoverlay ne $oldoverlay)) {
        if (defined(&theme_pre_change_theme)) {
                &theme_pre_change_theme();
                }
	}

print "$text{'change_user'}<br>\n";
&acl::modify_user($user->{'name'}, $user);
print "$text{'change_done'}<p>\n";

print "$text{'change_restart'}<br>\n";
&reload_miniserv();
print "$text{'change_done'}<p>\n";

if ($access{'theme'} &&
    ($newtheme ne $oldtheme || $newoverlay ne $oldoverlay)) {
	if (defined(&theme_post_change_theme)) {
		&theme_post_change_theme();
		}
	print "$text{'change_redirect'}<br>\n";
	print &js_redirect("/", "top");
	print "$text{'change_done'}<p>\n";
	}

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


Filemanager

Name Type Size Permission Actions
images Folder 0755
lang Folder 0755
CHANGELOG File 466 B 0644
acl_security.pl File 803 B 0755
change-user-lib.pl File 620 B 0755
change.cgi File 3.2 KB 0755
defaultacl File 31 B 0644
index.cgi File 4.81 KB 0755
module.info File 206 B 0644
module.info.af File 0 B 0644
module.info.af.auto File 150 B 0644
module.info.ar File 167 B 0644
module.info.ar.auto File 19 B 0644
module.info.be File 0 B 0644
module.info.be.auto File 197 B 0644
module.info.bg File 0 B 0644
module.info.bg.auto File 250 B 0644
module.info.ca File 140 B 0644
module.info.ca.auto File 19 B 0644
module.info.cs File 32 B 0644
module.info.cs.auto File 120 B 0644
module.info.da File 0 B 0644
module.info.da.auto File 148 B 0644
module.info.de File 116 B 0644
module.info.de.auto File 26 B 0644
module.info.el File 0 B 0644
module.info.el.auto File 291 B 0644
module.info.es File 32 B 0644
module.info.es.auto File 124 B 0644
module.info.eu File 39 B 0644
module.info.eu.auto File 118 B 0644
module.info.fa File 0 B 0644
module.info.fa.auto File 227 B 0644
module.info.fi File 0 B 0644
module.info.fi.auto File 155 B 0644
module.info.fr File 47 B 0644
module.info.fr.auto File 150 B 0644
module.info.he File 0 B 0644
module.info.he.auto File 209 B 0644
module.info.hr File 0 B 0644
module.info.hr.auto File 148 B 0644
module.info.hu File 98 B 0644
module.info.hu.auto File 19 B 0644
module.info.it File 35 B 0644
module.info.it.auto File 121 B 0644
module.info.ja File 200 B 0644
module.info.ko File 33 B 0644
module.info.ko.auto File 131 B 0644
module.info.lt File 0 B 0644
module.info.lt.auto File 166 B 0644
module.info.lv File 0 B 0644
module.info.lv.auto File 150 B 0644
module.info.ms File 122 B 0644
module.info.ms.auto File 19 B 0644
module.info.mt File 0 B 0644
module.info.mt.auto File 177 B 0644
module.info.nl File 35 B 0644
module.info.nl.auto File 129 B 0644
module.info.no File 29 B 0644
module.info.no.auto File 109 B 0644
module.info.pl File 144 B 0644
module.info.pl.auto File 28 B 0644
module.info.pt File 0 B 0644
module.info.pt.auto File 151 B 0644
module.info.pt_BR File 32 B 0644
module.info.pt_BR.auto File 127 B 0644
module.info.ro File 0 B 0644
module.info.ro.auto File 164 B 0644
module.info.ru File 44 B 0644
module.info.ru.auto File 209 B 0644
module.info.sk File 32 B 0644
module.info.sk.auto File 124 B 0644
module.info.sl File 0 B 0644
module.info.sl.auto File 143 B 0644
module.info.sv File 0 B 0644
module.info.sv.auto File 167 B 0644
module.info.th File 0 B 0644
module.info.th.auto File 280 B 0644
module.info.tr File 31 B 0644
module.info.tr.auto File 141 B 0644
module.info.uk File 0 B 0644
module.info.uk.auto File 217 B 0644
module.info.ur File 0 B 0644
module.info.ur.auto File 263 B 0644
module.info.vi File 0 B 0644
module.info.vi.auto File 216 B 0644
module.info.zh File 0 B 0644
module.info.zh.auto File 139 B 0644
module.info.zh_TW File 39 B 0644
module.info.zh_TW.auto File 115 B 0644
safeacl File 31 B 0644