| | |
| | | $client_id = $app->functions->intval($client["client_id"]); |
| | | } |
| | | |
| | | $tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = $client_group_id"); |
| | | $tmp = $app->db->queryOneRecord("SELECT userid FROM sys_user WHERE default_group = ?", $client_group_id); |
| | | $client_user_id = $app->functions->intval(($tmp['userid'] > 0)?$tmp['userid']:1); |
| | | |
| | | // Set the values for document_root, system_user and system_group |
| | |
| | | if(is_array($records) && !empty($records)){ |
| | | foreach($records as $rec){ |
| | | $app->db->datalogUpdate('aps_instances_settings', "value = '".$app->db->quote($page_form->dataRecord["domain"])."'", 'id', $rec['id']); |
| | | // Reinstall of package needed? |
| | | //$app->db->datalogUpdate('aps_instances', "instance_status = '1'", 'id', $rec['instance_id']); |
| | | } |
| | | } |
| | | unset($records); |