⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
webmin
/
virtualmin-sqlite
/
View File Name :
virtualmin-sqlite-lib.pl
# Functions for the SQLite database use strict; use warnings; our %text; our $module_name; BEGIN { push(@INC, ".."); }; eval "use WebminCore;"; &init_config(); sub databases_in_dir { my @rv; opendir(DIR, $_[0]); while(my $f = readdir(DIR)) { if ($f =~ /^(\S+)\.sqlite$/) { push(@rv, { 'name' => $1, 'type' => $module_name, 'file' => "$_[0]/$f", 'desc' => $text{'db_name'} }); } } closedir(DIR); return @rv; } # get_sqlite_command() # Returns the command for sqlite, favouring sqlite and then falling back to # sqlite2 and 3. Returns undef if none was found. sub get_sqlite_command { foreach my $c ("sqlite", "sqlite4", "sqlite3", "sqlite2", "sqlite1") { my $p = &has_command($c); return $p if ($p); } return undef; } 1;