initial commit of file from CVS for smeserver-phppgadmin on Sat Sep 7 20:53:08 AEST 2024

This commit is contained in:
Trevor Batley
2024-09-07 20:53:08 +10:00
parent 9692a5d986
commit 968f65d84e
20 changed files with 1131 additions and 2 deletions

View File

@@ -0,0 +1 @@
reserved

View File

@@ -0,0 +1 @@
private

View File

@@ -0,0 +1 @@
enabled

View File

@@ -0,0 +1 @@
configuration

View File

@@ -0,0 +1,11 @@
{
my $rec = $DB->get('phppgadmin')
|| $DB->new_record('phppgadmin', {type => 'configuration'});
my $pw = $rec->prop('Password');
if (not $pw or length($pw) < 20){
my $pw = `/usr/bin/openssl rand -base64 28 | tr -c -d '[:alnum:]'`;
$rec->set_prop('Password', $pw);
}
}