Skip to content

Commit 8b49ff7

Browse files
author
Marius Cramer
committed
- ported some patches
1 parent 0998a32 commit 8b49ff7

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

interface/web/dashboard/ajax_get_json.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,19 +55,19 @@
5555
$result[] = _search('client', 'reseller', "AND limit_client != 0");
5656

5757
// web sites
58-
$result[] = _search('sites', 'web_domain', "AND type = 'vhost'");
58+
$result[] = _search('sites', 'web_vhost_domain', "AND type = 'vhost'");
5959

6060
// subdomains
61-
$result[] = _search('sites', 'web_subdomain', "AND type = 'subdomain'");
61+
$result[] = _search('sites', 'web_childdomain', "AND type = 'subdomain'", 'type=subdomain');
6262

6363
// web site aliases
64-
$result[] = _search('sites', 'web_aliasdomain', "AND type = 'alias'");
64+
$result[] = _search('sites', 'web_childdomain', "AND type = 'alias'", 'type=aliasdomain');
6565

6666
// vhostsubdomains
67-
$result[] = _search('sites', 'web_vhost_subdomain', "AND type = 'vhostsubdomain'");
67+
$result[] = _search('sites', 'web_vhost_domain', "AND type = 'vhostsubdomain'", 'type=subdomain');
6868

6969
// vhostaliasdomains
70-
$result[] = _search('sites', 'web_vhost_aliasdomain', "AND type = 'vhostalias'");
70+
$result[] = _search('sites', 'web_vhost_domain', "AND type = 'vhostalias'", 'type=aliasdomain');
7171

7272
// FTP users
7373
$result[] = _search('sites', 'ftp_user');
@@ -134,17 +134,21 @@
134134

135135
//}
136136

137-
function _search($module, $section, $additional_sql = ''){
137+
function _search($module, $section, $additional_sql = '', $params = ''){
138138
global $app, $q, $authsql, $modules;
139139

140140
$result_array = array('cheader' => array(), 'cdata' => array());
141141
if(in_array($module, $modules)){
142142
$search_fields = array();
143143
$desc_fields = array();
144144
if(is_file('../'.$module.'/form/'.$section.'.tform.php')){
145-
include_once '../'.$module.'/form/'.$section.'.tform.php';
145+
include '../'.$module.'/form/'.$section.'.tform.php';
146146

147147
$category_title = $form["title"];
148+
if($params == 'type=subdomain' && $section == 'web_childdomain') $category_title = 'Subdomain';
149+
if($params == 'type=aliasdomain' && $section == 'web_childdomain') $category_title = 'Aliasdomain';
150+
if($params == 'type=subdomain' && $section == 'web_vhost_domain') $category_title = 'Subdomain (Vhost)';
151+
if($params == 'type=aliasdomain' && $section == 'web_vhost_domain') $category_title = 'Aliasdomain (Vhost)';
148152
$form_file = $form["action"];
149153
$db_table = $form["db_table"];
150154
$db_table_idx = $form["db_table_idx"];
@@ -205,7 +209,7 @@ function _search($module, $section, $additional_sql = ''){
205209

206210
$result_array['cdata'][] = array('title' => $wb[$title_key.'_txt'].': '.$result[$title_key],
207211
'description' => $description,
208-
'onclick' => "ISPConfig.capp('".$module."','".$module."/".$form_file."?id=".$result[$db_table_idx]."');",
212+
'onclick' => "ISPConfig.capp('".$module."','".$module."/".$form_file.urlencode("?id=".$result[$db_table_idx]).($params != ''? urlencode('&'.$params) : '')."');",
209213
'fill_text' => strtolower($result[$title_key])
210214
);
211215
}

server/plugins-available/cron_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ function _write_crontab() {
210210
$log_root = '';
211211
if($job['log'] == 'y') {
212212
if($job['type'] != 'chrooted') $log_root = $this->parent_domain['document_root'];
213-
$log_root .= '/log';
213+
$log_root .= '/private';
214214

215215
$log_target = '>>' . $log_root . '/cron.log 2>>' . $log_root . '/cron_error.log';
216216
$log_wget_target = $log_root . '/cron_wget.log';

0 commit comments

Comments
 (0)