Compare commits

...

18 Commits

Author SHA1 Message Date
Michael Kaufmann
35e14fde14 set version to 0.10.0-rc2 for second release candidate
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-05-27 11:47:58 +02:00
Michael Kaufmann
68f55f9596 dont allow bootstrap.php file from tests/ to be called via browser
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-05-27 08:33:36 +02:00
Michael Kaufmann
3fec579f85 Merge pull request #683 from discordier/hotfix/pcre-maillog
Fixes #682 - mail log parsing regex character group
2019-05-13 20:03:49 +02:00
Christian Schiffler
e2d69c664a Fixes #682 - mail log parsing regex character group
The mail log parsing regex was incorrectly using a character group of `\A`
2019-05-13 19:53:55 +02:00
Michael Kaufmann
72016a5735 fix integrity-check language-file entries
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-05-07 14:03:37 +02:00
Michael Kaufmann
eba163fc4a Merge pull request #677 from pquerner/#646
allow auth basic in URL, fixes #646
2019-04-30 07:14:48 +02:00
Michael Kaufmann
8df6654ad0 Merge pull request #676 from pquerner/#675
use correct validate-ip function in \Froxlor\Validate\Validate::validateUrl, fixes #675
2019-04-30 07:09:20 +02:00
Pascal
1a5e43b6f7 fixes #646
change regex by using well tested regex from here:
https://mathiasbynens.be/demo/url-regex

by @diegoperini
https://gist.github.com/dperini/729294
2019-04-30 00:08:32 +02:00
Pascal
c4c7f4b636 fixes #675
fix call to static method
2019-04-29 23:39:10 +02:00
Michael Kaufmann
9aa0de16be Merge branch 'foliengriller-annotationsAPI' 2019-04-26 12:24:15 +02:00
Michael Kaufmann
cb636fe2c9 Merge branch 'annotationsAPI' of https://github.com/foliengriller/Froxlor into foliengriller-annotationsAPI 2019-04-26 12:23:58 +02:00
Michael Kaufmann
f93dc5643f fix error that wildcard-domains and lets-encrypt are not possible when using ACMEv2; fixes #674
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-25 14:20:02 +02:00
Michael Kaufmann
974b151d02 add Debian 10 (Buster) and Ubuntu 18.04 (Bionic) config-templates for TESTING
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-25 14:04:15 +02:00
Michael Kaufmann
8835dd0b65 remove deprecated config-templates for Ubuntu 12.04 (Precise); mark Debian 7 (Jessie) and Ubuntu 14.04 (Trusty) as deprecated
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-25 14:03:39 +02:00
Michael Kaufmann
626b791c67 remove recursor options in powerdns config template for gentoo, as recursion has been removed in pdns >=4.1.0; fixes #673
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-25 13:56:42 +02:00
Michael Kaufmann
82508587b3 update mysql-table engines to InnoDB; fixes #671
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-25 13:31:18 +02:00
Michael Kaufmann
0d7fa5728c fix auto-delete of cetificates when no domain exists anylonger, thx to an error-report
Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
2019-04-14 08:13:34 +02:00
Michael Rosenberger
98f6ad183e Corrects annotations in API 2018-12-19 16:58:52 +01:00
36 changed files with 9758 additions and 1969 deletions

View File

@@ -8,7 +8,7 @@ CREATE TABLE `ftp_groups` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `groupname` (`groupname`), UNIQUE KEY `groupname` (`groupname`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -33,7 +33,7 @@ CREATE TABLE `ftp_users` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `username` (`username`), UNIQUE KEY `username` (`username`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -57,7 +57,7 @@ CREATE TABLE `mail_users` (
`mboxsize` bigint(30) NOT NULL default '0', `mboxsize` bigint(30) NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `email` (`email`) UNIQUE KEY `email` (`email`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -73,7 +73,7 @@ CREATE TABLE `mail_virtual` (
`iscatchall` tinyint(1) unsigned NOT NULL default '0', `iscatchall` tinyint(1) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `email` (`email`) KEY `email` (`email`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `panel_activation`; DROP TABLE IF EXISTS `panel_activation`;
@@ -84,7 +84,7 @@ CREATE TABLE `panel_activation` (
`creation` int(11) unsigned NOT NULL default '0', `creation` int(11) unsigned NOT NULL default '0',
`activationcode` varchar(50) default NULL, `activationcode` varchar(50) default NULL,
PRIMARY KEY (id) PRIMARY KEY (id)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `panel_admins`; DROP TABLE IF EXISTS `panel_admins`;
@@ -134,7 +134,7 @@ CREATE TABLE `panel_admins` (
`data_2fa` varchar(500) NOT NULL default '', `data_2fa` varchar(500) NOT NULL default '',
PRIMARY KEY (`adminid`), PRIMARY KEY (`adminid`),
UNIQUE KEY `loginname` (`loginname`) UNIQUE KEY `loginname` (`loginname`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -202,7 +202,7 @@ CREATE TABLE `panel_customers` (
`logviewenabled` tinyint(1) NOT NULL default '0', `logviewenabled` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`customerid`), PRIMARY KEY (`customerid`),
UNIQUE KEY `loginname` (`loginname`) UNIQUE KEY `loginname` (`loginname`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -215,7 +215,7 @@ CREATE TABLE `panel_databases` (
`dbserver` int(11) unsigned NOT NULL default '0', `dbserver` int(11) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -268,7 +268,7 @@ CREATE TABLE `panel_domains` (
KEY `customerid` (`customerid`), KEY `customerid` (`customerid`),
KEY `parentdomain` (`parentdomainid`), KEY `parentdomain` (`parentdomainid`),
KEY `domain` (`domain`) KEY `domain` (`domain`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -291,7 +291,7 @@ CREATE TABLE `panel_ipsandports` (
`docroot` varchar(255) NOT NULL default '', `docroot` varchar(255) NOT NULL default '',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `ip_port` (`ip`,`port`) UNIQUE KEY `ip_port` (`ip`,`port`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -307,7 +307,7 @@ CREATE TABLE `panel_htaccess` (
`error401path` varchar(255) NOT NULL default '', `error401path` varchar(255) NOT NULL default '',
`options_cgi` tinyint(1) NOT NULL default '0', `options_cgi` tinyint(1) NOT NULL default '0',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -321,7 +321,7 @@ CREATE TABLE `panel_htpasswds` (
`authname` varchar(255) NOT NULL default 'Restricted Area', `authname` varchar(255) NOT NULL default 'Restricted Area',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -350,7 +350,7 @@ CREATE TABLE `panel_settings` (
`varname` varchar(255) NOT NULL default '', `varname` varchar(255) NOT NULL default '',
`value` text NOT NULL, `value` text NOT NULL,
PRIMARY KEY (`settingid`) PRIMARY KEY (`settingid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES INSERT INTO `panel_settings` (`settinggroup`, `varname`, `value`) VALUES
('catchall', 'catchall_enabled', '1'), ('catchall', 'catchall_enabled', '1'),
@@ -680,8 +680,8 @@ 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.0-rc1'), ('panel', 'version', '0.10.0-rc2'),
('panel', 'db_version', '201904100'); ('panel', 'db_version', '201904250');
DROP TABLE IF EXISTS `panel_tasks`; DROP TABLE IF EXISTS `panel_tasks`;
@@ -690,7 +690,7 @@ CREATE TABLE `panel_tasks` (
`type` int(11) NOT NULL default '0', `type` int(11) NOT NULL default '0',
`data` text, `data` text,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
INSERT INTO `panel_tasks` (`type`) VALUES ('99'); INSERT INTO `panel_tasks` (`type`) VALUES ('99');
@@ -705,7 +705,7 @@ CREATE TABLE `panel_templates` (
`value` longtext NOT NULL, `value` longtext NOT NULL,
PRIMARY KEY (id), PRIMARY KEY (id),
KEY adminid (adminid) KEY adminid (adminid)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -723,7 +723,7 @@ CREATE TABLE `panel_traffic` (
`mail` bigint(30) unsigned NOT NULL default '0', `mail` bigint(30) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -741,7 +741,7 @@ CREATE TABLE `panel_traffic_admins` (
`mail` bigint(30) unsigned NOT NULL default '0', `mail` bigint(30) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `adminid` (`adminid`) KEY `adminid` (`adminid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -758,7 +758,7 @@ CREATE TABLE `panel_diskspace` (
`mysql` bigint(30) unsigned NOT NULL default '0', `mysql` bigint(30) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `customerid` (`customerid`) KEY `customerid` (`customerid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -775,7 +775,7 @@ CREATE TABLE `panel_diskspace_admins` (
`mysql` bigint(30) unsigned NOT NULL default '0', `mysql` bigint(30) unsigned NOT NULL default '0',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `adminid` (`adminid`) KEY `adminid` (`adminid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -786,7 +786,7 @@ CREATE TABLE `panel_languages` (
`iso` char(3) NOT NULL DEFAULT 'foo', `iso` char(3) NOT NULL DEFAULT 'foo',
`file` varchar(255) NOT NULL DEFAULT '', `file` varchar(255) NOT NULL DEFAULT '',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -809,7 +809,7 @@ CREATE TABLE IF NOT EXISTS `panel_syslog` (
`user` varchar(50) NOT NULL, `user` varchar(50) NOT NULL,
`text` text NOT NULL, `text` text NOT NULL,
PRIMARY KEY (`logid`) PRIMARY KEY (`logid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -830,7 +830,7 @@ CREATE TABLE `panel_fpmdaemons` (
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `reload` (`reload_cmd`), UNIQUE KEY `reload` (`reload_cmd`),
UNIQUE KEY `config` (`config_dir`) UNIQUE KEY `config` (`config_dir`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -865,7 +865,7 @@ CREATE TABLE `panel_phpconfigs` (
`limit_extensions` varchar(255) NOT NULL default '.php', `limit_extensions` varchar(255) NOT NULL default '.php',
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
KEY `fpmsettingid` (`fpmsettingid`) KEY `fpmsettingid` (`fpmsettingid`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -885,7 +885,7 @@ CREATE TABLE IF NOT EXISTS `cronjobs_run` (
`isactive` tinyint(1) DEFAULT '1', `isactive` tinyint(1) DEFAULT '1',
`desc_lng_key` varchar(100) NOT NULL DEFAULT 'cron_unknown_desc', `desc_lng_key` varchar(100) NOT NULL DEFAULT 'cron_unknown_desc',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
INSERT INTO `cronjobs_run` (`id`, `module`, `cronfile`, `cronclass`, `interval`, `isactive`, `desc_lng_key`) VALUES INSERT INTO `cronjobs_run` (`id`, `module`, `cronfile`, `cronclass`, `interval`, `isactive`, `desc_lng_key`) VALUES
@@ -910,7 +910,7 @@ CREATE TABLE IF NOT EXISTS `ftp_quotalimits` (
`files_in_avail` int(10) unsigned NOT NULL, `files_in_avail` int(10) unsigned NOT NULL,
`files_out_avail` int(10) unsigned NOT NULL, `files_out_avail` int(10) unsigned NOT NULL,
`files_xfer_avail` int(10) unsigned NOT NULL `files_xfer_avail` int(10) unsigned NOT NULL
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -929,7 +929,7 @@ CREATE TABLE IF NOT EXISTS `ftp_quotatallies` (
`files_in_used` int(10) unsigned NOT NULL, `files_in_used` int(10) unsigned NOT NULL,
`files_out_used` int(10) unsigned NOT NULL, `files_out_used` int(10) unsigned NOT NULL,
`files_xfer_used` int(10) unsigned NOT NULL `files_xfer_used` int(10) unsigned NOT NULL
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -940,7 +940,7 @@ CREATE TABLE IF NOT EXISTS `redirect_codes` (
`desc` varchar(200) NOT NULL, `desc` varchar(200) NOT NULL,
`enabled` tinyint(1) DEFAULT '1', `enabled` tinyint(1) DEFAULT '1',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
@@ -958,7 +958,7 @@ CREATE TABLE IF NOT EXISTS `domain_redirect_codes` (
`rid` int(5) NOT NULL, `rid` int(5) NOT NULL,
`did` int(11) unsigned NOT NULL, `did` int(11) unsigned NOT NULL,
UNIQUE KEY `rc` (`rid`, `did`) UNIQUE KEY `rc` (`rid`, `did`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `domain_ssl_settings`; DROP TABLE IF EXISTS `domain_ssl_settings`;
@@ -973,7 +973,7 @@ CREATE TABLE IF NOT EXISTS `domain_ssl_settings` (
`ssl_fullchain_file` mediumtext, `ssl_fullchain_file` mediumtext,
`expirationdate` datetime DEFAULT NULL, `expirationdate` datetime DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `panel_domaintoip`; DROP TABLE IF EXISTS `panel_domaintoip`;
@@ -981,7 +981,7 @@ CREATE TABLE IF NOT EXISTS `panel_domaintoip` (
`id_domain` int(11) unsigned NOT NULL, `id_domain` int(11) unsigned NOT NULL,
`id_ipandports` int(11) unsigned NOT NULL, `id_ipandports` int(11) unsigned NOT NULL,
PRIMARY KEY (`id_domain`,`id_ipandports`) PRIMARY KEY (`id_domain`,`id_ipandports`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `domain_dns_entries`; DROP TABLE IF EXISTS `domain_dns_entries`;
@@ -994,7 +994,7 @@ CREATE TABLE `domain_dns_entries` (
`ttl` int(11) NOT NULL DEFAULT '18000', `ttl` int(11) NOT NULL DEFAULT '18000',
`prio` int(11) DEFAULT NULL, `prio` int(11) DEFAULT NULL,
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `panel_plans`; DROP TABLE IF EXISTS `panel_plans`;
@@ -1007,7 +1007,7 @@ CREATE TABLE `panel_plans` (
`ts` int(15) NOT NULL default '0', `ts` int(15) NOT NULL default '0',
PRIMARY KEY (id), PRIMARY KEY (id),
KEY adminid (adminid) KEY adminid (adminid)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;
DROP TABLE IF EXISTS `api_keys`; DROP TABLE IF EXISTS `api_keys`;
@@ -1022,5 +1022,5 @@ CREATE TABLE `api_keys` (
PRIMARY KEY (id), PRIMARY KEY (id),
KEY adminid (adminid), KEY adminid (adminid),
KEY customerid (customerid) KEY customerid (customerid)
) ENGINE=MyISAM CHARSET=utf8 COLLATE=utf8_general_ci; ) ENGINE=InnoDB CHARSET=utf8 COLLATE=utf8_general_ci;

View File

@@ -238,5 +238,24 @@ if (\Froxlor\Froxlor::isDatabaseVersion('201902210')) {
// set correct version for people that have tested 0.10.0 before // set correct version for people that have tested 0.10.0 before
\Froxlor\Froxlor::updateToVersion('0.10.0-rc1'); \Froxlor\Froxlor::updateToVersion('0.10.0-rc1');
\Froxlor\Froxlor::updateToDbVersion('201904100'); \Froxlor\Froxlor::updateToDbVersion('201904100');
}
if (\Froxlor\Froxlor::isDatabaseVersion('201904100')) {
showUpdateStep("Converting all MyISAM tables to InnoDB");
Database::needRoot(true);
Database::needSqlData();
$sql_data = Database::getSqlData();
$result = Database::query("SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '" . $sql_data['db'] . "' AND ENGINE = 'MyISAM'");
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
Database::query("ALTER TABLE `" . $row['TABLE_NAME'] . "` ENGINE=INNODB");
}
lastStepStatus(0);
\Froxlor\Froxlor::updateToDbVersion('201904250');
}
if (\Froxlor\Froxlor::isFroxlorVersion('0.10.0-rc1')) {
\Froxlor\Froxlor::updateToVersion('0.10.0-rc2');
} }

View File

@@ -27,7 +27,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -61,7 +61,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -158,7 +158,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -415,7 +415,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -653,7 +653,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {
@@ -753,7 +753,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function unlock() public function unlock()
{ {
@@ -788,7 +788,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
/** /**
* increase resource-usage * increase resource-usage
* *
* @param int $customerid * @param int $adminid
* @param string $resource * @param string $resource
* @param string $extra * @param string $extra
* optional, default empty * optional, default empty
@@ -803,7 +803,7 @@ class Admins extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
/** /**
* decrease resource-usage * decrease resource-usage
* *
* @param int $customerid * @param int $adminid
* @param string $resource * @param string $resource
* @param string $extra * @param string $extra
* optional, default empty * optional, default empty

View File

@@ -38,7 +38,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -87,7 +87,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -129,7 +129,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -164,7 +164,7 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -211,8 +211,8 @@ class Certificates extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resou
* *
* @param int $id * @param int $id
* *
* @return array
* @throws \Exception * @throws \Exception
* @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -37,7 +37,7 @@ class Cronjobs extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceE
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -71,7 +71,7 @@ class Cronjobs extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceE
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -129,7 +129,7 @@ class Cronjobs extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceE
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {

View File

@@ -55,8 +55,8 @@ class CustomerBackups extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
* required when called as admin, not needed when called as customer * required when called as admin, not needed when called as customer
* *
* @access admin, customer * @access admin, customer
* @return array
* @throws \Exception * @throws \Exception
* @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -140,7 +140,7 @@ class CustomerBackups extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {

View File

@@ -27,7 +27,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -69,7 +69,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -205,7 +205,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -820,7 +820,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -1337,7 +1337,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {
@@ -1561,7 +1561,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function unlock() public function unlock()
{ {
@@ -1606,7 +1606,7 @@ class Customers extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resource
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function move() public function move()
{ {

View File

@@ -44,7 +44,7 @@ class DirOptions extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -139,7 +139,7 @@ class DirOptions extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -214,7 +214,7 @@ class DirOptions extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -288,7 +288,7 @@ class DirOptions extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -321,7 +321,7 @@ class DirOptions extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -37,7 +37,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -124,7 +124,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -197,7 +197,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -271,7 +271,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -306,7 +306,7 @@ class DirProtections extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Res
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -42,7 +42,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -306,7 +306,7 @@ class DomainZones extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {

View File

@@ -27,7 +27,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -70,7 +70,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -184,7 +184,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -741,7 +741,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -1482,7 +1482,7 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {
@@ -1629,11 +1629,11 @@ class Domains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
/** /**
* validate given ips * validate given ips
* *
* @param int|string|array $p_ipsandports * @param int|string|array $p_ipandports
* @param boolean $edit
* default false
* @param boolean $ssl * @param boolean $ssl
* default false * default false
* @param int $edit_id
* default 0
* *
* @throws \Exception * @throws \Exception
* @return array * @return array

View File

@@ -44,7 +44,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -300,7 +300,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -412,7 +412,7 @@ class EmailAccounts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Reso
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -38,7 +38,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
* *
* @access admin,customer * @access admin,customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -150,7 +150,7 @@ class EmailForwarders extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Re
* *
* @access admin,customer * @access admin,customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -38,7 +38,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -152,7 +152,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -195,7 +195,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -268,7 +268,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -308,7 +308,7 @@ class Emails extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -26,7 +26,7 @@ class FpmDaemons extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -80,7 +80,7 @@ class FpmDaemons extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -126,7 +126,7 @@ class FpmDaemons extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -237,7 +237,7 @@ class FpmDaemons extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -332,7 +332,7 @@ class FpmDaemons extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -27,7 +27,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return string * @return string json-encoded array
*/ */
public function checkUpdate() public function checkUpdate()
{ {
@@ -110,7 +110,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return bool * @return string json-encoded bool
*/ */
public function importSettings() public function importSettings()
{ {
@@ -155,7 +155,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listSettings() public function listSettings()
{ {
@@ -236,7 +236,7 @@ class Froxlor extends \Froxlor\Api\ApiCommand
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function listFunctions() public function listFunctions()
{ {

View File

@@ -44,7 +44,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -240,7 +240,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -311,7 +311,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -423,7 +423,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -456,7 +456,7 @@ class Ftps extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEntit
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -27,7 +27,7 @@ class IpsAndPorts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -61,7 +61,7 @@ class IpsAndPorts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -121,7 +121,7 @@ class IpsAndPorts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -291,7 +291,7 @@ class IpsAndPorts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -449,7 +449,7 @@ class IpsAndPorts extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -38,7 +38,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -183,7 +183,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -279,7 +279,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -362,7 +362,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -428,7 +428,7 @@ class Mysqls extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEnt
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -30,7 +30,7 @@ class PhpSettings extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -123,7 +123,7 @@ class PhpSettings extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -192,7 +192,7 @@ class PhpSettings extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -393,7 +393,7 @@ class PhpSettings extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -548,7 +548,7 @@ class PhpSettings extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resour
* *
* @access admin * @access admin
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -56,7 +56,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function add() public function add()
{ {
@@ -331,7 +331,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function get() public function get()
{ {
@@ -441,7 +441,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function update() public function update()
{ {
@@ -560,7 +560,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
} }
// if using acme-v2 we cannot issue wildcard-certificates // if using acme-v2 we cannot issue wildcard-certificates
// because they currently only support the dns-01 challenge // because they currently only support the dns-01 challenge
if ($iswildcarddomain == '0' && $letsencrypt == '1' && Settings::Get('system.leapiversion') == '2') { if ($iswildcarddomain == '1' && $letsencrypt == '1' && Settings::Get('system.leapiversion') == '2') {
\Froxlor\UI\Response::standard_error('nowildcardwithletsencryptv2'); \Froxlor\UI\Response::standard_error('nowildcardwithletsencryptv2');
} }
@@ -658,7 +658,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {
@@ -735,7 +735,7 @@ class SubDomains extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\Resourc
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array * @return string json-encoded array
*/ */
public function delete() public function delete()
{ {

View File

@@ -69,7 +69,7 @@ class Traffic extends \Froxlor\Api\ApiCommand implements \Froxlor\Api\ResourceEn
* *
* @access admin, customer * @access admin, customer
* @throws \Exception * @throws \Exception
* @return array count|list * @return string json-encoded array count|list
*/ */
public function listing() public function listing()
{ {

View File

@@ -7,10 +7,10 @@ final class Froxlor
{ {
// Main version variable // Main version variable
const VERSION = '0.10.0-rc1'; const VERSION = '0.10.0-rc2';
// Database version (YYYYMMDDC where C is a daily counter) // Database version (YYYYMMDDC where C is a daily counter)
const DBVERSION = '201904100'; const DBVERSION = '201904250';
// Distribution branding-tag (used for Debian etc.) // Distribution branding-tag (used for Debian etc.)
const BRANDING = ''; const BRANDING = '';

View File

@@ -101,13 +101,13 @@ class MailLogParser
$timestamp = $this->getLogTimestamp($line); $timestamp = $this->getLogTimestamp($line);
if ($this->startTime < $timestamp) { if ($this->startTime < $timestamp) {
if (preg_match("/postfix\/qmgr.*(?::|\])\s([A-Z\d]+).*from=<?(?:.*\@([a-z\A-Z\d\.\-]+))?>?, size=(\d+),/", $line, $matches)) { if (preg_match("/postfix\/qmgr.*(?::|\])\s([A-Z\d]+).*from=<?(?:.*\@([a-zA-Z\d\.\-]+))?>?, size=(\d+),/", $line, $matches)) {
// Postfix from // Postfix from
$this->mails[$matches[1]] = array( $this->mails[$matches[1]] = array(
"domainFrom" => strtolower($matches[2]), "domainFrom" => strtolower($matches[2]),
"size" => $matches[3] "size" => $matches[3]
); );
} elseif (preg_match("/postfix\/(?:pipe|smtp).*(?::|\])\s([A-Z\d]+).*to=<?(?:.*\@([a-z\A-Z\d\.\-]+))?>?,/", $line, $matches)) { } elseif (preg_match("/postfix\/(?:pipe|smtp).*(?::|\])\s([A-Z\d]+).*to=<?(?:.*\@([a-zA-Z\d\.\-]+))?>?,/", $line, $matches)) {
// Postfix to // Postfix to
if (array_key_exists($matches[1], $this->mails)) { if (array_key_exists($matches[1], $this->mails)) {
$this->mails[$matches[1]]["domainTo"] = strtolower($matches[2]); $this->mails[$matches[1]]["domainTo"] = strtolower($matches[2]);

View File

@@ -152,7 +152,7 @@ class Data
return false; return false;
} }
$pattern = "/^https?:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,4}(\:[0-9]+)?\/?(.+)?$/i"; $pattern = '%^(?:(?:https?)://)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)(?:\.(?:[a-z\x{00a1}-\x{ffff}0-9]+-?)*[a-z\x{00a1}-\x{ffff}0-9]+)*(?:\.(?:[a-z\x{00a1}-\x{ffff}]{2,})))(?::\d{2,5})?(?:/[^\s]*)?$%iuS';
if (preg_match($pattern, $url)) { if (preg_match($pattern, $url)) {
return true; return true;
} }
@@ -174,7 +174,7 @@ class Data
$ip = substr($ip, 0, strpos($ip, ':')); $ip = substr($ip, 0, strpos($ip, ':'));
} }
if (validate_ip($ip, true) !== false) { if (\Froxlor\Validate\Validate::validate_ip2($ip, true) !== false) {
return true; return true;
} else { } else {
return false; return false;

4692
lib/configfiles/bionic.xml Normal file

File diff suppressed because it is too large Load Diff

4887
lib/configfiles/buster.xml Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -405,11 +405,6 @@ allow-axfr-ips=127.0.0.0/8,::1,<NAMESERVERS_IP>
# #
# allow-dnsupdate-from=127.0.0.0/8,::1 # allow-dnsupdate-from=127.0.0.0/8,::1
#################################
# allow-recursion List of subnets that are allowed to recurse
#
allow-recursion=127.0.0.1
################################# #################################
# also-notify When notifying a domain, also notify these nameservers # also-notify When notifying a domain, also notify these nameservers
# #
@@ -750,16 +745,6 @@ module-dir=/usr/lib/powerdns/pdns/
# #
# receiver-threads=1 # receiver-threads=1
#################################
# recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache
#
# recursive-cache-ttl=10
#################################
# recursor If recursion is desired, IP address of a recursing nameserver
#
# recursor=no
################################# #################################
# retrieval-threads Number of AXFR-retrieval threads for slave operation # retrieval-threads Number of AXFR-retrieval threads for slave operation
# #
@@ -949,11 +934,6 @@ allow-axfr-ips=127.0.0.0/8,::1,<NAMESERVERS_IP>
# #
# allow-dnsupdate-from=127.0.0.0/8,::1 # allow-dnsupdate-from=127.0.0.0/8,::1
#################################
# allow-recursion List of subnets that are allowed to recurse
#
allow-recursion=127.0.0.1
################################# #################################
# also-notify When notifying a domain, also notify these nameservers # also-notify When notifying a domain, also notify these nameservers
# #
@@ -1294,16 +1274,6 @@ module-dir=/usr/lib/powerdns/pdns/
# #
# receiver-threads=1 # receiver-threads=1
#################################
# recursive-cache-ttl Seconds to store packets for recursive queries in the PacketCache
#
# recursive-cache-ttl=10
#################################
# recursor If recursion is desired, IP address of a recursing nameserver
#
# recursor=no
################################# #################################
# retrieval-threads Number of AXFR-retrieval threads for slave operation # retrieval-threads Number of AXFR-retrieval threads for slave operation
# #

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<froxlor> <froxlor>
<distribution name="Debian" codename="Jessie" <distribution name="Debian" codename="Jessie"
version="8.x" defaulteditor="/usr/bin/nano"> version="8.x" defaulteditor="/usr/bin/nano" deprecated="true">
<services> <services>
<!-- HTTP --> <!-- HTTP -->
<service type="http" title="{{lng.admin.configfiles.http}}"> <service type="http" title="{{lng.admin.configfiles.http}}">

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<froxlor> <froxlor>
<distribution name="Ubuntu" codename="Trusty" <distribution name="Ubuntu" codename="Trusty"
version="14.04" defaulteditor="/usr/bin/nano"> version="14.04" defaulteditor="/usr/bin/nano" deprecated="true">
<services> <services>
<!-- HTTP --> <!-- HTTP -->
<service type="http" title="{{lng.admin.configfiles.http}}"> <service type="http" title="{{lng.admin.configfiles.http}}">

View File

@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<froxlor> <froxlor>
<distribution name="Ubuntu" codename="Xenial" <distribution name="Ubuntu" codename="Xenial"
version="16.04.x" defaulteditor="/bin/nano"> version="16.04" defaulteditor="/bin/nano">
<services> <services>
<!-- HTTP --> <!-- HTTP -->
<service type="http" title="{{lng.admin.configfiles.http}}"> <service type="http" title="{{lng.admin.configfiles.http}}">

View File

@@ -1743,12 +1743,12 @@ $lng['admin']['configfiles']['commands'] = '<span class="red">Commands:</span> T
$lng['admin']['configfiles']['files'] = '<span class="red">Config files:</span> The commands before the textfields should open an editor with the target file. Just copy and paste the contents into the editor and save the file.<br><span class="red">Please note:</span> The MySQL-password has not been replaced for security reasons. Please replace "FROXLOR_MYSQL_PASSWORD" on your own or use the javascript form below to replace it on-site. If you forgot your MySQL-password you\'ll find it in "lib/userdata.inc.php"'; $lng['admin']['configfiles']['files'] = '<span class="red">Config files:</span> The commands before the textfields should open an editor with the target file. Just copy and paste the contents into the editor and save the file.<br><span class="red">Please note:</span> The MySQL-password has not been replaced for security reasons. Please replace "FROXLOR_MYSQL_PASSWORD" on your own or use the javascript form below to replace it on-site. If you forgot your MySQL-password you\'ll find it in "lib/userdata.inc.php"';
$lng['serversettings']['apache_itksupport']['title'] = 'Use modifications for Apache ITK-MPM'; $lng['serversettings']['apache_itksupport']['title'] = 'Use modifications for Apache ITK-MPM';
$lng['serversettings']['apache_itksupport']['description'] = '<strong class="red">ATTENTION:</strong> use only if you actually have apache itk-mpm enabled<br />otherwise your webserver will not be able to start'; $lng['serversettings']['apache_itksupport']['description'] = '<strong class="red">ATTENTION:</strong> use only if you actually have apache itk-mpm enabled<br />otherwise your webserver will not be able to start';
$lng['integrity_check']['DatabaseCharset'] = 'Character set of database (should be UTF-8)'; $lng['integrity_check']['databaseCharset'] = 'Character set of database (should be UTF-8)';
$lng['integrity_check']['DomainIpTable'] = 'IP &lt;&dash;&gt; domain references'; $lng['integrity_check']['domainIpTable'] = 'IP &lt;&dash;&gt; domain references';
$lng['integrity_check']['SubdomainSslRedirect'] = 'False SSL-redirect flag for non-ssl domains'; $lng['integrity_check']['subdomainSslRedirect'] = 'False SSL-redirect flag for non-ssl domains';
$lng['integrity_check']['FroxlorLocalGroupMemberForFcgidPhpFpm'] = 'froxlor-user in the customer groups (for FCGID/php-fpm)'; $lng['integrity_check']['froxlorLocalGroupMemberForFcgidPhpFpm'] = 'froxlor-user in the customer groups (for FCGID/php-fpm)';
$lng['integrity_check']['WebserverGroupMemberForFcgidPhpFpm'] = 'Webserver-user in the customer groups (for FCGID/php-fpm)'; $lng['integrity_check']['webserverGroupMemberForFcgidPhpFpm'] = 'Webserver-user in the customer groups (for FCGID/php-fpm)';
$lng['integrity_check']['SubdomainLetsencrypt'] = 'Main domains with no SSL-Port assigned don\'t have any subdomains with active SSL redirect'; $lng['integrity_check']['subdomainLetsencrypt'] = 'Main domains with no SSL-Port assigned don\'t have any subdomains with active SSL redirect';
$lng['admin']['mod_fcgid_umask']['title'] = 'Umask (default: 022)'; $lng['admin']['mod_fcgid_umask']['title'] = 'Umask (default: 022)';
// Added for apcuinfo // Added for apcuinfo

View File

@@ -1467,12 +1467,12 @@ $lng['admin']['configfiles']['commands'] = '<span class="red">Kommandos:</span>
$lng['admin']['configfiles']['files'] = '<span class="red">Konfigurationsdateien:</span> Der Befehl direkt vor dem Textfeld sollte einen Editor mit der Zieldatei öffnen. Der Inhalt kann nun einfach kopiert und in den Editor eingefügt und die Datei gespeichert werden.<br><span class="red">Bitte beachten:</span> Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt. Bitte ersetzen Sie "FROXLOR_MYSQL_PASSWORD" manuell oder nutzen Sie das folgende Formular, um es temporär auf dieser Seite zu setzen. Falls das Passwort vergessen wurde, findet es sich in der Datei "lib/userdata.inc.php".'; $lng['admin']['configfiles']['files'] = '<span class="red">Konfigurationsdateien:</span> Der Befehl direkt vor dem Textfeld sollte einen Editor mit der Zieldatei öffnen. Der Inhalt kann nun einfach kopiert und in den Editor eingefügt und die Datei gespeichert werden.<br><span class="red">Bitte beachten:</span> Das MySQL-Passwort wurde aus Sicherheitsgründen nicht ersetzt. Bitte ersetzen Sie "FROXLOR_MYSQL_PASSWORD" manuell oder nutzen Sie das folgende Formular, um es temporär auf dieser Seite zu setzen. Falls das Passwort vergessen wurde, findet es sich in der Datei "lib/userdata.inc.php".';
$lng['serversettings']['apache_itksupport']['title'] = 'Anpassungen für Apache ITK-MPM verwenden'; $lng['serversettings']['apache_itksupport']['title'] = 'Anpassungen für Apache ITK-MPM verwenden';
$lng['serversettings']['apache_itksupport']['description'] = '<div class="red">Achtung: Bitte nur verwenden, wenn wirklich Apache itk-mpm verwendet wird, ansonsten wird der Webserver nicht starten.</div>'; $lng['serversettings']['apache_itksupport']['description'] = '<div class="red">Achtung: Bitte nur verwenden, wenn wirklich Apache itk-mpm verwendet wird, ansonsten wird der Webserver nicht starten.</div>';
$lng['integrity_check']['DatabaseCharset'] = 'Characterset der Datenbank (sollte UTF-8 sein)'; $lng['integrity_check']['databaseCharset'] = 'Characterset der Datenbank (sollte UTF-8 sein)';
$lng['integrity_check']['DomainIpTable'] = 'IP &lt;&dash;&gt; Domain Verkn&uuml;pfung'; $lng['integrity_check']['domainIpTable'] = 'IP &lt;&dash;&gt; Domain Verkn&uuml;pfung';
$lng['integrity_check']['SubdomainSslRedirect'] = 'Falsches SSL-redirect Flag bei nicht-SSL Domains'; $lng['integrity_check']['subdomainSslRedirect'] = 'Falsches SSL-redirect Flag bei nicht-SSL Domains';
$lng['integrity_check']['FroxlorLocalGroupMemberForFcgidPhpFpm'] = 'froxlor-Benutzer in Kunden-Gruppen (f&uuml;r FCGID/php-fpm)'; $lng['integrity_check']['froxlorLocalGroupMemberForFcgidPhpFpm'] = 'froxlor-Benutzer in Kunden-Gruppen (f&uuml;r FCGID/php-fpm)';
$lng['integrity_check']['WebserverGroupMemberForFcgidPhpFpm'] = 'Webserver-Benutzer in Kunden-Gruppen (f&uuml;r FCGID/php-fpm)'; $lng['integrity_check']['webserverGroupMemberForFcgidPhpFpm'] = 'Webserver-Benutzer in Kunden-Gruppen (f&uuml;r FCGID/php-fpm)';
$lng['integrity_check']['SubdomainLetsencrypt'] = 'Hauptdomains ohne zugewiesenen SSL-Port haben keine Subdomain mit aktiviertem SSL-Redirect'; $lng['integrity_check']['subdomainLetsencrypt'] = 'Hauptdomains ohne zugewiesenen SSL-Port haben keine Subdomain mit aktiviertem SSL-Redirect';
$lng['admin']['mod_fcgid_umask']['title'] = 'Umask (Standard: 022)'; $lng['admin']['mod_fcgid_umask']['title'] = 'Umask (Standard: 022)';
// Added for let's encrypt // Added for let's encrypt

View File

@@ -106,9 +106,13 @@ if (count($all_certs) == 0) {
if (empty($cert['domain']) || empty($cert['ssl_cert_file'])) { if (empty($cert['domain']) || empty($cert['ssl_cert_file'])) {
// no domain found to the entry or empty entry - safely delete it from the DB // no domain found to the entry or empty entry - safely delete it from the DB
Database::pexecute($del_stmt, array( try {
'id' => $cert['id'] Certificates::getLocal($userinfo, array(
)); 'id' => $cert['id']
))->delete();
} catch (Exception $e) {
// do nothing
}
continue; continue;
} }

View File

@@ -11,6 +11,11 @@ if (file_exists('/etc/froxlor-test.pwd') && file_exists('/etc/froxlor-test.rpwd'
define('TRAVIS_CI', 1); define('TRAVIS_CI', 1);
} }
if (@php_sapi_name() !== 'cli') {
// not to be called via browser
die;
}
$userdata_content = "<?php $userdata_content = "<?php
\$sql['user'] = 'froxlor010'; \$sql['user'] = 'froxlor010';
\$sql['password'] = '$pwd'; \$sql['password'] = '$pwd';