edit_server.html 90 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-unit-toolbar__buttonstrip">
  4. <a class="ui-button cancel" dir="ltr" id="btn-back" href="/list/server/"><i class="fas fa-arrow-left status-icon blue"></i><?=_('Back')?></a>
  5. </div>
  6. <div class="l-unit-toolbar__buttonstrip float-right">
  7. <a href="#" class="ui-button" data-action="submit" data-id="vstobjects"><i class="fas fa-save status-icon purple"></i><?=_('Save')?></a>
  8. </div>
  9. </div>
  10. </div>
  11. <div class="l-separator"></div>
  12. <div class="l-center animated fadeIn">
  13. <?php
  14. $back = $_SESSION['back'];
  15. if (empty($back)) {
  16. $back = "location.href='/list/server/'";
  17. } else {
  18. $back = "location.href='".$back."'";
  19. }
  20. ?>
  21. <form id="vstobjects" name="v_configure_server" method="post">
  22. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  23. <input type="hidden" name="save" value="save" />
  24. <table class="data mode-add">
  25. <tr class="data-add">
  26. <td class="data-dotted">
  27. <table class="data-col1">
  28. <tr><td></td></tr>
  29. </table>
  30. </td>
  31. <td class="data-dotted">
  32. <table class="data-col2" width="600px">
  33. <tr>
  34. <td class="step-top">
  35. <span class="page-title"><?=_('Configuring Server')?></span>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td>
  40. <?php
  41. if (!empty($_SESSION['error_msg'])) {
  42. echo "<span class=\"vst-error\"> <i class=\"fas fa-exclamation-circle status-icon red\"></i> ".htmlentities($_SESSION['error_msg'])."</span>";
  43. } else {
  44. if (!empty($_SESSION['ok_msg'])) {
  45. echo "<span class=\"vst-ok\"> <i class=\"fas fa-check-circle status-icon green\"></i> ".$_SESSION['ok_msg']."</span>";
  46. }
  47. }
  48. ?>
  49. <br /><br />
  50. </td>
  51. </tr>
  52. <tr>
  53. <td class="vst-text input-label step-top advanced-options">
  54. <a href="javascript:elementHideShow('basic');" class="vst-text">
  55. <i class="fas fa-cog"></i><b><?php print _('Basic options');?> <img src="/images/arrow.png"></b>
  56. </a>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="vst-text input-label step-left">
  61. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="basic">
  62. <td class="vst-text step-top">
  63. <?php print _('Hostname') ?>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td>
  68. <input type="text" size="20" class="vst-input" name="v_hostname" value="<?=htmlentities(trim($v_hostname, "'"))?>">
  69. <br><br>
  70. </td>
  71. </tr>
  72. <tr>
  73. <td class="vst-text input-label">
  74. <?php print _('Time Zone');?>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td>
  79. <select class="vst-list" name="v_timezone">
  80. <?php
  81. foreach ($v_timezones as $key => $value) {
  82. echo "\t\t\t\t<option value=\"".$key."\"";
  83. if ((!empty($v_timezone)) && ( $key == $v_timezone)){
  84. echo ' selected' ;
  85. }
  86. if ((!empty($v_timezone)) && ( $key == $_POST['v_timezone'])){
  87. echo ' selected' ;
  88. }
  89. echo ">".$value."</option>\n";
  90. }
  91. ?>
  92. </select>
  93. <br><br>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td class="vst-text input-label">
  98. <?php print _('Theme') ?>
  99. </td>
  100. </tr>
  101. <tr>
  102. <td>
  103. <select class="vst-list" name="v_theme">
  104. <?php
  105. foreach ($theme as $key => $value) {
  106. echo "\t\t\t\t<option value=\"".$value."\"";
  107. if ((!empty($_SESSION['THEME'])) && ( $value == $_SESSION['THEME'])){
  108. echo ' selected' ;
  109. }
  110. if ((!empty($_SESSION['THEME'])) && ( $value == $_POST['v_theme'])){
  111. echo ' selected' ;
  112. }
  113. echo ">".$value."</option>\n";
  114. }
  115. ?>
  116. </select>
  117. </td>
  118. </tr>
  119. <tr>
  120. <td class="vst-text input-label">
  121. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_policy_user_change_theme" <?php if ((isset($_SESSION['POLICY_USER_CHANGE_THEME'])) && (!empty($_SESSION['POLICY_USER_CHANGE_THEME'])) && ($_SESSION['POLICY_USER_CHANGE_THEME'] == "no")) echo "checked=yes" ?>><?php print _('Set as selected theme for all users');?></label>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td class="vst-text input-label step-top">
  126. <?php print _('Default Language');?>
  127. </td>
  128. </tr>
  129. <tr>
  130. <td>
  131. <select class="vst-list" name="v_language">
  132. <?php
  133. foreach ($languages as $key => $value) {
  134. echo "\n\t\t\t\t\t\t\t\t\t<option value=\"".$key."\"";
  135. if ( $key == $v_language ){
  136. echo 'selected' ;
  137. }
  138. if (( $key == $_SESSION['LANGUAGE'] && (empty($v_language)) )) {
  139. echo 'selected' ;
  140. }
  141. echo ">".htmlentities($value)."</option>\n";
  142. }
  143. ?>
  144. </select>
  145. </td>
  146. </tr>
  147. <tr>
  148. <td class="vst-text input-label">
  149. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_language_update"><?php print _('SYSTEM_SET_DEFAULT_LANGUAGE');?></label>
  150. </td>
  151. </tr>
  152. <?php if ($_SESSION['RELEASE_BRANCH'] != "release") { ?>
  153. <tr>
  154. <td>
  155. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_debug_mode" <?php if ((isset($_SESSION['DEBUG_MODE'])) && (!empty($_SESSION['DEBUG_MODE'])) && ($_SESSION['DEBUG_MODE'] == "true")) echo "checked=yes" ?>><?php print _('Enable debug mode');?></label>
  156. </td>
  157. </tr>
  158. <?php } ?>
  159. <tr>
  160. <td>
  161. <br><br>
  162. </td>
  163. </tr>
  164. </table>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="vst-text input-label step-top advanced-options">
  169. <a href="javascript:elementHideShow('version');" class="vst-text">
  170. <i class="fas fa-code-branch"></i><b><?php print _('Updates');?> <img src="/images/arrow.png"></b>
  171. </a>
  172. </td>
  173. </tr>
  174. <td class="vst-text input-label step-left">
  175. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="version">
  176. <tr>
  177. <td class="vst-text step-top">
  178. <?php print _('Version'); ?>: <span class="optional"><?php echo $_SESSION['VERSION']; ?></span>
  179. </td>
  180. </tr>
  181. <?php if ($_SESSION['RELEASE_BRANCH'] !== 'release') {?>
  182. <tr>
  183. <td class="vst-text">
  184. <?php print _('Release'); ?>: <span class="optional"><?php echo $_SESSION['RELEASE_BRANCH'] ?></span>
  185. </td>
  186. </tr>
  187. <?}?>
  188. <tr>
  189. <td class="vst-text input-label">
  190. <?php print _('Options'); ?>
  191. </td>
  192. </tr>
  193. <tr>
  194. <td>
  195. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_upgrade_send_notification_email" <?php if ((isset($_SESSION['UPGRADE_SEND_EMAIL'])) && (!empty($_SESSION['UPGRADE_SEND_EMAIL'])) && ($_SESSION['UPGRADE_SEND_EMAIL'] == "true")) echo "checked=yes" ?>><?php print _('SYSTEM_UPGRADE_SEND_NOTIFICATION_EMAIL');?></label>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td>
  200. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_upgrade_send_email_log" <?php if ((isset($_SESSION['UPGRADE_SEND_EMAIL_LOG'])) && (!empty($_SESSION['UPGRADE_SEND_EMAIL_LOG'])) && ($_SESSION['UPGRADE_SEND_EMAIL_LOG'] == "true")) echo "checked=yes" ?>><?php print _('SYSTEM_UPGRADE_SEND_EMAIL_LOG');?></label>
  201. </td>
  202. </tr>
  203. <tr>
  204. <td>
  205. <br />
  206. </td>
  207. </tr>
  208. </table>
  209. </td>
  210. </tr>
  211. <tr>
  212. <td class="vst-text input-label step-top advanced-options">
  213. <a href="javascript:elementHideShow('web');" class="vst-text">
  214. <i class="fas fa-globe-americas"></i><b><?php print _('Web Server');?> <img src="/images/arrow.png"></b>
  215. </a>
  216. </td>
  217. </tr>
  218. <tr>
  219. <td class="vst-text input-label step-left">
  220. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="web" class="step-top">
  221. <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
  222. <tr>
  223. <td class="vst-text">
  224. <?php print _('Proxy Server') ?>: <span class="optional"><?php echo $_SESSION['PROXY_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  225. </td>
  226. </tr>
  227. <?php } ?>
  228. <?php if (!empty($_SESSION['WEB_SYSTEM'])) { ?>
  229. <tr>
  230. <td class="vst-text">
  231. <?php print _('Web Server') ?>: <span class="optional"><?php echo $_SESSION['WEB_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  232. </td>
  233. </tr>
  234. <?php } ?>
  235. <?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
  236. <tr>
  237. <td class="vst-text">
  238. <?php print _('Backend Server') ?>: <span class="optional"><?php echo $_SESSION['WEB_BACKEND']; ?> <a href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  239. </td>
  240. </tr>
  241. <?php } ?>
  242. <?php if (!empty($_SESSION['WEB_BACKEND_POOL'])) { ?>
  243. <tr>
  244. <td class="vst-text">
  245. <?php print _('Backend Pool Mode') ?>: <span class="optional"><?php echo $_SESSION['WEB_BACKEND_POOL']; ?></span>
  246. </td>
  247. </tr>
  248. <?php } ?>
  249. <?php if(count($v_php_versions)): ?>
  250. <tr>
  251. <td class="vst-text step-top">
  252. <?php print _('Enabled multi PHP versions') ?>
  253. <span class="alert alert-info alert-with-icon">
  254. <i class="fas fa-info"></i>
  255. <?=_('Please wait while php is installed or removed')?>
  256. </span>
  257. </td>
  258. </tr>
  259. <?php foreach($v_php_versions as $php_version): ?>
  260. <tr>
  261. <td class="vst-text input-label">
  262. <input type="checkbox" size="20" class="vst-checkbox"
  263. <?=$php_version->installed?'checked':''; ?>
  264. <?=$php_version->protected?'disabled':''; ?>
  265. id="<?=$php_version->name?>"
  266. name="v_php_versions[<?=$php_version->tpl?>]">
  267. <label for="<?=$php_version->name?>"><?=$php_version->name?></label>
  268. </td>
  269. </tr>
  270. <?php foreach($php_version->usedby as $wd_user => $wd_domains ): ?>
  271. <?php foreach($wd_domains as $wd_domain ): ?>
  272. <tr>
  273. <td class="vst-text" style="border: 1px lightgrey; padding:0 10px;">
  274. <span>
  275. <i class="fas fa-user"></i>
  276. <?=$wd_user;?>
  277. </span>
  278. <span class="optional" style="float:right"><?=$wd_domain;?></span>
  279. </td>
  280. </tr>
  281. <?php endforeach; ?>
  282. <?php endforeach; ?>
  283. <?php endforeach; ?>
  284. <?php endif; ?>
  285. <tr><td><br /></td></tr>
  286. </table>
  287. </td>
  288. </tr>
  289. <tr>
  290. <td class="vst-text input-label step-top advanced-options">
  291. <a href="javascript:elementHideShow('dns');" class="vst-text">
  292. <i class="fas fa-atlas"></i><b><?php print _('DNS Server');?> <img src="/images/arrow.png"></b>
  293. </a>
  294. </td>
  295. </tr>
  296. <tr>
  297. <td class="vst-text input-label step-left">
  298. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="dns">
  299. <tr>
  300. <td class="vst-text step-top">
  301. <?php print _('DNS Server') ?>: <span class="optional"><?php echo $_SESSION['DNS_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['DNS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  302. </td>
  303. </tr>
  304. <tr>
  305. <td class="vst-text">
  306. <?php print _('DNS Cluster');?>: <span class="optional"><? if ($v_dns_cluster == 'yes') { echo 'Yes'; } else { echo 'No'; } ?></span>
  307. </td>
  308. </tr>
  309. <?php if ($v_dns_cluster = 'yes') {
  310. $i = 0;
  311. foreach ($dns_cluster as $key => $value) {
  312. $i++;
  313. ?>
  314. <tr>
  315. <td class="vst-text">
  316. <?php print _('Host'). ' #'.$i ?>
  317. </td>
  318. </tr>
  319. <tr>
  320. <td class="vst-text">
  321. <input type="text" size="20" class="vst-input" name="v_dns_remote_host" value="<?php echo $key; ?>" disabled>
  322. </td>
  323. </tr>
  324. <?php }} ?>
  325. <tr>
  326. <td><br></td>
  327. </tr>
  328. </table>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td class="vst-text input-label step-top advanced-options">
  333. <a href="javascript:elementHideShow('mail');" class="vst-text">
  334. <i class="fas fa-mail-bulk"></i><b><?php print _('Mail Server');?> <img src="/images/arrow.png"></b>
  335. </a>
  336. </td>
  337. </tr>
  338. <tr>
  339. <td class="vst-text input-label step-left">
  340. <table style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;" id="mail">
  341. <tr>
  342. <td class="vst-text step-top">
  343. <?php print _('Mail Server') ?>: <span class="optional"><?php echo $_SESSION['MAIL_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['MAIL_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  344. </td>
  345. </tr>
  346. <?php if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) { ?>
  347. <tr>
  348. <td class="vst-text">
  349. <?php print _('Antivirus') ?>: <span class="optional"><?php echo $_SESSION['ANTIVIRUS_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['ANTIVIRUS_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  350. </td>
  351. </tr>
  352. <?php } ?>
  353. <?php if (!empty($_SESSION['ANTISPAM_SYSTEM'])) { ?>
  354. <tr>
  355. <td class="vst-text">
  356. <?php print _('AntiSpam') ?>: <span class="optional"><?php echo $_SESSION['ANTISPAM_SYSTEM']; ?> <a href="/edit/server/<? echo $_SESSION['ANTISPAM_SYSTEM'] ?>/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a></span>
  357. </td>
  358. </tr>
  359. <?php } ?>
  360. <?php if($_SESSION['WEBMAIL_SYSTEM']){?>
  361. <tr>
  362. <td class="vst-text step-top">
  363. <?php print _('Webmail URL') ?> <span class="hint">(<?php echo $_SESSION['WEBMAIL_ALIAS'];?>.example.com)</span>
  364. </td>
  365. </tr>
  366. <tr>
  367. <td>
  368. <input type="text" size="20" class="vst-input" name="v_webmail_alias" value="<?php echo $_SESSION['WEBMAIL_ALIAS']; ?>">
  369. <br><br>
  370. </td>
  371. </tr>
  372. <?php } ?>
  373. <tr>
  374. <td class="vst-text">
  375. <label>
  376. <input type="checkbox" size="20" class="vst-checkbox" name="v_smtp_relay" <?php if ($v_smtp_relay == 'true') echo "checked=yes"; ?> onclick="javascript:elementHideShow('smtp_relay_table');"><?php print _('Global SMTP Relay');?>
  377. </label>
  378. </td>
  379. </tr>
  380. <tr>
  381. <td class="step-left">
  382. <table style="display:<?php if ($v_smtp_relay == 'true') {echo 'block';} else {echo 'none';} ?>;" id="smtp_relay_table">
  383. <tr>
  384. <td class="input-label vst-text">
  385. <?php print _('Host');?>
  386. </td>
  387. </tr>
  388. <tr>
  389. <td>
  390. <input type="text" size="20" class="vst-input" name="v_smtp_relay_host" value="<?=htmlentities(trim($v_smtp_relay_host, "'"))?>">
  391. </td>
  392. </tr>
  393. <tr>
  394. <td class="input-label vst-text">
  395. <?php print _('Port');?>
  396. </td>
  397. </tr>
  398. <tr>
  399. <td>
  400. <input type="text" size="20" class="vst-input" name="v_smtp_relay_port" value="<?=htmlentities(trim($v_smtp_relay_port, "'"))?>">
  401. </td>
  402. </tr>
  403. <tr>
  404. <td class="input-label vst-text">
  405. <?php print _('Username');?>
  406. </td>
  407. </tr>
  408. <tr>
  409. <td>
  410. <input type="text" size="20" class="vst-input" name="v_smtp_relay_user" value="<?=htmlentities(trim($v_smtp_relay_user, "'"))?>">
  411. </td>
  412. </tr>
  413. <tr>
  414. <td class="input-label vst-text">
  415. <?php print _('Password');?>
  416. </td>
  417. </tr>
  418. <tr>
  419. <td>
  420. <input type="text" size="20" class="vst-input" name="v_smtp_relay_pass">
  421. </td>
  422. </tr>
  423. </table>
  424. </td>
  425. </tr>
  426. <tr>
  427. <td>
  428. <br>
  429. </td>
  430. </tr>
  431. </table>
  432. </td>
  433. </tr>
  434. <tr>
  435. <td class="vst-text input-label step-top advanced-options">
  436. <a href="javascript:elementHideShow('db');" class="vst-text">
  437. <i class="fas fa-database"></i><b><?php print _('Databases');?> <img src="/images/arrow.png"></b>
  438. </a>
  439. </td>
  440. </tr>
  441. <tr>
  442. <td class="vst-text input-label step-left">
  443. <table style="display:<?php if (empty($v_db_adv)) echo 'none';?> ;" id="db">
  444. <tr>
  445. <td class="vst-text step-top">
  446. <?php print _('MySQL Support');?> <a href="/edit/server/mysql/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
  447. </td>
  448. </tr>
  449. <tr>
  450. <td>
  451. <select class="vst-list" name="v_mysql" disabled>
  452. <option value='no'><?php print _('no'); ?></option>
  453. <option value='yes' <?php if($v_mysql == 'yes') echo 'selected' ?> ><?php print _('yes'); ?></option>
  454. </select>
  455. <br><br>
  456. </td>
  457. </tr>
  458. <?php if ($v_mysql == 'yes') { ?>
  459. <tr>
  460. <td class="vst-text">
  461. <?php print _('phpMyAdmin URL') ?>
  462. </td>
  463. </tr>
  464. <tr>
  465. <td>
  466. <input type="text" size="20" class="vst-input" name="v_mysql_url" value="<?php echo $_SESSION['DB_PMA_ALIAS']; ?>">
  467. <br><br>
  468. </td>
  469. </tr>
  470. <tr>
  471. <td class="vst-text">
  472. <?php print _('phpMyAdmin Single Sign On') ?>
  473. </td>
  474. </tr>
  475. <tr>
  476. <td>
  477. <select class="vst-list" name="v_phpmyadmin_key">
  478. <option value='no'><?php print _('Disabled'); ?></option>
  479. <option value='yes' <?php if($_POST['v_phpmyadmin_key'] == "yes" || $_SESSION['PHPMYADMIN_KEY'] != ''){ echo 'selected="selected"'; }; ?>><?php print _('Enabled'); ?></option>
  480. </select>
  481. <br />
  482. <br />
  483. </td>
  484. </tr>
  485. <?php } ?>
  486. <?php if ($v_mysql == 'yes') {
  487. $i = 0;
  488. foreach ($v_mysql_hosts as $value) {
  489. $i++;
  490. ?>
  491. <tr>
  492. <td class="vst-text step-left">
  493. <?php print _('Host'). ' #'.$i ?>
  494. </td>
  495. </tr>
  496. <tr>
  497. <td class="step-left">
  498. <input type="text" size="20" class="vst-input" name="v_mysql_host" value="<?=$value['HOST']?>" disabled>
  499. <br><br>
  500. </td>
  501. </tr>
  502. <tr>
  503. <td class="vst-text step-left">
  504. <?php print _('Password') ?>
  505. </td>
  506. </tr>
  507. <tr>
  508. <td class="step-left">
  509. <input type="text" size="20" class="vst-input" name="v_mysql_password" value="">
  510. <br><br>
  511. </td>
  512. </tr>
  513. <tr>
  514. <td class="vst-text step-left">
  515. <?php print _('Maximum Number Of Databases') ?>
  516. </td>
  517. </tr>
  518. <tr>
  519. <td class="step-left">
  520. <input type="text" size="20" class="vst-input" name="v_mysql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  521. <br><br>
  522. </td>
  523. </tr>
  524. <tr>
  525. <td class="vst-text step-left">
  526. <?php print _('Current Number Of Databases') ?>
  527. </td>
  528. </tr>
  529. <tr>
  530. <td class="step-left">
  531. <input type="text" size="20" class="vst-input" name="v_mysql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  532. <br><br>
  533. </td>
  534. </tr>
  535. <?php }} ?>
  536. <tr>
  537. <td class="vst-text input-label">
  538. <?php print _('PostgreSQL Support');?> <a href="/edit/server/postgresql/"><i class="fas fa-pencil-alt status-icon orange icon-pad-right"></i></a>
  539. </td>
  540. </tr>
  541. <tr>
  542. <td>
  543. <select class="vst-list" name="v_pgsql" disabled>
  544. <option value='no'><?php print _('no'); ?></option>
  545. <option value='yes' <?php if($v_pgsql == 'yes') echo 'selected' ?> ><?php print _('yes'); ?></option>
  546. </select>
  547. <br><br>
  548. </td>
  549. </tr>
  550. <?php if ($v_pgsql == 'yes') { ?>
  551. <tr>
  552. <td class="vst-text">
  553. <?php print _('phpPgAdmin URL') ?>
  554. </td>
  555. </tr>
  556. <tr>
  557. <td>
  558. <input type="text" size="20" class="vst-input" name="v_pgsql_url" value="<?php echo $_SESSION['DB_PGA_ALIAS']; ?>">
  559. <br><br>
  560. </td>
  561. </tr>
  562. <?php } ?>
  563. <?php if ($v_pgsql == 'yes') {
  564. $i = 0;
  565. foreach ($v_pgsql_hosts as $value) {
  566. $i++;
  567. ?>
  568. <tr>
  569. <td class="vst-text step-left">
  570. <?php print _('Host'). ' #'.$i ?>
  571. </td>
  572. </tr>
  573. <tr>
  574. <td class="step-left">
  575. <input type="text" size="20" class="vst-input" name="v_pgsql_host" value="<?=$value['HOST']?>" disabled>
  576. <br><br>
  577. </td>
  578. </tr>
  579. <tr>
  580. <td class="vst-text step-left">
  581. <?php print _('Maximum Number Of Databases') ?>
  582. </td>
  583. </tr>
  584. <tr>
  585. <td class="step-left">
  586. <input type="text" size="20" class="vst-input" name="v_psql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  587. <br><br>
  588. </td>
  589. </tr>
  590. <tr>
  591. <td class="vst-text step-left">
  592. <?php print _('Current Number Of Databases') ?>
  593. </td>
  594. </tr>
  595. <tr>
  596. <td class="step-left">
  597. <input type="text" size="20" class="vst-input" name="v_pgsql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  598. <br><br><br><br>
  599. </td>
  600. </tr>
  601. <?php }} ?>
  602. </table>
  603. </td>
  604. </tr>
  605. <tr>
  606. <td class="vst-text input-label step-top advanced-options">
  607. <a href="javascript:elementHideShow('backup');" class="vst-text">
  608. <i class="fas fa-undo"></i><b><?php print _('Backups');?> <img src="/images/arrow.png"></b>
  609. </a>
  610. </td>
  611. </tr>
  612. <tr>
  613. <td class="vst-text input-label step-left">
  614. <table style="<?php if (empty($v_backup_adv)) echo 'display:none';?> ;" id="backup">
  615. <tr>
  616. <td class="vst-text step-top">
  617. <?php print _('Local backup') ?>
  618. </td>
  619. </tr>
  620. <tr>
  621. <td>
  622. <select class="vst-list" name="v_backup">
  623. <option value='no'><?php print _('no'); ?></option>
  624. <option value='yes' <?php if($v_backup == 'yes') echo 'selected' ?> ><?php print _('yes'); ?></option>
  625. </select>
  626. <br><br>
  627. </td>
  628. </tr>
  629. <tr>
  630. <td class="vst-text">
  631. <?php print _('Compression') ?> <a href="https://docs.hestiacp.com/admin_docs/backups.html"><i class="fas fa-question-circle"></i></a>
  632. </td>
  633. </tr>
  634. <tr>
  635. <td>
  636. <select class="vst-list" name="v_backup_mode">
  637. <option value='gzip' <?php if($v_backup_mode != 'zstd') echo 'selected' ?>>gzip</option>
  638. <option value='zstd' <?php if($v_backup_mode == 'zstd') echo 'selected' ?>>zstd</option>
  639. </select>
  640. <br><br>
  641. </td>
  642. </tr>
  643. <tr>
  644. <td class="vst-text">
  645. <?php print _('Compression level') ?> <a href="https://docs.hestiacp.com/admin_docs/backups.html"><i class="fas fa-question-circle"></i></a>
  646. </td>
  647. </tr>
  648. <tr>
  649. <td>
  650. <select class="vst-list" name="v_backup_gzip">
  651. <?php for($level = 1; $level < 20; $level++){
  652. ?>
  653. <option value='<?=$level;?>' <?php if($v_backup_gzip == $level) echo 'selected' ?>><?=$level;?><?php if($level > 9){ echo sprintf(' (%s)', _('zstd only')); } ?></option>
  654. <?php
  655. }
  656. ?>
  657. </select>
  658. <br><br>
  659. </td>
  660. </tr>
  661. <tr>
  662. <td class="vst-text">
  663. <?php print _('Directory') ?> <a href="https://docs.hestiacp.com/admin_docs/backups.html"><i class="fas fa-question-circle"></i></a>
  664. </td>
  665. </tr>
  666. <tr>
  667. <td>
  668. <input type="text" size="20" class="vst-input" name="v_backup_dir" value="<?=trim($v_backup_dir, "'")?>" disabled="disabled">
  669. <br><br>
  670. </td>
  671. </tr>
  672. <tr>
  673. <td class="vst-text input-label">
  674. <label><input type="checkbox" size="20" class="vst-checkbox" name="v_backup_remote_adv" <?php if (!empty($v_backup_remote_adv)) echo "checked=yes" ?> onclick="javascript:elementHideShow('remote_backup');"><?php print _('Remote backup');?></label>
  675. </td>
  676. </tr>
  677. <tr>
  678. <td class="vst-text input-label step-left">
  679. <table style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;" id="remote_backup">
  680. <td class="vst-text">
  681. <?php print _('Protocol') ?> <a href="https://docs.hestiacp.com/admin_docs/backups.html"><i class="fas fa-question-circle"></i></a>
  682. </td>
  683. </tr>
  684. <tr>
  685. <td>
  686. <select class="vst-list" name="v_backup_type" id="backup_type">
  687. <option value='ftp'><?php print _('ftp'); ?></option>
  688. <option value='sftp' <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'sftp' )) echo 'selected="selected"'; ?>><?php print _('sftp'); ?></option>
  689. <option value="b2" <?php if((!empty($v_backup_type)) && (trim($v_backup_type,"'") == 'b2' )) echo 'selected="selected"'; ?>><?php print _('Backblaze '); ?>
  690. </select>
  691. <br><br>
  692. </td>
  693. </tr>
  694. <tr style="display: <?php if ((!empty($v_backup_type)) && !in_array(trim($v_backup_type, "'"),array('ftp','sftp'))){ echo 'none';} else {echo 'block';} ?>" id="backup_sftp">
  695. <td>
  696. <table>
  697. <tr>
  698. <td class="vst-text">
  699. <?php print _('Host') ?>
  700. </td>
  701. </tr>
  702. <tr>
  703. <td>
  704. <input type="text" size="20" class="vst-input" name="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
  705. <br><br>
  706. </td>
  707. </tr>
  708. <tr>
  709. <td class="vst-text">
  710. <?php print _('Port') ?>
  711. </td>
  712. </tr>
  713. <tr>
  714. <td>
  715. <input type="text" size="20" class="vst-input" name="v_backup_port" value="<?=trim($v_backup_port, "'")?>">
  716. <br><br>
  717. </td>
  718. </tr>
  719. <tr>
  720. <td class="vst-text">
  721. <?php print _('Username') ?>
  722. </td>
  723. </tr>
  724. <tr>
  725. <td>
  726. <input type="text" size="20" class="vst-input" name="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
  727. <br><br>
  728. </td>
  729. </tr>
  730. <tr>
  731. <td class="vst-text">
  732. <?php print _('Password') ?>
  733. </td>
  734. </tr>
  735. <tr>
  736. <td>
  737. <input type="text" size="20" class="vst-input" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
  738. <br><br>
  739. </td>
  740. </tr>
  741. <tr>
  742. <td class="vst-text">
  743. <?php print _('Directory') ?>
  744. </td>
  745. </tr>
  746. <tr>
  747. <td>
  748. <input type="text" size="20" class="vst-input" name="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
  749. <br><br>
  750. </td>
  751. </tr>
  752. </table>
  753. </td>
  754. </tr>
  755. <tr style="display: <?php if ((empty($v_backup_type)) || !in_array(trim($v_backup_type, "'"),array('b2'))){ echo 'none';} else {echo 'block';} ?>" id="backup_bucket">
  756. <td>
  757. <table>
  758. <tr>
  759. <td class="vst-text">
  760. <?php print _('Bucket') ?>
  761. </td>
  762. </tr>
  763. <tr>
  764. <td>
  765. <input type="text" size="20" class="vst-input" name="v_backup_bucket" value="<?=trim($v_backup_bucket, "'")?>">
  766. <br><br>
  767. </td>
  768. </tr>
  769. <tr>
  770. <td class="vst-text">
  771. <?php print _('Application ID') ?>
  772. </td>
  773. </tr>
  774. <tr>
  775. <td>
  776. <input type="text" size="20" class="vst-input" name="v_backup_application_id" value="<?=trim($v_backup_application_id, "'")?>">
  777. <br><br>
  778. </td>
  779. </tr>
  780. <tr>
  781. <td class="vst-text">
  782. <?php print _('Application Key') ?>
  783. </td>
  784. </tr>
  785. <tr>
  786. <td>
  787. <input type="text" size="20" class="vst-input" name="v_backup_application_key" value="<?=trim($v_backup_application_key, "'")?>">
  788. <br><br>
  789. </td>
  790. </tr>
  791. </table>
  792. </td>
  793. </tr>
  794. </table>
  795. </td>
  796. </tr>
  797. </table>
  798. </td>
  799. </tr>
  800. <tr>
  801. <td class="vst-text input-label step-top advanced-options">
  802. <a href="javascript:elementHideShow('ssl');" class="vst-text">
  803. <i class="fas fa-lock"></i><b><?php print _('Hestia SSL');?><img src="/images/arrow.png"></b>
  804. </a>
  805. </td>
  806. </tr>
  807. <tr>
  808. <td class="vst-text input-label step-left">
  809. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="ssl">
  810. <tr>
  811. <td class="vst-text step-top">
  812. <?php print _('SSL Certificate');?>
  813. <span id="generate-csr"> / <a class="generate" target="_blank" href="/generate/ssl/?domain=<?=$v_hostname?>"><?=_('Generate CSR')?></a></span>
  814. </td>
  815. </tr>
  816. <tr>
  817. <td>
  818. <textarea size="20" class="vst-textinput short console" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
  819. </td>
  820. </tr>
  821. <tr>
  822. <td class="vst-text input-label">
  823. <?php print _('SSL Key');?>
  824. </td>
  825. </tr>
  826. <tr>
  827. <td>
  828. <textarea size="20" class="vst-textinput short console" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
  829. </td>
  830. </tr>
  831. <tr>
  832. <td>
  833. <table class="additional-info">
  834. <tr>
  835. <td>
  836. <b><?=_('SUBJECT')?>:</b>
  837. </td>
  838. <td class="details">
  839. <?=$v_ssl_subject?>
  840. </td>
  841. </tr>
  842. <? if($v_ssl_aliases){?>
  843. <tr>
  844. <td>
  845. <b><?=_('Aliases')?>:</b>
  846. </td>
  847. <td class="details">
  848. <?=$v_ssl_aliases?>
  849. </td>
  850. </tr>
  851. <? } ?>
  852. <tr>
  853. <td>
  854. <b><?=_('NOT_BEFORE')?>:</b>
  855. </td>
  856. <td class="details">
  857. <?=$v_ssl_not_before?>
  858. </td>
  859. </tr>
  860. <tr>
  861. <td>
  862. <b><?=_('NOT_AFTER')?>:</b>
  863. </td>
  864. <td class="details">
  865. <?=$v_ssl_not_after?>
  866. </td>
  867. </tr>
  868. <tr>
  869. <td>
  870. <b><?=_('SIGNATURE')?>:</b>
  871. </td>
  872. <td class="details">
  873. <?=$v_ssl_signature?>
  874. </td>
  875. </tr>
  876. <tr>
  877. <td>
  878. <b><?=_('PUB_KEY')?>:</b>
  879. </td>
  880. <td class="details">
  881. <?=$v_ssl_pub_key?>
  882. </td>
  883. </tr>
  884. <tr>
  885. <td>
  886. <b><?=_('ISSUER')?>:</b>
  887. </td>
  888. <td class="details">
  889. <?=$v_ssl_issuer?>
  890. </td>
  891. </tr>
  892. </table>
  893. </td>
  894. </tr>
  895. </table>
  896. </td>
  897. </tr>
  898. <tr>
  899. <td class="vst-text input-label step-top advanced-options">
  900. <a href="javascript:elementHideShow('security');" class="vst-text">
  901. <i class="fas fa-key"></i><b><?php print _('Security');?> <img src="/images/arrow.png"></b>
  902. </a>
  903. </td>
  904. </tr>
  905. <tr>
  906. <td class="vst-text input-label step-left">
  907. <table style="<?php if (empty($v_security_adv)) echo 'display:none;';?>" id="security">
  908. <tr>
  909. <td class="section-title" onclick="javascript:elementHideShow('security-system-table');">
  910. <?=('System');?>
  911. </td>
  912. <td class="section-hide-button">
  913. <a href="javascript:elementHideShow('security-system-table');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
  914. </td>
  915. </tr>
  916. <tr>
  917. <td>
  918. <table id="security-system-table" style="display: none;">
  919. <td class="vst-text input-label step-top" style="font-size:1rem;padding-bottom:12px;">
  920. <?=_('API');?>
  921. </td>
  922. <tr>
  923. <td class="vst-text input-label">
  924. <?php print _('Enable API access');?>
  925. </td>
  926. </tr>
  927. <tr>
  928. <td>
  929. <select class="vst-list" name="v_api" id="api">
  930. <option value='yes'><?php print _('yes'); ?></option>
  931. <option value='no' <?php if($_SESSION['API'] == 'no') echo 'selected' ?> ><?php print _('no'); ?></option>
  932. </select>
  933. <br><br>
  934. </td>
  935. </tr>
  936. <tr>
  937. <td>
  938. <table id="security_ip" style="<?php if ($_SESSION['API'] == "no") echo 'display:none;';?>">
  939. <tr>
  940. <td class="vst-text input-label">
  941. <?php print _('Allowed IP addresses for API');?> <span class="optional" style="float:right">1 IP address per line</span>
  942. </td>
  943. </tr>
  944. <tr>
  945. <td>
  946. <textarea size="20" class="vst-textinput short" name="v_api_allowed_ip"><?php
  947. foreach(explode(',',$_SESSION['API_ALLOWED_IP']) as $ip ){
  948. echo $ip."\n";
  949. }
  950. ?></textarea>
  951. <br><br>
  952. </td>
  953. </tr>
  954. </table>
  955. </td>
  956. </tr>
  957. <td class="vst-text input-label step-top" style="font-size:1rem;padding-bottom:12px;">
  958. <?=_('Login');?>
  959. </td>
  960. <tr>
  961. <td class="vst-text input-label">
  962. <?php print _('Login screen style');?>
  963. </td>
  964. </tr>
  965. <tr>
  966. <td>
  967. <select class="vst-list" name="v_login_style">
  968. <option value='default'><?php print _('Default'); ?></option>
  969. <option value='old' <?php if($_SESSION['LOGIN_STYLE'] == 'old') echo 'selected' ?> ><?php print _('Old Style'); ?></option>
  970. </select>
  971. <br><br>
  972. </td>
  973. </tr>
  974. <tr>
  975. <td class="vst-text input-label">
  976. <?php print _('Allow users to reset their passwords');?>
  977. </td>
  978. </tr>
  979. <tr>
  980. <td>
  981. <select class="vst-list" name="v_policy_system_password_reset">
  982. <option value='yes'><?php print _('yes'); ?></option>
  983. <option value='no' <?php if($_SESSION['POLICY_SYSTEM_PASSWORD_RESET'] == 'no') echo 'selected' ?> ><?php print _('no'); ?></option>
  984. </select>
  985. <br><br>
  986. </td>
  987. </tr>
  988. <tr>
  989. <td class="vst-text input-label">
  990. <?php print _('Inactive session timeout');?> (<?php print _('Minutes');?>)
  991. </td>
  992. </tr>
  993. <tr>
  994. <td>
  995. <input type="text" size="20" class="vst-input" name="v_inactive_session_timeout" value="<?=trim($_SESSION['INACTIVE_SESSION_TIMEOUT'], "'")?>">
  996. <br><br>
  997. </td>
  998. </tr>
  999. </table>
  1000. </td>
  1001. </tr>
  1002. <? if (($_SESSION['userContext'] === "admin") && ($_SESSION['user'] === 'admin')) {?>
  1003. <tr>
  1004. <td class="section-title" onclick="javascript:elementHideShow('security-sysadminprotect-table');">
  1005. <?=('System Protection');?>
  1006. </td>
  1007. <td class="section-hide-button">
  1008. <a href="javascript:elementHideShow('security-sysadminprotect-table');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
  1009. </td>
  1010. </tr>
  1011. <tr>
  1012. <td>
  1013. <table id="security-sysadminprotect-table" class="step-top" style="display: none;">
  1014. <tr>
  1015. <td class="vst-text input-label step-top" style="font-size:1rem;padding-bottom:12px;">
  1016. <?=_('System Administrator account');?>
  1017. </td>
  1018. </tr>
  1019. <tr>
  1020. <td class="vst-text input-label">
  1021. <?=_('Restrict access to read-only for other administrators');?>
  1022. </td>
  1023. </tr>
  1024. <tr>
  1025. <td>
  1026. <select class="vst-list" name="v_policy_system_protected_admin">
  1027. <option value='yes'><?php print _('yes'); ?></option>
  1028. <option value='no' <?php if($_SESSION['POLICY_SYSTEM_PROTECTED_ADMIN'] !== 'yes') echo 'selected' ?>><?php print _('no'); ?></option>
  1029. </select>
  1030. <br><br>
  1031. </td>
  1032. </tr>
  1033. <tr>
  1034. <td class="vst-text input-label">
  1035. <?php print _('Hide account from other administrators');?>
  1036. </td>
  1037. </tr>
  1038. <tr>
  1039. <td>
  1040. <select class="vst-list" name="v_policy_system_hide_admin">
  1041. <option value='yes'><?php print _('yes'); ?></option>
  1042. <option value='no' <?php if($_SESSION['POLICY_SYSTEM_HIDE_ADMIN'] !== 'yes') echo 'selected' ?>><?php print _('no'); ?></option>
  1043. </select>
  1044. <br><br>
  1045. </td>
  1046. </tr>
  1047. <tr>
  1048. <td class="vst-text input-label">
  1049. <?php print _('Do not allow other administrators to access Server Settings');?>
  1050. </td>
  1051. </tr>
  1052. <tr>
  1053. <td>
  1054. <select class="vst-list" name="v_policy_system_hide_services">
  1055. <option value='yes'><?php print _('yes'); ?></option>
  1056. <option value='no' <?php if($_SESSION['POLICY_SYSTEM_HIDE_SERVICES'] !== 'yes') echo 'selected' ?>><?php print _('no'); ?></option>
  1057. </select>
  1058. <br><br>
  1059. </td>
  1060. </tr>
  1061. </table>
  1062. </td>
  1063. </tr>
  1064. <?}?>
  1065. <tr>
  1066. <td class="section-title" onclick="javascript:elementHideShow('security-policies-table');">
  1067. <?=('Policies');?>
  1068. </td>
  1069. <td class="section-hide-button">
  1070. <a href="javascript:elementHideShow('security-policies-table');"><i class="fas fa-minus-square status-icon dim maroon"></i></a>
  1071. </td>
  1072. </tr>
  1073. <tr>
  1074. <td>
  1075. <table id="security-policies-table" style="display: none;">
  1076. <tr>
  1077. <td class="vst-text input-label step-top" style="font-size:1rem;padding-bottom:12px;">
  1078. <?=_('Users');?>
  1079. </td>
  1080. </tr>
  1081. <tr>
  1082. <td class="vst-text input-label">
  1083. <?php print _('Allow suspended users to log in with read-only access');?>
  1084. </td>
  1085. </tr>
  1086. <tr>
  1087. <td>
  1088. <select class="vst-list" name="v_policy_user_view_suspended">
  1089. <option value='yes' <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1090. <option value='no' <?php if($_SESSION['POLICY_USER_VIEW_SUSPENDED'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1091. </select>
  1092. <br><br>
  1093. </td>
  1094. </tr>
  1095. <tr>
  1096. <td class="vst-text input-label">
  1097. <?php print _('Allow users to edit their account details');?>
  1098. </td>
  1099. </tr>
  1100. <tr>
  1101. <td>
  1102. <select class="vst-list" name="v_policy_user_edit_details">
  1103. <option value='yes' <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1104. <option value='no' <?php if($_SESSION['POLICY_USER_EDIT_DETAILS'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1105. </select>
  1106. <br><br>
  1107. </td>
  1108. </tr>
  1109. <tr>
  1110. <td class="vst-text input-label">
  1111. <?php print _('Allow users to change templates when editing web domains');?>
  1112. </td>
  1113. </tr>
  1114. <tr>
  1115. <td>
  1116. <select class="vst-list" name="v_policy_user_edit_web_templates">
  1117. <option value='yes' <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1118. <option value='no' <?php if($_SESSION['POLICY_USER_EDIT_WEB_TEMPLATES'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1119. </select>
  1120. <br><br>
  1121. </td>
  1122. </tr>
  1123. <tr>
  1124. <td class="vst-text input-label">
  1125. <?php print _('Allow users to change templates when editing DNS zones');?>
  1126. </td>
  1127. </tr>
  1128. <tr>
  1129. <td>
  1130. <select class="vst-list" name="v_policy_user_edit_web_templates">
  1131. <option value='yes' <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1132. <option value='no' <?php if($_SESSION['POLICY_USER_EDIT_DNS_TEMPLATES'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1133. </select>
  1134. <br><br>
  1135. </td>
  1136. </tr>
  1137. <tr>
  1138. <td class="vst-text input-label">
  1139. <?php print _('Allow users to view action and login history logs');?>
  1140. </td>
  1141. </tr>
  1142. <tr>
  1143. <td>
  1144. <select class="vst-list" name="v_policy_user_view_logs">
  1145. <option value='yes' <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1146. <option value='no' <?php if($_SESSION['POLICY_USER_VIEW_LOGS'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1147. </select>
  1148. <br><br>
  1149. </td>
  1150. </tr>
  1151. <tr>
  1152. <td class="vst-text input-label">
  1153. <?php print _('Allow users to delete log history');?>
  1154. </td>
  1155. </tr>
  1156. <tr>
  1157. <td>
  1158. <select class="vst-list" name="v_policy_user_delete_logs">
  1159. <option value='yes' <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] !== 'no') echo 'selected' ?>><?php print _('yes'); ?></option>
  1160. <option value='no' <?php if($_SESSION['POLICY_USER_DELETE_LOGS'] == 'no') echo 'selected' ?>><?php print _('no'); ?></option>
  1161. </select>
  1162. <br><br>
  1163. </td>
  1164. </tr>
  1165. <tr>
  1166. <td class="vst-text input-label step-top" style="font-size:1rem;padding-bottom:12px;">
  1167. <?=_('Domains');?>
  1168. </td>
  1169. </tr>
  1170. <tr>
  1171. <td class="vst-text input-label">
  1172. <?php print _('Enforce subdomain ownership');?>
  1173. </td>
  1174. </tr>
  1175. <tr>
  1176. <td>
  1177. <select class="vst-list" name="v_enforce_subdomain_ownership">
  1178. <option value='yes'><?php print _('yes'); ?></option>
  1179. <option value='no' <?php if($_SESSION['ENFORCE_SUBDOMAIN_OWNERSHIP'] == 'no') echo 'selected' ?> ><?php print _('no'); ?></option>
  1180. </select>
  1181. </td>
  1182. </tr>
  1183. </table>
  1184. </td>
  1185. <tr>
  1186. <td>
  1187. <br><br>
  1188. </td>
  1189. </tr>
  1190. </tr>
  1191. </table>
  1192. </td>
  1193. </tr>
  1194. <tr>
  1195. <td class="vst-text input-label step-top advanced-options">
  1196. <a href="javascript:elementHideShow('hestia');" class="vst-text">
  1197. <i class="fas fa-puzzle-piece"></i><b><?php print _('Hestia Control Panel Plugins');?> <img src="/images/arrow.png"></b>
  1198. </a>
  1199. </td>
  1200. </tr>
  1201. <tr>
  1202. <td class="vst-text input-label step-left">
  1203. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="hestia">
  1204. <tr>
  1205. <td class="vst-text step-top">
  1206. <?php print _('Filemanager');?>
  1207. </td>
  1208. </tr>
  1209. <tr>
  1210. <td>
  1211. <select class="vst-list" name="v_filemanager">
  1212. <option value='false'><?php print _('no'); ?></option>
  1213. <option value='true' <?php if($_SESSION['FILE_MANAGER'] == 'true') echo 'selected' ?> ><?php print _('yes'); ?></option>
  1214. </select>
  1215. <br><br>
  1216. </td>
  1217. </tr>
  1218. <tr>
  1219. <td class="vst-text input-label">
  1220. <?php print _('FileSystem Disk Quota');?>
  1221. </td>
  1222. </tr>
  1223. <tr>
  1224. <td>
  1225. <select class="vst-list" name="v_quota">
  1226. <option value='no'><?php print _('no'); ?></option>
  1227. <option value='yes' <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?> ><?php print _('yes'); ?></option>
  1228. </select>
  1229. <br><br>
  1230. </td>
  1231. </tr>
  1232. <tr>
  1233. <td class="vst-text input-label">
  1234. <?php print _('Firewall');?>
  1235. </td>
  1236. </tr>
  1237. <tr>
  1238. <td>
  1239. <select class="vst-list" name="v_firewall">
  1240. <option value='no'><?php print _('no'); ?></option>
  1241. <option value='yes' <?php if($_SESSION['FIREWALL_SYSTEM'] == 'iptables') echo 'selected' ?> ><?php print _('yes'); ?></option>
  1242. </select>
  1243. <br><br>
  1244. </td>
  1245. </tr>
  1246. </table>
  1247. </td>
  1248. </tr>
  1249. </table>
  1250. <table class="data-col2"></table>
  1251. </td>
  1252. </tr>
  1253. </table>
  1254. </form>
  1255. </div>