edit_server.html 59 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902
  1. <div class="l-center edit">
  2. <div class="l-sort clearfix">
  3. <div class="l-sort-toolbar clearfix float-left">
  4. <span class="title edit"><b><?=__('Configuring Server')?></b></span>
  5. <?php
  6. if (!empty($_SESSION['error_msg'])) {
  7. echo "<span class=\"vst-error\"> → ".htmlentities($_SESSION['error_msg'])."</span>";
  8. } else {
  9. if (!empty($_SESSION['ok_msg'])) {
  10. echo "<span class=\"vst-ok\"> → ".$_SESSION['ok_msg']."</span>";
  11. }
  12. }
  13. ?>
  14. </div>
  15. </div>
  16. </div>
  17. <div class="l-separator"></div>
  18. <!-- /.l-separator -->
  19. <div class="l-center">
  20. <?php
  21. $back = $_SESSION['back'];
  22. if (empty($back)) {
  23. $back = "location.href='/list/server/'";
  24. } else {
  25. $back = "location.href='".$back."'";
  26. }
  27. ?>
  28. <form id="vstobjects" name="v_configure_server" method="post">
  29. <input type="hidden" name="token" value="<?=$_SESSION['token']?>" />
  30. <input type="hidden" name="save" value="save" />
  31. <table class="data mode-add">
  32. <tr class="data-add">
  33. <td class="data-dotted">
  34. <table class="data-col1">
  35. <tr><td></td></tr>
  36. </table>
  37. </td>
  38. <td class="data-dotted">
  39. <table class="data-col2" width="600px">
  40. <tr>
  41. <td class="vst-text step-top">
  42. <?php print __('Hostname') ?>
  43. </td>
  44. </tr>
  45. <tr>
  46. <td>
  47. <input type="text" size="20" class="vst-input" name="v_hostname" value="<?=htmlentities(trim($v_hostname, "'"))?>">
  48. <br><br>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="vst-text input-label">
  53. <?php print __('Time Zone');?>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td>
  58. <select class="vst-list long-2" name="v_timezone">
  59. <?php
  60. foreach ($v_timezones as $key => $value) {
  61. echo "\t\t\t\t<option value=\"".$key."\"";
  62. if ((!empty($v_timezone)) && ( $key == $v_timezone)){
  63. echo ' selected' ;
  64. }
  65. if ((!empty($v_timezone)) && ( $key == $_POST['v_timezone'])){
  66. echo ' selected' ;
  67. }
  68. echo ">".$value."</option>\n";
  69. }
  70. ?>
  71. </select>
  72. <br><br>
  73. </td>
  74. </tr>
  75. <tr>
  76. <td class="vst-text input-label">
  77. <?php print __('Default Language');?>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td>
  82. <select class="vst-list" name="v_language">
  83. <?php
  84. foreach ($languages as $key => $value) {
  85. echo "\t\t\t\t<option value=\"".$value."\"";
  86. if ((!empty($_SESSION['LANGUAGE'])) && ( $value == $_SESSION['LANGUAGE'])){
  87. echo ' selected' ;
  88. }
  89. if ((!empty($_SESSION['LANGUAGE'])) && ( $value == $_POST['v_language'])){
  90. echo ' selected' ;
  91. }
  92. echo ">".$value."</option>\n";
  93. }
  94. ?>
  95. </select>
  96. <br><br>
  97. </td>
  98. </tr>
  99. <tr>
  100. <td class="vst-text input-label step-top">
  101. <a href="javascript:elementHideShow('web');" class="vst-text">
  102. <b><?php print __('WEB');?> <img src="/images/arrow.png"></b>
  103. </a>
  104. </td>
  105. </tr>
  106. <tr>
  107. <td class="vst-text input-label step-left">
  108. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="web">
  109. <?php if (!empty($_SESSION['PROXY_SYSTEM'])) { ?>
  110. <tr>
  111. <td class="vst-text">
  112. <?php print __('Proxy Server') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['PROXY_SYSTEM'] ?>/"><?=__('configure')?></a>
  113. </td>
  114. </tr>
  115. <tr>
  116. <td>
  117. <input type="text" size="20" class="vst-input" name="v_proxy_system" value="<?php echo $_SESSION['PROXY_SYSTEM']; ?>" disabled>
  118. <br><br>
  119. </td>
  120. </tr>
  121. <?php } ?>
  122. <tr>
  123. <td class="vst-text">
  124. <?php print __('Web Server') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['WEB_SYSTEM'] ?>/"><?=__('configure')?></a>
  125. </td>
  126. </tr>
  127. <tr>
  128. <td>
  129. <input type="text" size="20" class="vst-input" name="v_web_system" value="<?php echo $_SESSION['WEB_SYSTEM']; ?>" disabled>
  130. <br><br>
  131. </td>
  132. </tr>
  133. <?php if (!empty($_SESSION['WEB_BACKEND'])) { ?>
  134. <tr>
  135. <td class="vst-text">
  136. <?php print __('Backend Server') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['WEB_BACKEND'] ?>/"><?=__('configure')?></a>
  137. </td>
  138. </tr>
  139. <tr>
  140. <td>
  141. <input type="text" size="20" class="vst-input" name="v_web_backend" value="<?php echo $_SESSION['WEB_BACKEND']; ?>" disabled>
  142. <br><br>
  143. </td>
  144. </tr>
  145. <tr>
  146. <td class="vst-text">
  147. <?php print __('Backend Pool Mode') ?>
  148. </td>
  149. </tr>
  150. <tr>
  151. <td>
  152. <input type="text" size="20" class="vst-input" name="v_web_backend_pool" value="<?php echo $_SESSION['WEB_BACKEND_POOL']; ?>" disabled>
  153. <br><br>
  154. </td>
  155. </tr>
  156. <?php } ?>
  157. </table>
  158. </td>
  159. </tr>
  160. <tr>
  161. <td class="vst-text input-label step-top">
  162. <a href="javascript:elementHideShow('dns');" class="vst-text">
  163. <b><?php print __('DNS');?> <img src="/images/arrow.png"></b>
  164. </a>
  165. </td>
  166. </tr>
  167. <tr>
  168. <td class="vst-text input-label step-left">
  169. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="dns">
  170. <tr>
  171. <td class="vst-text">
  172. <?php print __('DNS Server') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['DNS_SYSTEM'] ?>/"><?=__('configure')?></a>
  173. </td>
  174. </tr>
  175. <tr>
  176. <td>
  177. <input type="text" size="20" class="vst-input" name="v_dns_system" value="<?php echo $_SESSION['DNS_SYSTEM']; ?>" disabled>
  178. <br><br>
  179. </td>
  180. </tr>
  181. <tr>
  182. <td class="vst-text input-label">
  183. <?php print __('DNS Cluster');?>
  184. </td>
  185. </tr>
  186. <tr>
  187. <td>
  188. <select class="vst-list" name="v_dns_cluster" disabled>
  189. <option value='no'><?php print __('no'); ?></option>
  190. <option value='yes' <?php if($v_dns_cluster == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  191. </select>
  192. <br><br><br>
  193. </td>
  194. </tr>
  195. <?php if ($v_dns_cluster = 'yes') {
  196. $i = 0;
  197. foreach ($dns_cluster as $key => $value) {
  198. $i++;
  199. ?>
  200. <tr>
  201. <td class="vst-text step-left">
  202. <?php print __('Host'). ' #'.$i ?>
  203. </td>
  204. </tr>
  205. <tr>
  206. <td class="step-left">
  207. <input type="text" size="20" class="vst-input" name="v_dns_remote_host" value="<?php echo $key; ?>" disabled>
  208. <br><br>
  209. </td>
  210. </tr>
  211. <?php }} ?>
  212. </table>
  213. </td>
  214. </tr>
  215. <tr>
  216. <td class="vst-text input-label step-top">
  217. <a href="javascript:elementHideShow('mail');" class="vst-text">
  218. <b><?php print __('MAIL');?> <img src="/images/arrow.png"></b>
  219. </a>
  220. </td>
  221. </tr>
  222. <tr>
  223. <td class="vst-text input-label step-left">
  224. <table style="display:<?php if (empty($v_mail_adv)) echo 'none';?> ;" id="mail">
  225. <tr>
  226. <td class="vst-text">
  227. <?php print __('MAIL Server') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['MAIL_SYSTEM'] ?>/"><?=__('configure')?></a>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td>
  232. <input type="text" size="20" class="vst-input" name="v_mail_system" value="<?php echo $_SESSION['MAIL_SYSTEM']; ?>" disabled>
  233. <br><br>
  234. </td>
  235. </tr>
  236. <?php if (!empty($_SESSION['ANTIVIRUS_SYSTEM'])) { ?>
  237. <tr>
  238. <td class="vst-text">
  239. <?php print __('Antivirus') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['ANTIVIRUS_SYSTEM'] ?>/"><?=__('configure')?></a>
  240. </td>
  241. </tr>
  242. <tr>
  243. <td>
  244. <input type="text" size="20" class="vst-input" name="v_antivirus_system" value="<?php echo $_SESSION['ANTIVIRUS_SYSTEM']; ?>" disabled>
  245. <br><br>
  246. </td>
  247. </tr>
  248. <?php } ?>
  249. <?php if (!empty($_SESSION['ANTISPAM_SYSTEM'])) { ?>
  250. <tr>
  251. <td class="vst-text">
  252. <?php print __('AntiSpam') ?> / <a class="generate" href="/edit/server/<? echo $_SESSION['ANTISPAM_SYSTEM'] ?>/"><?=__('configure')?></a>
  253. </td>
  254. </tr>
  255. <tr>
  256. <td>
  257. <input type="text" size="20" class="vst-input" name="v_antispam_system" value="<?php echo $_SESSION['ANTISPAM_SYSTEM']; ?>" disabled>
  258. <br><br>
  259. </td>
  260. </tr>
  261. <?php } ?>
  262. <tr>
  263. <td class="vst-text">
  264. <?php print __('Webmail URL') ?>
  265. </td>
  266. </tr>
  267. <tr>
  268. <td>
  269. <input type="text" size="20" class="vst-input" name="v_mail_url" value="<?php echo $_SESSION['MAIL_URL']; ?>">
  270. <br><br>
  271. </td>
  272. </tr>
  273. </table>
  274. </td>
  275. </tr>
  276. <tr>
  277. <td class="vst-text input-label step-top">
  278. <a href="javascript:elementHideShow('db');" class="vst-text">
  279. <b><?php print __('DB');?> <img src="/images/arrow.png"></b>
  280. </a>
  281. </td>
  282. </tr>
  283. <tr>
  284. <td class="vst-text input-label step-left">
  285. <table style="display:<?php if (empty($v_db_adv)) echo 'none';?> ;" id="db">
  286. <tr>
  287. <td class="vst-text input-label">
  288. <?php print __('MySQL Support');?> / <a class="generate" href="/edit/server/mysql/"><?=__('configure')?></a>
  289. </td>
  290. </tr>
  291. <tr>
  292. <td>
  293. <select class="vst-list" name="v_mysql" disabled>
  294. <option value='no'><?php print __('no'); ?></option>
  295. <option value='yes' <?php if($v_mysql == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  296. </select>
  297. <br><br>
  298. </td>
  299. </tr>
  300. <?php if ($v_mysql == 'yes') { ?>
  301. <tr>
  302. <td class="vst-text">
  303. <?php print __('phpMyAdmin URL') ?>
  304. </td>
  305. </tr>
  306. <tr>
  307. <td>
  308. <input type="text" size="20" class="vst-input" name="v_mysql_url" value="<?php echo $_SESSION['DB_PMA_URL']; ?>">
  309. <br><br>
  310. </td>
  311. </tr>
  312. <?php } ?>
  313. <?php if ($v_mysql == 'yes') {
  314. $i = 0;
  315. foreach ($v_mysql_hosts as $value) {
  316. $i++;
  317. ?>
  318. <tr>
  319. <td class="vst-text step-left">
  320. <?php print __('Host'). ' #'.$i ?>
  321. </td>
  322. </tr>
  323. <tr>
  324. <td class="step-left">
  325. <input type="text" size="20" class="vst-input" name="v_mysql_host" value="<?=$value['HOST']?>" disabled>
  326. <br><br>
  327. </td>
  328. </tr>
  329. <tr>
  330. <td class="vst-text step-left">
  331. <?php print __('Password') ?>
  332. </td>
  333. </tr>
  334. <tr>
  335. <td class="step-left">
  336. <input type="text" size="20" class="vst-input" name="v_mysql_password" value="">
  337. <br><br>
  338. </td>
  339. </tr>
  340. <tr>
  341. <td class="vst-text step-left">
  342. <?php print __('Maximum Number Of Databases') ?>
  343. </td>
  344. </tr>
  345. <tr>
  346. <td class="step-left">
  347. <input type="text" size="20" class="vst-input" name="v_mysql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  348. <br><br>
  349. </td>
  350. </tr>
  351. <tr>
  352. <td class="vst-text step-left">
  353. <?php print __('Current Number Of Databases') ?>
  354. </td>
  355. </tr>
  356. <tr>
  357. <td class="step-left">
  358. <input type="text" size="20" class="vst-input" name="v_mysql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  359. <br><br><br><br>
  360. </td>
  361. </tr>
  362. <?php }} ?>
  363. <tr>
  364. <td class="vst-text input-label">
  365. <?php print __('PostgreSQL Support');?> / <a class="generate" href="/edit/server/postgresql/"><?=__('configure')?></a>
  366. </td>
  367. </tr>
  368. <tr>
  369. <td>
  370. <select class="vst-list" name="v_pgsql" disabled>
  371. <option value='no'><?php print __('no'); ?></option>
  372. <option value='yes' <?php if($v_pgsql == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  373. </select>
  374. <br><br>
  375. </td>
  376. </tr>
  377. <?php if ($v_pgsql == 'yes') { ?>
  378. <tr>
  379. <td class="vst-text">
  380. <?php print __('phpPgAdmin URL') ?>
  381. </td>
  382. </tr>
  383. <tr>
  384. <td>
  385. <input type="text" size="20" class="vst-input" name="v_pgsql_url" value="<?php echo $_SESSION['DB_PGA_URL']; ?>">
  386. <br><br>
  387. </td>
  388. </tr>
  389. <?php } ?>
  390. <?php if ($v_pgsql == 'yes') {
  391. $i = 0;
  392. foreach ($v_pgsql_hosts as $value) {
  393. $i++;
  394. ?>
  395. <tr>
  396. <td class="vst-text step-left">
  397. <?php print __('Host'). ' #'.$i ?>
  398. </td>
  399. </tr>
  400. <tr>
  401. <td class="step-left">
  402. <input type="text" size="20" class="vst-input" name="v_pgsql_host" value="<?=$value['HOST']?>" disabled>
  403. <br><br>
  404. </td>
  405. </tr>
  406. <tr>
  407. <td class="vst-text step-left">
  408. <?php print __('Maximum Number Of Databases') ?>
  409. </td>
  410. </tr>
  411. <tr>
  412. <td class="step-left">
  413. <input type="text" size="20" class="vst-input" name="v_psql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  414. <br><br>
  415. </td>
  416. </tr>
  417. <tr>
  418. <td class="vst-text step-left">
  419. <?php print __('Current Number Of Databases') ?>
  420. </td>
  421. </tr>
  422. <tr>
  423. <td class="step-left">
  424. <input type="text" size="20" class="vst-input" name="v_pgsql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  425. <br><br><br><br>
  426. </td>
  427. </tr>
  428. <?php }} ?>
  429. </table>
  430. </td>
  431. </tr>
  432. <tr>
  433. <td class="vst-text input-label step-top">
  434. <a href="javascript:elementHideShow('backup');" class="vst-text">
  435. <b><?php print __('BACKUP');?> <img src="/images/arrow.png"></b>
  436. </a>
  437. </td>
  438. </tr>
  439. <tr>
  440. <td class="vst-text input-label step-left">
  441. <table style="display:<?php if (empty($v_backup_adv)) echo 'none';?> ;" id="backup">
  442. <tr>
  443. <td class="vst-text">
  444. <?php print __('Local backup') ?>
  445. </td>
  446. </tr>
  447. <tr>
  448. <td>
  449. <select class="vst-list" name="v_backup">
  450. <option value='no'><?php print __('no'); ?></option>
  451. <option value='yes' <?php if($v_backup == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  452. </select>
  453. <br><br>
  454. </td>
  455. </tr>
  456. <tr>
  457. <td class="vst-text">
  458. <?php print __('Compression level') ?>
  459. </td>
  460. </tr>
  461. <tr>
  462. <td>
  463. <select class="vst-list" name="v_backup_gzip">
  464. <option value='1' <?php if($v_backup_gzip == '1') echo 'selected' ?>>1</option>
  465. <option value='2' <?php if($v_backup_gzip == '2') echo 'selected' ?>>2</option>
  466. <option value='3' <?php if($v_backup_gzip == '3') echo 'selected' ?>>3</option>
  467. <option value='4' <?php if($v_backup_gzip == '4') echo 'selected' ?>>4</option>
  468. <option value='5' <?php if($v_backup_gzip == '5') echo 'selected' ?>>5</option>
  469. <option value='6' <?php if($v_backup_gzip == '6') echo 'selected' ?>>6</option>
  470. <option value='7' <?php if($v_backup_gzip == '7') echo 'selected' ?>>7</option>
  471. <option value='8' <?php if($v_backup_gzip == '8') echo 'selected' ?>>8</option>
  472. <option value='9' <?php if($v_backup_gzip == '9') echo 'selected' ?>>9</option>
  473. </select>
  474. <br><br>
  475. </td>
  476. </tr>
  477. <tr>
  478. <td class="vst-text">
  479. <?php print __('Directory') ?>
  480. </td>
  481. </tr>
  482. <tr>
  483. <td>
  484. <input type="text" size="20" class="vst-input" name="v_backup_dir" value="<?=trim($v_backup_dir, "'")?>">
  485. <br><br>
  486. </td>
  487. </tr> <tr>
  488. <td class="vst-text input-label step-top">
  489. <a href="javascript:elementHideShow('remote_backup');" class="vst-text">
  490. <?php print __('Remote backup');?> <img src="/images/arrow.png">
  491. </a>
  492. </td>
  493. </tr>
  494. <tr>
  495. <td class="vst-text input-label step-left">
  496. <table style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;" id="remote_backup">
  497. <td class="vst-text">
  498. <?php print __('Protocol') ?>
  499. </td>
  500. </tr>
  501. <tr>
  502. <td>
  503. <select class="vst-list" name="v_backup_type">
  504. <option value='ftp'><?php print __('ftp'); ?></option>
  505. <option value='sftp' <?php if((!empty($v_backup_type)) && ($v_backup_type == 'sftp')) echo 'selected' ?> ><?php print __('sftp'); ?></option>
  506. </select>
  507. <br><br>
  508. </td>
  509. </tr>
  510. <tr>
  511. <td class="vst-text">
  512. <?php print __('Host') ?>
  513. </td>
  514. </tr>
  515. <tr>
  516. <td>
  517. <input type="text" size="20" class="vst-input" name="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
  518. <br><br>
  519. </td>
  520. </tr>
  521. <tr>
  522. <td class="vst-text">
  523. <?php print __('Username') ?>
  524. </td>
  525. </tr>
  526. <tr>
  527. <td>
  528. <input type="text" size="20" class="vst-input" name="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
  529. <br><br>
  530. </td>
  531. </tr>
  532. <tr>
  533. <td class="vst-text">
  534. <?php print __('Password') ?>
  535. </td>
  536. </tr>
  537. <tr>
  538. <td>
  539. <input type="text" size="20" class="vst-input" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
  540. <br><br>
  541. </td>
  542. </tr>
  543. <tr>
  544. <td class="vst-text">
  545. <?php print __('Directory') ?>
  546. </td>
  547. </tr>
  548. <tr>
  549. <td>
  550. <input type="text" size="20" class="vst-input" name="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
  551. <br><br>
  552. </td>
  553. </tr>
  554. </table>
  555. </td>
  556. </tr>
  557. </table>
  558. </td>
  559. </tr>
  560. <tr>
  561. <td class="vst-text input-label step-top">
  562. <a href="javascript:elementHideShow('ssl');" class="vst-text">
  563. <b><?php print __('Vesta SSL');?> <!-- span style="color:#ff6701;font-size:10px; padding:0 10px;">preview</span--><img src="/images/arrow.png"></b>
  564. </a>
  565. </td>
  566. </tr>
  567. <tr>
  568. <td class="vst-text input-label step-left">
  569. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="ssl">
  570. <tr>
  571. <td class="vst-text input-label">
  572. <?php print __('SSL Certificate');?>
  573. </td>
  574. </tr>
  575. <tr>
  576. <td>
  577. <textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
  578. </td>
  579. </tr>
  580. <tr>
  581. <td class="vst-text input-label">
  582. <?php print __('SSL Key');?>
  583. </td>
  584. </tr>
  585. <tr>
  586. <td>
  587. <textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
  588. </td>
  589. </tr>
  590. <tr>
  591. <td>
  592. <table class="additional-info">
  593. <tr>
  594. <td>
  595. <?=__('SUBJECT')?>:
  596. </td>
  597. <td class="details">
  598. <?=$v_ssl_subject?>
  599. </td>
  600. </tr>
  601. <? if($v_ssl_aliases){?>
  602. <tr>
  603. <td>
  604. <?=__('ALIASES')?>:
  605. </td>
  606. <td class="details">
  607. <?=$v_ssl_aliases?>
  608. </td>
  609. </tr>
  610. <? } ?>
  611. <tr>
  612. <td>
  613. <?=__('NOT_BEFORE')?>:
  614. </td>
  615. <td class="details">
  616. <?=$v_ssl_not_before?>
  617. </td>
  618. </tr>
  619. <tr>
  620. <td>
  621. <?=__('NOT_AFTER')?>:
  622. </td>
  623. <td class="details">
  624. <?=$v_ssl_not_after?>
  625. </td>
  626. </tr>
  627. <tr>
  628. <td>
  629. <?=__('SIGNATURE')?>:
  630. </td>
  631. <td class="details">
  632. <?=$v_ssl_signature?>
  633. </td>
  634. </tr>
  635. <tr>
  636. <td>
  637. <?=__('PUB_KEY')?>:
  638. </td>
  639. <td class="details">
  640. <?=$v_ssl_pub_key?>
  641. </td>
  642. </tr>
  643. <tr>
  644. <td>
  645. <?=__('ISSUER')?>:
  646. </td>
  647. <td class="details">
  648. <?=$v_ssl_issuer?>
  649. </td>
  650. </tr>
  651. </table>
  652. </td>
  653. </tr>
  654. </table>
  655. </td>
  656. </tr>
  657. <tr>
  658. <td class="vst-text input-label step-top">
  659. <a href="javascript:elementHideShow('vesta');" class="vst-text">
  660. <b><?php print __('Vesta Control Panel Plugins');?> <!-- span style="color:#ff6701;font-size:10px; padding:0 10px;">preview</span--><img src="/images/arrow.png"></b>
  661. </a>
  662. </td>
  663. </tr>
  664. <tr>
  665. <td class="vst-text input-label step-left">
  666. <table style="display:<?php if (empty($v_adv) && $_GET['lead'] != 'filemanager' && $_GET['lead'] != 'sftp') echo 'none';?> ;" id="vesta">
  667. <tr>
  668. <td class="vst-text">
  669. <?php print __('Version') ?>
  670. </td>
  671. </tr>
  672. <tr>
  673. <td>
  674. <input type="text" size="20" class="vst-input" name="v_version" value="<?php echo $_SESSION['VERSION']; ?>" disabled>
  675. <br><br>
  676. </td>
  677. </tr>
  678. <tr>
  679. <td class="vst-text">
  680. <?php print __('FileSystem Disk Quota');?>
  681. </td>
  682. </tr>
  683. <tr>
  684. <td>
  685. <select class="vst-list" name="v_quota">
  686. <option value='no'><?php print __('no'); ?></option>
  687. <option value='yes' <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  688. </select>
  689. <br><br>
  690. </td>
  691. </tr>
  692. <tr>
  693. <td class="vst-text input-label">
  694. <?php print __('Firewall');?>
  695. </td>
  696. </tr>
  697. <tr>
  698. <td>
  699. <select class="vst-list" name="v_firewall">
  700. <option value='no'><?php print __('no'); ?></option>
  701. <option value='yes' <?php if($_SESSION['FIREWALL_SYSTEM'] == 'iptables') echo 'selected' ?> ><?php print __('yes'); ?></option>
  702. </select>
  703. <br><br>
  704. </td>
  705. </tr>
  706. <tr>
  707. <td class="vst-text">
  708. <?php print __('Reseller Role') ?>
  709. </td>
  710. </tr>
  711. <tr>
  712. <td>
  713. <select class="vst-list" name="v_reseller" disabled="disabled">
  714. <option value='no'><?php print __('no'); ?></option>
  715. </select>
  716. <br><br>
  717. </td>
  718. </tr>
  719. <tr>
  720. <td class="vst-text">
  721. <?php print __('Backup Migration Manager') ?>
  722. </td>
  723. </tr>
  724. <tr>
  725. <td>
  726. <select class="vst-list" name="v_backup_manager" disabled="disabled">
  727. <option value='no'><?php print __('no'); ?></option>
  728. </select>
  729. <br><br>
  730. </td>
  731. </tr>
  732. <tr>
  733. <td class="vst-text" id="module-sftp">
  734. <?php print __('SFTP Chroot') ?>
  735. </td>
  736. </tr>
  737. <tr>
  738. <td>
  739. <select class="vst-list" name="v_sftp">
  740. <?
  741. if($_SESSION['SFTPJAIL_KEY']){
  742. echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
  743. } else {
  744. echo '<option value="no">'.__('no').'</option>';
  745. }
  746. ?>
  747. <option value='yes' <? if($_GET['lead'] == 'sftp' || $_SESSION['SFTPJAIL_KEY'] != '') echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
  748. </select>
  749. <br><br>
  750. <div class="sftp description" <? if($_GET['lead'] != 'sftp' && !$_SESSION['SFTPJAIL_KEY']) echo 'style="display:none"'; ?>>
  751. <?
  752. if($_GET['sftp_licence_key'] != '' || $_SESSION['SFTPJAIL_KEY']){
  753. $licence_key = $_GET['sftp_licence_key'] != '' ? $_GET['sftp_licence_key'] : $_SESSION['SFTPJAIL_KEY'];
  754. echo __('Restrict users so that they cannot use SSH and access only their home directory.').'
  755. <div class="licence">
  756. '.__('Licence Key').': <input type="text" class="vst-input" name="v_sftp_licence" value="'.htmlentities($licence_key).'" /><br>
  757. </div>';
  758. } else {
  759. echo
  760. __('Restrict users so that they cannot use SSH and access only their home directory.').' '.__('This is a commercial module, you would need to purchace license key to enable it.').
  761. '<div class="licence">
  762. '.__('Enter License Key').': <input type="text" class="vst-input" name="v_sftp_licence" /><br>
  763. </div>
  764. <ul>
  765. <li>
  766. <a href="https://vestacp.com/checkout/2co.php?product_id=6&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Licence').' 3$/'.__('month').'</a>
  767. </li>
  768. <li>
  769. <a href="https://vestacp.com/checkout/2co.php?product_id=9&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime License').' 18$</a>
  770. </li>
  771. </ul>
  772. <span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
  773. }
  774. ?>
  775. </div>
  776. </td>
  777. </tr>
  778. <tr>
  779. <td class="vst-text" id="module-filemanager">
  780. <?php print __('File Manager') ?>
  781. </td>
  782. </tr>
  783. <tr>
  784. <td>
  785. <select class="vst-list" name="v_filemanager">
  786. <?
  787. if($_SESSION['FILEMANAGER_KEY']){
  788. echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
  789. } else {
  790. echo '<option value="no">'.__('no').'</option>';
  791. }
  792. ?>
  793. <option value='yes' <? if($_GET['lead'] == 'filemanager' || $_SESSION['FILEMANAGER_KEY']) echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
  794. </select>
  795. <br><br>
  796. <div class="filemanager description" <? if($_GET['lead'] != 'filemanager' && !$_SESSION['FILEMANAGER_KEY']) echo 'style="display:none"'; ?>>
  797. <?
  798. if($_GET['filemanager_licence_key'] != '' || $_SESSION['FILEMANAGER_KEY']){
  799. $licence_key = $_GET['filemanager_licence_key'] != '' ? $_GET['filemanager_licence_key'] : $_SESSION['FILEMANAGER_KEY'];
  800. echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').
  801. '<div class="licence">
  802. '.__('Licence Key').': <input type="text" class="vst-input" name="v_filemanager_licence" value="'.htmlentities($licence_key).'" /><br>
  803. </div>';
  804. } else {
  805. echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').' '.
  806. __('This is a commercial module, you would need to purchace license key to enable it.').
  807. '<div class="licence">
  808. '.__('Enter License Key').': <input type="text" class="vst-input" name="v_filemanager_licence" /><br>
  809. </div>
  810. <ul>
  811. <li>
  812. <a href="https://vestacp.com/checkout/2co.php?product_id=7&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Licence').' 5$/'.__('month').'</a>
  813. </li>
  814. <li>
  815. <a href="https://vestacp.com/checkout/2co.php?product_id=8&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime License').' 50$</a>
  816. </li>
  817. </ul>
  818. <span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
  819. }
  820. ?>
  821. </div>
  822. </td>
  823. </tr>
  824. <tr>
  825. <td class="vst-text" id="module-softaculous">
  826. <?php print __('Softaculous') ?>
  827. </td>
  828. </tr>
  829. <tr>
  830. <td>
  831. <select class="vst-list" name="v_softaculous">
  832. <option value='no'><?=__('no')?></option>
  833. <option value='yes' <? if($_GET['lead'] == 'softaculous' || $_SESSION['SOFTACULOUS'] == 'yes') echo 'selected="selected"'; ?>><?=__('yes')?></option>
  834. </select>
  835. <br><br>
  836. <div class="softaculous description" <? if ($_SESSION['SOFTACULOUS'] != 'yes') { ?>style="display:none" <? } ?>>
  837. <h5>* plugin installation will run in background</h5>
  838. Softaculous is a great Auto Installer having 426 great scripts, 1115 PHP Classes
  839. and we are still adding more. Softaculous is ideal for Web Hosting companies and
  840. it could give a significant boost to your sales. These scripts cover most of the
  841. uses a customer could ever have. We have covered a wide array of Categories so that
  842. everyone could find the required script one would need to power their Web Site.
  843. <ul>
  844. <li>
  845. <a href="https://www.softaculous.com/softaculous/" class="purchase" target="_blank"><?=__('Get Premium License')?></a>
  846. </li>
  847. </ul>
  848. </div>
  849. </td>
  850. </tr>
  851. </table>
  852. </td>
  853. </tr>
  854. </table>
  855. <table class="data-col2">
  856. <tr>
  857. <td class="step-top" width="116px">
  858. <input type="submit" class="button" name="save" value="<?=__('Save')?>">
  859. </td>
  860. <td class="step-top">
  861. <input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
  862. </td>
  863. </tr>
  864. </table>
  865. </td>
  866. </tr>
  867. </table>
  868. </form>
  869. </div>