| | |
| | | } |
| | | |
| | | //* Get the data |
| | | $server_ids = array_unique($server_ids); |
| | | $server_ids = array(); |
| | | $web = $app->db->queryOneRecord("SELECT server_id FROM web_domain WHERE domain_id = ?", $this->form->id); |
| | | $databases = $app->db->queryAllRecords("SELECT server_id FROM web_database WHERE parent_domain_id = ?", $this->form->id); |
| | | if($app->functions->intval($web['server_id']) > 0) $server_ids[] = $app->functions->intval($web['server_id']); |
| | |
| | | |
| | | $rec['download_available'] = true; |
| | | if($rec['server_id'] != $web['server_id']) $rec['download_available'] = false; |
| | | |
| | | if($rec['filesize'] > 0){ |
| | | $rec['filesize'] = $app->functions->currency_format($rec['filesize']/(1024*1024), 'client').' MB'; |
| | | } |
| | | |
| | | $records_new[] = $rec; |
| | | } |