We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c9382e commit f5ea1b4Copy full SHA for f5ea1b4
install/sql/incremental/upd_0015.sql
@@ -0,0 +1,3 @@
1
+ALTER TABLE `cron` CHANGE `command` `command` TEXT NOT NULL;
2
+ALTER TABLE `client` ADD `limit_openvz_vm` int(11) NOT NULL DEFAULT '0' AFTER `limit_mailmailinglist` ,
3
+ADD `limit_openvz_vm_template_id` int(11) NOT NULL DEFAULT '0' AFTER `limit_openvz_vm`;
install/sql/ispconfig3.sql
@@ -130,6 +130,8 @@ CREATE TABLE `client` (
130
`limit_traffic_quota` int(11) NOT NULL DEFAULT '-1',
131
`limit_client` int(11) NOT NULL DEFAULT '0',
132
`limit_mailmailinglist` int(11) NOT NULL DEFAULT '-1',
133
+ `limit_openvz_vm` int(11) NOT NULL DEFAULT '0',
134
+ `limit_openvz_vm_template` int(11) NOT NULL DEFAULT '0',
135
`parent_client_id` int(11) unsigned NOT NULL DEFAULT '0',
136
`username` varchar(64) DEFAULT NULL,
137
`password` varchar(64) DEFAULT NULL,
@@ -222,7 +224,7 @@ CREATE TABLE `cron` (
222
224
`server_id` int(11) unsigned NOT NULL default '0',
223
225
`parent_domain_id` int(11) unsigned NOT NULL default '0',
226
`type` enum('url','chrooted','full') NOT NULL default 'url',
- `command` varchar(255) NOT NULL,
227
+ `command` TEXT NOT NULL,
228
`run_min` varchar(100) NULL,
229
`run_hour` varchar(100) NULL,
230
`run_mday` varchar(100) NULL,
interface/web/vm/form/openvz_vm.tform.php
@@ -164,6 +164,7 @@
164
)
165
);
166
167
+if($_SESSION["s"]["user"]["typ"] == 'admin') {
168
$form["tabs"]['advanced'] = array (
169
'title' => "Advanced",
170
'width' => 100,
@@ -292,6 +293,7 @@
292
293
##################################
294
295
296
+}
297
298
299
?>
interface/web/vm/lib/module.conf.php
@@ -14,6 +14,7 @@
14
'link' => 'vm/openvz_vm_list.php',
15
'html_id' => 'openvz_vm_list');
16
17
18
$items[] = array( 'title' => 'OS Templates',
19
'target' => 'content',
20
'link' => 'vm/openvz_ostemplate_list.php',
@@ -28,7 +29,7 @@
28
29
30
'link' => 'vm/openvz_ip_list.php',
31
'html_id' => 'openvz_ip_list');
-
32
33
if(count($items))
34
{
35
$module['nav'][] = array( 'title' => 'OpenVZ',
interface/web/vm/openvz_ip_del.php
@@ -44,6 +44,7 @@
44
45
//* Check permissions for module
46
$app->auth->check_module_permissions('vm');
47
+if($_SESSION["s"]["user"]["typ"] != 'admin') die('permission denied');
48
49
$app->uses('tpl,tform');
50
$app->load('tform_actions');
interface/web/vm/openvz_ip_edit.php
@@ -43,6 +43,7 @@
43
// Loading classes
interface/web/vm/openvz_ip_list.php
$app->uses('listform_actions');
interface/web/vm/openvz_ostemplate_del.php
interface/web/vm/openvz_ostemplate_edit.php
interface/web/vm/openvz_ostemplate_list.php
0 commit comments