forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_server_mysql.php
More file actions
71 lines (66 loc) · 3.42 KB
/
edit_server_mysql.php
File metadata and controls
71 lines (66 loc) · 3.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!-- Begin toolbar -->
<div class="toolbar">
<div class="toolbar-inner">
<div class="toolbar-buttons">
<a class="button button-secondary" id="btn-back" href="/list/server/">
<i class="fas fa-arrow-left status-icon blue"></i><?=_('Back');?>
</a>
</div>
<div class="toolbar-buttons">
<a href="#" class="button" data-action="submit" data-id="vstobjects">
<i class="fas fa-floppy-disk status-icon purple"></i><?=_('Save');?>
</a>
</div>
</div>
</div>
<!-- End toolbar -->
<div class="container animate__animated animate__fadeIn">
<form id="vstobjects" name="v_configure_server" method="post">
<input type="hidden" name="token" value="<?=$_SESSION['token']?>">
<input type="hidden" name="save" value="save">
<div class="form-container">
<h1 class="form-title"><?=_('Configuring Server');?>: <?=$v_service_name;?></h1>
<?php show_alert_message($_SESSION);?>
<div id="basic-options">
<div class="u-mb10">
<label for="v_max_connections" class="form-label">max_connections</label>
<input type="text" class="form-control" regexp="max_connections" prev_value="<?=htmlentities($v_max_connections)?>" name="v_max_connections" id="v_max_connections" value="<?=htmlentities($v_max_connections)?>">
</div>
<div class="u-mb10">
<label for="v_max_user_connections" class="form-label">max_user_connections</label>
<input type="text" class="form-control" regexp="max_user_connections" prev_value="<?=htmlentities($v_max_user_connections)?>" name="v_max_user_connections" id="v_max_user_connections" value="<?=htmlentities($v_max_user_connections)?>">
</div>
<div class="u-mb10">
<label for="v_wait_timeout" class="form-label">wait_timeout</label>
<input type="text" class="form-control" regexp="wait_timeout" prev_value="<?=htmlentities($v_wait_timeout)?>" name="v_wait_timeout" id="v_wait_timeout" value="<?=htmlentities($v_wait_timeout)?>">
</div>
<div class="u-mb10">
<label for="v_interactive_timeout" class="form-label">interactive_timeout</label>
<input type="text" class="form-control" regexp="interactive_timeout" prev_value="<?=htmlentities($v_interactive_timeout)?>" name="v_interactive_timeout" id="v_interactive_timeout" value="<?=htmlentities($v_interactive_timeout)?>">
</div>
<div class="u-mb20">
<label for="v_display_errors" class="form-label">max_allowed_packet</label>
<input type="text" class="form-control" regexp="max_allowed_packet" prev_value="<?=htmlentities($v_max_allowed_packet)?>" name="v_display_errors" id="v_display_errors" value="<?=htmlentities($v_max_allowed_packet)?>">
</div>
<div class="u-mb20">
<a href="javascript:toggleOptions();" class="button button-secondary"><?=_('Advanced options');?></a>
</div>
</div>
<div id="advanced-options" style="display:<?php if (empty($v_adv)) echo 'none';?> ;">
<div class="u-mb20">
<a href="javascript:toggleOptions();" class="button button-secondary"><?=_('Basic options');?></a>
</div>
<div class="u-mb20">
<label for="v_config" class="form-label"><?=$v_config_path;?></label>
<textarea class="form-control u-min-height300 u-allow-resize u-console" name="v_config" id="v_config"><?=$v_config;?></textarea>
</div>
<div class="form-check">
<input class="form-check-input" type="checkbox" name="v_restart" id="v_restart" checked>
<label for="v_restart">
<?=_('restart');?>
</label>
</div>
</div>
</div>
</form>
</div>