You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LEFT JOIN server_php ON web_domain.server_php_id = server_php.server_php_id
99
+
WHERE `domain_id` = ?", $data["new"]["parent_domain_id"]);
97
100
if(!$parent_domain["domain_id"]) {
98
101
$app->log("Parent domain not found", LOGLEVEL_WARN);
99
102
return0;
@@ -222,7 +225,10 @@ function _write_crontab() {
222
225
$chr_cmd_count = 0;
223
226
224
227
//* read all active cron jobs from database and write them to file
225
-
$cron_jobs = $app->db->queryAllRecords("SELECT c.`id`, c.`run_min`, c.`run_hour`, c.`run_mday`, c.`run_month`, c.`run_wday`, c.`command`, c.`type`, c.`log`, `web_domain`.`domain` as `domain` FROM `cron` as c INNER JOIN `web_domain` ON `web_domain`.`domain_id` = c.`parent_domain_id` WHERE c.`parent_domain_id` = ? AND c.`active` = 'y'", $this->parent_domain["domain_id"]);
Copy file name to clipboardExpand all lines: server/plugins-available/shelluser_base_plugin.inc.php
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -80,7 +80,9 @@ function insert($event_name, $data) {
80
80
}
81
81
82
82
//* Check if the resulting path is inside the docroot
83
-
$web = $app->db->queryOneRecord("SELECT * FROM web_domain LEFT JOIN server_php ON web_domain.server_php_id = server_php.server_php_id WHERE `domain_id` = ?", $data["new"]["parent_domain_id"]);
83
+
$web = $app->db->queryOneRecord("SELECT * FROM web_domain
84
+
LEFT JOIN server_php ON web_domain.server_php_id = server_php.server_php_id
85
+
WHERE `domain_id` = ?", $data["new"]["parent_domain_id"]);
84
86
85
87
$this->web = $web;
86
88
@@ -223,7 +225,9 @@ function update($event_name, $data) {
223
225
}
224
226
225
227
//* Check if the resulting path is inside the docroot
226
-
$web = $app->db->queryOneRecord("SELECT * FROM web_domain LEFT JOIN server_php ON web_domain.server_php_id = server_php.server_php_id WHERE `domain_id` = ?", $data["new"]["parent_domain_id"]);
228
+
$web = $app->db->queryOneRecord("SELECT * FROM web_domain
229
+
LEFT JOIN server_php ON web_domain.server_php_id = server_php.server_php_id
230
+
WHERE `domain_id` = ?", $data["new"]["parent_domain_id"]);
0 commit comments