edit_server_php.php 4.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <!-- Begin toolbar -->
  2. <div class="toolbar">
  3. <div class="toolbar-inner">
  4. <div class="toolbar-buttons">
  5. <a class="button button-secondary button-back js-button-back" href="/list/server/">
  6. <i class="fas fa-arrow-left icon-blue"></i><?= _("Back") ?>
  7. </a>
  8. </div>
  9. <div class="toolbar-buttons">
  10. <button type="submit" class="button" form="main-form">
  11. <i class="fas fa-floppy-disk icon-purple"></i><?= _("Save") ?>
  12. </button>
  13. </div>
  14. </div>
  15. </div>
  16. <!-- End toolbar -->
  17. <div class="container animate__animated animate__fadeIn">
  18. <form id="main-form" name="v_configure_server" method="post">
  19. <input type="hidden" name="token" value="<?= $_SESSION["token"] ?>">
  20. <input type="hidden" name="save" value="save">
  21. <div class="form-container">
  22. <h1 class="u-mb20"><?= _("Configure Server") ?>: PHP</h1>
  23. <?php show_alert_message($_SESSION); ?>
  24. <div class="js-basic-options">
  25. <div class="u-mb10">
  26. <label for="v_max_execution_time" class="form-label">max_execution_time</label>
  27. <input type="text" class="form-control" data-regexp="max_execution_time" data-prev-value="<?= htmlentities($v_max_execution_time) ?>" name="v_max_execution_time" id="v_max_execution_time" value="<?= htmlentities($v_max_execution_time) ?>">
  28. </div>
  29. <div class="u-mb10">
  30. <label for="v_worker_connections" class="form-label">max_input_time</label>
  31. <input type="text" class="form-control" data-regexp="max_input_time" data-prev-value="<?= htmlentities($v_max_input_time) ?>" name="v_worker_connections" id="v_worker_connections" value="<?= htmlentities($v_max_input_time) ?>">
  32. </div>
  33. <div class="u-mb10">
  34. <label for="v_memory_limit" class="form-label">memory_limit</label>
  35. <input type="text" class="form-control" data-regexp="memory_limit" data-prev-value="<?= htmlentities($v_memory_limit) ?>" name="v_memory_limit" id="v_memory_limit" value="<?= htmlentities($v_memory_limit) ?>">
  36. </div>
  37. <div class="u-mb10">
  38. <label for="v_error_reporting" class="form-label">error_reporting</label>
  39. <input type="text" class="form-control" data-regexp="error_reporting" data-prev-value="<?= htmlentities($v_error_reporting) ?>" name="v_error_reporting" id="v_error_reporting" value="<?= htmlentities($v_error_reporting) ?>">
  40. </div>
  41. <div class="u-mb10">
  42. <label for="v_display_errors" class="form-label">display_errors</label>
  43. <input type="text" class="form-control" data-regexp="display_errors" data-prev-value="<?= htmlentities($v_display_errors) ?>" name="v_display_errors" id="v_display_errors" value="<?= htmlentities($v_display_errors) ?>">
  44. </div>
  45. <div class="u-mb10">
  46. <label for="v_post_max_size" class="form-label">post_max_size</label>
  47. <input type="text" class="form-control" data-regexp="post_max_size" data-prev-value="<?= htmlentities($v_post_max_size) ?>" name="v_post_max_size" id="v_post_max_size" value="<?= htmlentities($v_post_max_size) ?>">
  48. </div>
  49. <div class="u-mb20">
  50. <label for="v_upload_max_filesize" class="form-label">upload_max_filesize</label>
  51. <input type="text" class="form-control" data-regexp="upload_max_filesize" data-prev-value="<?= htmlentities($v_upload_max_filesize) ?>" name="v_upload_max_filesize" id="v_upload_max_filesize" value="<?= htmlentities($v_upload_max_filesize) ?>">
  52. </div>
  53. <div class="u-mb20">
  54. <button type="button" class="button button-secondary js-toggle-options">
  55. <?= _("Advanced Options") ?>
  56. </button>
  57. </div>
  58. </div>
  59. <div class="js-advanced-options <?php if (empty($v_adv)) echo 'u-hidden'; ?>">
  60. <div class="u-mb20">
  61. <button type="button" class="button button-secondary js-toggle-options">
  62. <?= _("Basic Options") ?>
  63. </button>
  64. </div>
  65. <div class="u-mb20">
  66. <label for="v_config" class="form-label"><?= $v_config_path ?></label>
  67. <textarea class="form-control u-min-height600 u-allow-resize u-console js-advanced-textarea" name="v_config" id="v_config"><?= $v_config ?></textarea>
  68. </div>
  69. <div class="form-check">
  70. <input class="form-check-input" type="checkbox" name="v_restart" id="v_restart" checked>
  71. <label for="v_restart">
  72. <?= _("Restart") ?>
  73. </label>
  74. </div>
  75. </div>
  76. </div>
  77. </form>
  78. </div>