config.php 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. $config->zahost->create = new stdclass();
  3. $config->zahost->create->requiredFields = 'name,hostType,extranet,cpuCores,memory,diskSize,vsoft';
  4. $config->zahost->create->ipFields = 'extranet';
  5. $config->zahost->defaultPort = '55001';
  6. $config->zahost->edit = new stdclass();
  7. $config->zahost->edit->requiredFields = 'name,hostType,cpuCores,memory,diskSize,vsoft';
  8. $config->zahost->imageListUrl = 'https://pkg.qucheng.com/zenagent/list.json';
  9. $config->zahost->cpuCoreList = array(1 => 1, 2 => 2, 4 => 4, 6 => 6, 8 => 8, 10 => 10, 12 => 12, 16 => 16, 24 => 24, 32 => 32, 64 => 64);
  10. $config->zahost->initBash = 'curl -sSL https://pkg.qucheng.com/zenagent/zagent.sh | bash /dev/stdin -k %s -z %s';
  11. global $lang;
  12. $config->zahost->search['module'] = 'zahost';
  13. $config->zahost->search['fields']['name'] = $lang->zahost->name;
  14. $config->zahost->search['fields']['id'] = $lang->zahost->id;
  15. $config->zahost->search['fields']['extranet'] = $lang->zahost->IP;
  16. $config->zahost->search['fields']['cpuCores'] = $lang->zahost->cpuCores;
  17. $config->zahost->search['fields']['memory'] = $lang->zahost->memory;
  18. $config->zahost->search['fields']['diskSize'] = $lang->zahost->diskSize;
  19. $config->zahost->search['fields']['hostType'] = $lang->zahost->type;
  20. $config->zahost->search['fields']['vsoft'] = $lang->zahost->vsoft;
  21. $config->zahost->search['fields']['status'] = $lang->zahost->status;
  22. $config->zahost->search['fields']['createdBy'] = $lang->zahost->createdBy;
  23. $config->zahost->search['fields']['createdDate'] = $lang->zahost->createdDate;
  24. $config->zahost->search['fields']['registerDate'] = $lang->zahost->registerDate;
  25. $config->zahost->search['fields']['editedBy'] = $lang->zahost->editedBy;
  26. $config->zahost->search['fields']['editedDate'] = $lang->zahost->editedDate;
  27. $config->zahost->search['params']['name'] = array('operator' => 'include', 'control' => 'input', 'values' => '');
  28. $config->zahost->search['params']['id'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  29. $config->zahost->search['params']['extranet'] = array('operator' => 'include', 'control' => 'input', 'values' => '');
  30. $config->zahost->search['params']['cpuCores'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  31. $config->zahost->search['params']['memory'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  32. $config->zahost->search['params']['diskSize'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  33. $config->zahost->search['params']['hostType'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->zahost->zaHostTypeList);
  34. $config->zahost->search['params']['vsoft'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->zahost->softwareList);
  35. $config->zahost->search['params']['status'] = array('operator' => '=', 'control' => 'select', 'values' => $lang->zahost->statusList);
  36. $config->zahost->search['params']['instanceNum'] = array('operator' => '=', 'control' => 'input', 'values' => '');
  37. $config->zahost->search['params']['createdBy'] = array('operator' => '=', 'control' => 'select', 'values' => 'users');
  38. $config->zahost->search['params']['createdDate'] = array('operator' => '=', 'control' => 'date', 'values' => '');
  39. $config->zahost->search['params']['registerDate'] = array('operator' => '=', 'control' => 'date', 'values' => '');
  40. $config->zahost->search['params']['editedBy'] = array('operator' => '=', 'control' => 'select', 'values' => 'users');
  41. $config->zahost->search['params']['editedDate'] = array('operator' => '=', 'control' => 'date', 'values' => '');
  42. $config->zahost->editor = new stdclass();
  43. $config->zahost->editor->create = array('id' => 'desc', 'tools' => 'simpleTools');
  44. $config->zahost->editor->edit = array('id' => 'desc', 'tools' => 'simpleTools');
  45. $config->zahost->editor->view = array('id' => 'comment,lastComment', 'tools' => 'simpleTools');
  46. $config->zahost->automation = new stdclass();
  47. $config->zahost->automation->zenAgentURL = 'https://github.com/easysoft/zenagent/blob/main/guide/deploy/index.md';
  48. $config->zahost->automation->ztfURL = 'https://ztf.im/';
  49. $config->zahost->automation->kvmURL = 'https://www.linux-kvm.org/page/Documents';
  50. $config->zahost->automation->nginxURL = 'http://nginx.org/en/docs/';
  51. $config->zahost->automation->novncURL = 'https://novnc.com/info.html';
  52. $config->zahost->automation->websockifyURL = 'https://github.com/novnc/websockify';
  53. $config->zahost->view = new stdclass();
  54. $config->zahost->view->operateList = array('browseImage', 'edit', 'delete');