Skip to content

Commit f1e4b77

Browse files
author
thom
committed
Purge Apps & Addons (#5795)
1 parent 0113e85 commit f1e4b77

File tree

177 files changed

+16
-3149
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+16
-3149
lines changed

install/lib/installer_base.lib.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -646,9 +646,6 @@ public function grant_master_database_rights($verbose = false) {
646646
if ($verbose){
647647
echo $query ."\n";
648648
}
649-
if(!$this->dbmaster->query($query, $value['db'] . '.software_update_inst', $value['user'], $host)) {
650-
$this->warning('Unable to set rights of user in master database: '.$value['db']."\n Query: ".$query."\n Error: ".$this->dbmaster->errorMessage);
651-
}
652649

653650
$query = "GRANT SELECT, UPDATE(`updated`) ON ?? TO ?@?";
654651
if ($verbose){
Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
1+
-- Purge apps & addons installer (#5795)
2+
DROP TABLE 'software_package';
3+
DROP TABLE 'software_repo';
4+
DROP TABLE 'software_update';
5+
DROP TABLE 'software_update_inst';

install/sql/ispconfig3.sql

Lines changed: 0 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,88 +1461,6 @@ CREATE TABLE `shell_user` (
14611461

14621462
-- --------------------------------------------------------
14631463

1464-
--
1465-
-- Table structure for table `software_package`
1466-
--
1467-
1468-
CREATE TABLE `software_package` (
1469-
`package_id` int(11) unsigned NOT NULL auto_increment,
1470-
`software_repo_id` int(11) unsigned NOT NULL DEFAULT '0',
1471-
`package_name` varchar(64) NOT NULL DEFAULT '',
1472-
`package_title` varchar(64) NOT NULL DEFAULT '',
1473-
`package_description` text,
1474-
`package_version` varchar(8) default NULL,
1475-
`package_type` enum('ispconfig','app','web') NOT NULL default 'app',
1476-
`package_installable` enum('yes','no','key') NOT NULL default 'yes',
1477-
`package_requires_db` enum('no','mysql') NOT NULL default 'no',
1478-
`package_remote_functions` text,
1479-
`package_key` varchar(255) NOT NULL DEFAULT '',
1480-
`package_config` text,
1481-
PRIMARY KEY (`package_id`),
1482-
UNIQUE KEY `package_name` (`package_name`)
1483-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1484-
1485-
-- --------------------------------------------------------
1486-
1487-
--
1488-
-- Table structure for table `software_repo`
1489-
--
1490-
1491-
CREATE TABLE `software_repo` (
1492-
`software_repo_id` int(11) unsigned NOT NULL auto_increment,
1493-
`sys_userid` int(11) unsigned NOT NULL default '0',
1494-
`sys_groupid` int(11) unsigned NOT NULL default '0',
1495-
`sys_perm_user` varchar(5) default NULL,
1496-
`sys_perm_group` varchar(5) default NULL,
1497-
`sys_perm_other` varchar(5) default NULL,
1498-
`repo_name` varchar(64) default NULL,
1499-
`repo_url` varchar(255) default NULL,
1500-
`repo_username` varchar(64) default NULL,
1501-
`repo_password` varchar(64) default NULL,
1502-
`active` enum('n','y') NOT NULL default 'y',
1503-
PRIMARY KEY (`software_repo_id`)
1504-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1505-
1506-
-- --------------------------------------------------------
1507-
1508-
--
1509-
-- Table structure for table `software_update`
1510-
--
1511-
1512-
CREATE TABLE `software_update` (
1513-
`software_update_id` int(11) unsigned NOT NULL auto_increment,
1514-
`software_repo_id` int(11) unsigned NOT NULL DEFAULT '0',
1515-
`package_name` varchar(64) NOT NULL DEFAULT '',
1516-
`update_url` varchar(255) NOT NULL DEFAULT '',
1517-
`update_md5` varchar(255) NOT NULL DEFAULT '',
1518-
`update_dependencies` varchar(255) NOT NULL DEFAULT '',
1519-
`update_title` varchar(64) NOT NULL DEFAULT '',
1520-
`v1` tinyint(1) NOT NULL default '0',
1521-
`v2` tinyint(1) NOT NULL default '0',
1522-
`v3` tinyint(1) NOT NULL default '0',
1523-
`v4` tinyint(1) NOT NULL default '0',
1524-
`type` enum('full','update') NOT NULL default 'full',
1525-
PRIMARY KEY (`software_update_id`)
1526-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1527-
1528-
-- --------------------------------------------------------
1529-
1530-
--
1531-
-- Table structure for table `software_update_inst`
1532-
--
1533-
1534-
CREATE TABLE `software_update_inst` (
1535-
`software_update_inst_id` int(11) unsigned NOT NULL auto_increment,
1536-
`software_update_id` int(11) unsigned NOT NULL default '0',
1537-
`package_name` varchar(64) NOT NULL DEFAULT '',
1538-
`server_id` int(11) unsigned NOT NULL DEFAULT '0',
1539-
`status` enum('none','installing','installed','deleting','deleted','failed') NOT NULL default 'none',
1540-
PRIMARY KEY (`software_update_inst_id`),
1541-
UNIQUE KEY `software_update_id` (`software_update_id`,`package_name`,`server_id`)
1542-
) DEFAULT CHARSET=utf8 AUTO_INCREMENT=1 ;
1543-
1544-
-- --------------------------------------------------------
1545-
15461464
--
15471465
-- Table structure for table `spamfilter_policy`
15481466
--
@@ -2528,14 +2446,6 @@ INSERT INTO `help_faq_sections` VALUES (1,'General',0,NULL,NULL,NULL,NULL,NULL);
25282446

25292447
-- --------------------------------------------------------
25302448

2531-
--
2532-
-- Dumping data for table `software_repo`
2533-
--
2534-
2535-
INSERT INTO `software_repo` (`software_repo_id`, `sys_userid`, `sys_groupid`, `sys_perm_user`, `sys_perm_group`, `sys_perm_other`, `repo_name`, `repo_url`, `repo_username`, `repo_password`, `active`) VALUES (1, 1, 1, 'riud', 'riud', '', 'ISPConfig Addons', 'http://repo.ispconfig.org/addons/', '', '', 'n');
2536-
2537-
-- --------------------------------------------------------
2538-
25392449
--
25402450
-- Dumping data for table `spamfilter_policy`
25412451
--

install/tpl/config.inc.php.master

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ if( !empty($_SERVER['DOCUMENT_ROOT']) ) {
3333
Header("Pragma: no-cache");
3434
Header("Cache-Control: no-store, no-cache, max-age=0, must-revalidate");
3535
Header("Content-Type: text/html; charset=utf-8");
36-
36+
3737
//** Set a few php.ini values
3838
ini_set('register_globals',0);
3939
ini_set('magic_quotes_gpc', 0);
40-
40+
4141
if (isset($_REQUEST['GLOBALS']) || isset($_FILES['GLOBALS']) || isset($_REQUEST['s']) || isset($_REQUEST['s_old']) || isset($_REQUEST['conf'])) {
4242
die('Internal Error: var override attempt detected');
4343
exit;
@@ -127,8 +127,8 @@ $conf['init_scripts'] = '/etc/init.d';
127127
$conf['interface_modules_enabled'] = 'dashboard,mail,sites,dns,tools,help';
128128

129129
//** Demo mode
130-
/* The demo mode is an option to restrict certain actions in the interface like
131-
* changing the password of users with sys_userid < 3 etc. to be
130+
/* The demo mode is an option to restrict certain actions in the interface like
131+
* changing the password of users with sys_userid < 3 etc. to be
132132
* able to run the ISPConfig interface as online demo. It does not
133133
* affect the server part. The demo mode should be always set to false
134134
* on every normal installation
@@ -141,10 +141,6 @@ $conf['log_file'] = $conf['ispconfig_log_dir'].$conf['fs_div'].'ispconfig.log';
141141
$conf['log_priority'] = {ispconfig_log_priority}; // 0 = Debug, 1 = Warning, 2 = Error
142142

143143

144-
//** Allow software package installations
145-
$conf['software_updates_enabled'] = false;
146-
147-
148144
//** Themes
149145
$conf['theme'] = '{theme}';
150146
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...

install/tpl/security_settings.ini.master

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ admin_allow_del_cpuser=superadmin
1212
admin_allow_cpuser_group=superadmin
1313
admin_allow_firewall_config=superadmin
1414
admin_allow_osupdate=superadmin
15-
admin_allow_software_packages=superadmin
16-
admin_allow_software_repo=superadmin
1715
remote_api_allowed=yes
1816
password_reset_allowed=yes
1917
session_regenerate_id=yes
@@ -44,4 +42,3 @@ warn_new_admin=yes
4442
warn_passwd_change=no
4543
warn_shadow_change=no
4644
warn_group_change=no
47-

interface/lib/config.inc.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@
128128
$conf['log_priority'] = 0; // 0 = Debug, 1 = Warning, 2 = Error
129129

130130

131-
//** Allow software package installations
132-
$conf['software_updates_enabled'] = false;
133-
134-
135131
//** Themes
136132
$conf['theme'] = 'default';
137133
$conf['html_content_encoding'] = 'utf-8'; // example: utf-8, iso-8859-1, ...

interface/web/admin/form/software_package.tform.php

Lines changed: 0 additions & 128 deletions
This file was deleted.

0 commit comments

Comments
 (0)