initial commit of file from CVS for smeserver-php on Sat Mar 23 15:31:58 AEDT 2024
This commit is contained in:
36
root/etc/e-smith/db/accounts/migrate/20ibay-php
Normal file
36
root/etc/e-smith/db/accounts/migrate/20ibay-php
Normal file
@@ -0,0 +1,36 @@
|
||||
{
|
||||
my %old2new = (
|
||||
UpMaxFileSize => "UploadMaxFilesize",
|
||||
PHPUploadMaxFilesize => "UploadMaxFilesize",
|
||||
PHPPostMaxSize => "PostMaxSize",
|
||||
PHPMaxExecutionTime => "MaxExecutionTime",
|
||||
PHPMemoryLimit => "MemoryLimit",
|
||||
PHPAllowUrlfOpen => "AllowUrlFopen",
|
||||
PHPFileUpload => "FileUpload",
|
||||
PHPDisabledFunctions => "DisabledFunctions",
|
||||
PHPAutoPrependFile => "AutoPrependFile",
|
||||
PHPCustomPool => "CustomPool",
|
||||
PHPMaxInputTime => "MaxInputTime",
|
||||
MaxExecTime => "MaxExecutionTime",
|
||||
);
|
||||
|
||||
foreach my $ibay ($DB->get_all_by_prop(type => 'ibay'))
|
||||
{
|
||||
for my $key (keys %old2new)
|
||||
{
|
||||
next unless (defined $ibay->prop($key));
|
||||
my $value = $DB->get_prop_and_delete($ibay->key, $key);
|
||||
next if (defined $ibay->prop($old2new{$key}) );
|
||||
$DB->set_prop($ibay->key, $old2new{$key}, $value);
|
||||
}
|
||||
for my $key (qw(MemoryLimit UploadMaxFilesize PostMaxSize MaxExecutionTime))
|
||||
{
|
||||
next unless (defined $ibay->prop($key));
|
||||
my $value = $DB->get_prop_and_delete($ibay->key, $key) if ($ibay->prop($key) eq "disabled");
|
||||
next unless $key eq "MaxExecutionTime";
|
||||
$DB->set_prop($ibay->key,MaxExecutionTime,0) if ($ibay->prop($key) eq "unlimited");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/php-fpm/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php-fpm/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php/status
Normal file
1
root/etc/e-smith/db/configuration/defaults/php/status
Normal file
@@ -0,0 +1 @@
|
||||
enabled
|
1
root/etc/e-smith/db/configuration/defaults/php/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php/type
Normal file
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php55/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php55/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php56/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php56/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php70/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php70/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php71/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php71/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php72/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php72/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php73/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php73/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php74/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php74/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php80/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php80/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php81/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php81/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php82/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php82/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
@@ -0,0 +1 @@
|
||||
enabled
|
@@ -0,0 +1 @@
|
||||
service
|
@@ -0,0 +1 @@
|
||||
Off
|
1
root/etc/e-smith/db/configuration/defaults/php83/type
Normal file
1
root/etc/e-smith/db/configuration/defaults/php83/type
Normal file
@@ -0,0 +1 @@
|
||||
configuration
|
6
root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes
Normal file
6
root/etc/e-smith/db/configuration/migrate/PhpMagicQuotes
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
|
||||
$DB->get_prop_and_delete ('php', 'MagicQuotes');
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user