|
30 | 30 | $new_conf = $mktemp_output[0]; |
31 | 31 | $fp = fopen($new_conf, 'w'); |
32 | 32 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config'])); |
33 | | - fclose($new_conf); |
| 33 | + fclose($fp); |
34 | 34 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot ".$v_restart, $output, $return_var); |
35 | 35 | check_return_code($return_var,$output); |
36 | 36 | unset($output); |
|
43 | 43 | $new_conf = $mktemp_output[0]; |
44 | 44 | $fp = fopen($new_conf, 'w'); |
45 | 45 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config1'])); |
46 | | - fclose($new_conf); |
| 46 | + fclose($fp); |
47 | 47 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-1 " .$v_restart, $output, $return_var); |
48 | 48 | check_return_code($return_var,$output); |
49 | 49 | unset($output); |
|
56 | 56 | $new_conf = $mktemp_output[0]; |
57 | 57 | $fp = fopen($new_conf, 'w'); |
58 | 58 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config2'])); |
59 | | - fclose($new_conf); |
| 59 | + fclose($fp); |
60 | 60 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-2 " .$v_restart, $output, $return_var); |
61 | 61 | check_return_code($return_var,$output); |
62 | 62 | unset($output); |
|
69 | 69 | $new_conf = $mktemp_output[0]; |
70 | 70 | $fp = fopen($new_conf, 'w'); |
71 | 71 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config3'])); |
72 | | - fclose($new_conf); |
| 72 | + fclose($fp); |
73 | 73 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-3 " .$v_restart, $output, $return_var); |
74 | 74 | check_return_code($return_var,$output); |
75 | 75 | unset($output); |
|
82 | 82 | $new_conf = $mktemp_output[0]; |
83 | 83 | $fp = fopen($new_conf, 'w'); |
84 | 84 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config4'])); |
85 | | - fclose($new_conf); |
| 85 | + fclose($fp); |
86 | 86 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-4 " .$v_restart, $output, $return_var); |
87 | 87 | check_return_code($return_var,$output); |
88 | 88 | unset($output); |
|
95 | 95 | $new_conf = $mktemp_output[0]; |
96 | 96 | $fp = fopen($new_conf, 'w'); |
97 | 97 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config5'])); |
98 | | - fclose($new_conf); |
| 98 | + fclose($fp); |
99 | 99 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-5 " .$v_restart, $output, $return_var); |
100 | 100 | check_return_code($return_var,$output); |
101 | 101 | unset($output); |
|
108 | 108 | $new_conf = $mktemp_output[0]; |
109 | 109 | $fp = fopen($new_conf, 'w'); |
110 | 110 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config6'])); |
111 | | - fclose($new_conf); |
| 111 | + fclose($fp); |
112 | 112 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-6 " .$v_restart, $output, $return_var); |
113 | 113 | check_return_code($return_var,$output); |
114 | 114 | unset($output); |
|
121 | 121 | $new_conf = $mktemp_output[0]; |
122 | 122 | $fp = fopen($new_conf, 'w'); |
123 | 123 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config7'])); |
124 | | - fclose($new_conf); |
| 124 | + fclose($fp); |
125 | 125 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-7 " .$v_restart, $output, $return_var); |
126 | 126 | check_return_code($return_var,$output); |
127 | 127 | unset($output); |
|
134 | 134 | $new_conf = $mktemp_output[0]; |
135 | 135 | $fp = fopen($new_conf, 'w'); |
136 | 136 | fwrite($fp, str_replace("\r\n", "\n", $_POST['v_config8'])); |
137 | | - fclose($new_conf); |
| 137 | + fclose($fp); |
138 | 138 | exec (VESTA_CMD."v-change-sys-service-config ".$new_conf." dovecot-8 " .$v_restart, $output, $return_var); |
139 | 139 | check_return_code($return_var,$output); |
140 | 140 | unset($output); |
|
0 commit comments