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
$records = $app->db->queryAllRecords('SELECT web_folder FROM `web_domain` WHERE `parent_domain_id` = ? AND `document_root` = ? AND web_folder != \'\' AND web_folder IS NOT NULL AND `server_id` = ?', $this->parent_domain['domain_id'], $this->parent_domain['document_root'], $conf['server_id']);
322
-
foreach($recordsas$record) {
322
+
foreach($recordsas$record) {
323
323
$options[] = 'skip='.$record['web_folder'];
324
324
}
325
325
@@ -400,12 +400,12 @@ private function _delete_jailkit_if_unused($parent_domain_id) {
400
400
401
401
// get jail directory
402
402
$parent_domain = $app->db->queryOneRecord("SELECT * FROM `web_domain` WHERE `domain_id` = ? OR `parent_domain_id` = ? AND `document_root` IS NOT NULL", $parent_domain_id, $parent_domain_id);
@@ -423,7 +423,7 @@ private function _delete_jailkit_if_unused($parent_domain_id) {
423
423
424
424
$options = array();
425
425
$records = $app->db->queryAllRecords('SELECT web_folder FROM `web_domain` WHERE `parent_domain_id` = ? AND `document_root` = ? AND web_folder != \'\' AND web_folder IS NOT NULL AND `server_id` = ?', $parent_domain_id, $parent_domain['document_root'], $conf['server_id']);
$records = $app->db->queryAllRecords('SELECT web_folder FROM `web_domain` WHERE `parent_domain_id` = ? AND `document_root` = ? AND web_folder != \'\' AND web_folder IS NOT NULL AND `server_id` = ?', $this->data['new']['parent_domain_id'], $this->data['new']['dir'], $conf['server_id']);
432
-
foreach($recordsas$record) {
432
+
foreach($recordsas$record) {
433
433
$options[] = 'skip='.$record['web_folder'];
434
434
}
435
435
@@ -578,14 +578,14 @@ private function _setup_ssh_rsa() {
@@ -625,7 +625,7 @@ private function _setup_ssh_rsa() {
625
625
if(is_array($old_keys)) {
626
626
foreach($old_keysas$key => $val) {
627
627
$k = array_search(trim($val), $existing_keys);
628
-
if($k !== false) {
628
+
if($k !== false) {
629
629
unset($existing_keys[$k]);
630
630
}
631
631
}
@@ -704,12 +704,12 @@ private function _delete_jailkit_if_unused($parent_domain_id) {
704
704
705
705
// get jail directory
706
706
$parent_domain = $app->db->queryOneRecord("SELECT * FROM `web_domain` WHERE `domain_id` = ? OR `parent_domain_id` = ? AND `document_root` IS NOT NULL", $parent_domain_id, $parent_domain_id);
@@ -727,7 +727,7 @@ private function _delete_jailkit_if_unused($parent_domain_id) {
727
727
728
728
$options = array();
729
729
$records = $app->db->queryAllRecords('SELECT web_folder FROM `web_domain` WHERE `parent_domain_id` = ? AND `document_root` = ? AND web_folder != \'\' AND web_folder IS NOT NULL AND `server_id` = ?', $parent_domain_id, $parent_domain['document_root'], $conf['server_id']);
0 commit comments