Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
adb5c6734a | ||
|
|
7dff46b63e | ||
|
|
12883bafd6 | ||
|
|
c2b88200f0 | ||
|
|
634199780b |
@@ -150,10 +150,10 @@ return array(
|
|||||||
'settinggroup' => 'system',
|
'settinggroup' => 'system',
|
||||||
'varname' => 'letsencryptca',
|
'varname' => 'letsencryptca',
|
||||||
'type' => 'option',
|
'type' => 'option',
|
||||||
'default' => 'testing',
|
'default' => 'production',
|
||||||
'option_mode' => 'one',
|
'option_mode' => 'one',
|
||||||
'option_options' => array(
|
'option_options' => array(
|
||||||
'testing' => 'https://acme-staging' . (\Froxlor\Settings::Get('system.leapiversion') == '2' ? '-v02' : '') . '.api.letsencrypt.org (Test)',
|
'testing' => 'https://acme-staging-v0' . \Froxlor\Settings::Get('system.leapiversion') . '.api.letsencrypt.org (Test)',
|
||||||
'production' => 'https://acme-v0' . \Froxlor\Settings::Get('system.leapiversion') . '.api.letsencrypt.org (Live)'
|
'production' => 'https://acme-v0' . \Froxlor\Settings::Get('system.leapiversion') . '.api.letsencrypt.org (Live)'
|
||||||
),
|
),
|
||||||
'save_method' => 'storeSettingField'
|
'save_method' => 'storeSettingField'
|
||||||
|
|||||||
@@ -696,7 +696,7 @@ opcache.interned_strings_buffer'),
|
|||||||
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
('panel', 'password_special_char', '!?<>§$%+#=@'),
|
||||||
('panel', 'customer_hide_options', ''),
|
('panel', 'customer_hide_options', ''),
|
||||||
('panel', 'is_configured', '0'),
|
('panel', 'is_configured', '0'),
|
||||||
('panel', 'version', '0.10.8'),
|
('panel', 'version', '0.10.9'),
|
||||||
('panel', 'db_version', '201911220');
|
('panel', 'db_version', '201911220');
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -500,3 +500,8 @@ if (\Froxlor\Froxlor::isFroxlorVersion('0.10.7')) {
|
|||||||
showUpdateStep("Updating from 0.10.7 to 0.10.8", false);
|
showUpdateStep("Updating from 0.10.7 to 0.10.8", false);
|
||||||
\Froxlor\Froxlor::updateToVersion('0.10.8');
|
\Froxlor\Froxlor::updateToVersion('0.10.8');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (\Froxlor\Froxlor::isFroxlorVersion('0.10.8')) {
|
||||||
|
showUpdateStep("Updating from 0.10.8 to 0.10.9", false);
|
||||||
|
\Froxlor\Froxlor::updateToVersion('0.10.9');
|
||||||
|
}
|
||||||
|
|||||||
@@ -346,6 +346,15 @@ abstract class ApiCommand extends ApiParameter
|
|||||||
} else {
|
} else {
|
||||||
$order .= " ORDER BY ";
|
$order .= " ORDER BY ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$nat_fields = [
|
||||||
|
'`c`.`loginname`',
|
||||||
|
'`a`.`loginname`',
|
||||||
|
'`adminname`',
|
||||||
|
'`databasename`',
|
||||||
|
'`username`'
|
||||||
|
];
|
||||||
|
|
||||||
foreach ($orderby as $field => $by) {
|
foreach ($orderby as $field => $by) {
|
||||||
$sortfield = explode('.', $field);
|
$sortfield = explode('.', $field);
|
||||||
foreach ($sortfield as $id => $sfield) {
|
foreach ($sortfield as $id => $sfield) {
|
||||||
@@ -365,7 +374,7 @@ abstract class ApiCommand extends ApiParameter
|
|||||||
])) {
|
])) {
|
||||||
$by = 'ASC';
|
$by = 'ASC';
|
||||||
}
|
}
|
||||||
if (\Froxlor\Settings::Get('panel.natsorting') == 1) {
|
if (\Froxlor\Settings::Get('panel.natsorting') == 1 && in_array($field, $nat_fields)) {
|
||||||
// Acts similar to php's natsort(), found in one comment at http://my.opera.com/cpr/blog/show.dml/160556
|
// Acts similar to php's natsort(), found in one comment at http://my.opera.com/cpr/blog/show.dml/160556
|
||||||
$order .= "CONCAT( IF( ASCII( LEFT( " . $field . ", 5 ) ) > 57,
|
$order .= "CONCAT( IF( ASCII( LEFT( " . $field . ", 5 ) ) > 57,
|
||||||
LEFT( " . $field . ", 1 ), 0 ),
|
LEFT( " . $field . ", 1 ), 0 ),
|
||||||
|
|||||||
@@ -209,7 +209,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
|
|||||||
} else {
|
} else {
|
||||||
$certs_stmt_query .= "1 ";
|
$certs_stmt_query .= "1 ";
|
||||||
}
|
}
|
||||||
$certs_stmt = Database::prepare($certs_stmt_query . $this->getSearchWhere($query_fields) . $this->getOrderBy() . $this->getLimit());
|
$certs_stmt = Database::prepare($certs_stmt_query . $this->getSearchWhere($query_fields, true) . $this->getOrderBy() . $this->getLimit());
|
||||||
$qry_params = array_merge($qry_params, $query_fields);
|
$qry_params = array_merge($qry_params, $query_fields);
|
||||||
Database::pexecute($certs_stmt, $qry_params, true, true);
|
Database::pexecute($certs_stmt, $qry_params, true, true);
|
||||||
$result = array();
|
$result = array();
|
||||||
|
|||||||
@@ -137,7 +137,11 @@ class TrafficCron extends \Froxlor\Cron\FroxlorCron
|
|||||||
$mysqlusage_all[$row_database['customerid']] = 0;
|
$mysqlusage_all[$row_database['customerid']] = 0;
|
||||||
}
|
}
|
||||||
// sum up result
|
// sum up result
|
||||||
|
if ($mysql_usage_row) {
|
||||||
$mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['customerusage']);
|
$mysqlusage_all[$row_database['customerid']] += floatval($mysql_usage_row['customerusage']);
|
||||||
|
} else {
|
||||||
|
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_WARNING, "Cannot get usage for database " . $row_database['databasename'] . ".");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_WARNING, "Seems like the database " . $row_database['databasename'] . " had been removed manually.");
|
\Froxlor\FroxlorLogger::getInstanceOf()->logAction(\Froxlor\FroxlorLogger::CRON_ACTION, LOG_WARNING, "Seems like the database " . $row_database['databasename'] . " had been removed manually.");
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ final class Froxlor
|
|||||||
{
|
{
|
||||||
|
|
||||||
// Main version variable
|
// Main version variable
|
||||||
const VERSION = '0.10.8';
|
const VERSION = '0.10.9';
|
||||||
|
|
||||||
// Database version (YYYYMMDDC where C is a daily counter)
|
// Database version (YYYYMMDDC where C is a daily counter)
|
||||||
const DBVERSION = '201911220';
|
const DBVERSION = '201911220';
|
||||||
|
|||||||
Reference in New Issue
Block a user