edit_server.html 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963
  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. <tr>
  274. <td class="vst-text step-top">
  275. <label>
  276. <input type="checkbox" class="vst-checkbox use_relay" name="v_mail_relay"">
  277. <?=__('Use relay')?>
  278. </label>
  279. </td>
  280. </tr>
  281. <tr class="mail-relay" style="display: none;">
  282. <td>
  283. <table>
  284. <tr>
  285. <td class="vst-text step-left input-label">
  286. <?php print __('Hostname');?><br>
  287. <span style="font-size: 10pt; color:#777;"><?=__('enter hostname or IP address');?></span>
  288. </td>
  289. </tr>
  290. <tr>
  291. <td class="step-left">
  292. <input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_hostname" value="<?=htmlentities(trim($v_relay_hostname, "'"))?>">
  293. </td>
  294. </tr>
  295. <tr>
  296. <td class="vst-text step-left input-label">
  297. <?php print __('Port');?><br>
  298. </td>
  299. </tr>
  300. <tr>
  301. <td class="step-left">
  302. <input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_port" value="<?=htmlentities(trim($v_relay_port, "'"))?>">
  303. </td>
  304. </tr>
  305. <tr>
  306. <td class="vst-text step-left input-label">
  307. <?php print __('Username');?><br>
  308. </td>
  309. </tr>
  310. <tr>
  311. <td class="step-left">
  312. <input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_username" value="<?=htmlentities(trim($v_relay_username, "'"))?>">
  313. </td>
  314. </tr>
  315. <tr>
  316. <td class="vst-text step-left input-label">
  317. <?php print __('Password');?><br>
  318. </td>
  319. </tr>
  320. <tr>
  321. <td class="step-left">
  322. <input type="text" size="20" class="vst-input v-ftp-user" name="v_relay_password" value="<?=htmlentities(trim($v_relay_password, "'"))?>">
  323. </td>
  324. </tr>
  325. </table>
  326. </td>
  327. </tr>
  328. </table>
  329. </td>
  330. </tr>
  331. <tr>
  332. <td class="vst-text input-label step-top">
  333. <a href="javascript:elementHideShow('db');" class="vst-text">
  334. <b><?php print __('DB');?> <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_db_adv)) echo 'none';?> ;" id="db">
  341. <tr>
  342. <td class="vst-text input-label">
  343. <?php print __('MySQL Support');?> / <a class="generate" href="/edit/server/mysql/"><?=__('configure')?></a>
  344. </td>
  345. </tr>
  346. <tr>
  347. <td>
  348. <select class="vst-list" name="v_mysql" disabled>
  349. <option value='no'><?php print __('no'); ?></option>
  350. <option value='yes' <?php if($v_mysql == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  351. </select>
  352. <br><br>
  353. </td>
  354. </tr>
  355. <?php if ($v_mysql == 'yes') { ?>
  356. <tr>
  357. <td class="vst-text">
  358. <?php print __('phpMyAdmin URL') ?>
  359. </td>
  360. </tr>
  361. <tr>
  362. <td>
  363. <input type="text" size="20" class="vst-input" name="v_mysql_url" value="<?php echo $_SESSION['DB_PMA_URL']; ?>">
  364. <br><br>
  365. </td>
  366. </tr>
  367. <?php } ?>
  368. <?php if ($v_mysql == 'yes') {
  369. $i = 0;
  370. foreach ($v_mysql_hosts as $value) {
  371. $i++;
  372. ?>
  373. <tr>
  374. <td class="vst-text step-left">
  375. <?php print __('Host'). ' #'.$i ?>
  376. </td>
  377. </tr>
  378. <tr>
  379. <td class="step-left">
  380. <input type="text" size="20" class="vst-input" name="v_mysql_host" value="<?=$value['HOST']?>" disabled>
  381. <br><br>
  382. </td>
  383. </tr>
  384. <tr>
  385. <td class="vst-text step-left">
  386. <?php print __('Password') ?>
  387. </td>
  388. </tr>
  389. <tr>
  390. <td class="step-left">
  391. <input type="text" size="20" class="vst-input" name="v_mysql_password" value="">
  392. <br><br>
  393. </td>
  394. </tr>
  395. <tr>
  396. <td class="vst-text step-left">
  397. <?php print __('Maximum Number Of Databases') ?>
  398. </td>
  399. </tr>
  400. <tr>
  401. <td class="step-left">
  402. <input type="text" size="20" class="vst-input" name="v_mysql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  403. <br><br>
  404. </td>
  405. </tr>
  406. <tr>
  407. <td class="vst-text step-left">
  408. <?php print __('Current 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_mysql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  414. <br><br><br><br>
  415. </td>
  416. </tr>
  417. <?php }} ?>
  418. <tr>
  419. <td class="vst-text input-label">
  420. <?php print __('PostgreSQL Support');?> / <a class="generate" href="/edit/server/postgresql/"><?=__('configure')?></a>
  421. </td>
  422. </tr>
  423. <tr>
  424. <td>
  425. <select class="vst-list" name="v_pgsql" disabled>
  426. <option value='no'><?php print __('no'); ?></option>
  427. <option value='yes' <?php if($v_pgsql == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  428. </select>
  429. <br><br>
  430. </td>
  431. </tr>
  432. <?php if ($v_pgsql == 'yes') { ?>
  433. <tr>
  434. <td class="vst-text">
  435. <?php print __('phpPgAdmin URL') ?>
  436. </td>
  437. </tr>
  438. <tr>
  439. <td>
  440. <input type="text" size="20" class="vst-input" name="v_pgsql_url" value="<?php echo $_SESSION['DB_PGA_URL']; ?>">
  441. <br><br>
  442. </td>
  443. </tr>
  444. <?php } ?>
  445. <?php if ($v_pgsql == 'yes') {
  446. $i = 0;
  447. foreach ($v_pgsql_hosts as $value) {
  448. $i++;
  449. ?>
  450. <tr>
  451. <td class="vst-text step-left">
  452. <?php print __('Host'). ' #'.$i ?>
  453. </td>
  454. </tr>
  455. <tr>
  456. <td class="step-left">
  457. <input type="text" size="20" class="vst-input" name="v_pgsql_host" value="<?=$value['HOST']?>" disabled>
  458. <br><br>
  459. </td>
  460. </tr>
  461. <tr>
  462. <td class="vst-text step-left">
  463. <?php print __('Maximum Number Of Databases') ?>
  464. </td>
  465. </tr>
  466. <tr>
  467. <td class="step-left">
  468. <input type="text" size="20" class="vst-input" name="v_psql_max" value="<?php echo $value['MAX_DB']; ?>" disabled>
  469. <br><br>
  470. </td>
  471. </tr>
  472. <tr>
  473. <td class="vst-text step-left">
  474. <?php print __('Current Number Of Databases') ?>
  475. </td>
  476. </tr>
  477. <tr>
  478. <td class="step-left">
  479. <input type="text" size="20" class="vst-input" name="v_pgsql_max" value="<?php echo $value['U_DB_BASES']; ?>" disabled>
  480. <br><br><br><br>
  481. </td>
  482. </tr>
  483. <?php }} ?>
  484. </table>
  485. </td>
  486. </tr>
  487. <tr>
  488. <td class="vst-text input-label step-top">
  489. <a href="javascript:elementHideShow('backup');" class="vst-text">
  490. <b><?php print __('BACKUP');?> <img src="/images/arrow.png"></b>
  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_adv)) echo 'none';?> ;" id="backup">
  497. <tr>
  498. <td class="vst-text">
  499. <?php print __('Local backup') ?>
  500. </td>
  501. </tr>
  502. <tr>
  503. <td>
  504. <select class="vst-list" name="v_backup">
  505. <option value='no'><?php print __('no'); ?></option>
  506. <option value='yes' <?php if($v_backup == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  507. </select>
  508. <br><br>
  509. </td>
  510. </tr>
  511. <tr>
  512. <td class="vst-text">
  513. <?php print __('Compression level') ?>
  514. </td>
  515. </tr>
  516. <tr>
  517. <td>
  518. <select class="vst-list" name="v_backup_gzip">
  519. <option value='1' <?php if($v_backup_gzip == '1') echo 'selected' ?>>1</option>
  520. <option value='2' <?php if($v_backup_gzip == '2') echo 'selected' ?>>2</option>
  521. <option value='3' <?php if($v_backup_gzip == '3') echo 'selected' ?>>3</option>
  522. <option value='4' <?php if($v_backup_gzip == '4') echo 'selected' ?>>4</option>
  523. <option value='5' <?php if($v_backup_gzip == '5') echo 'selected' ?>>5</option>
  524. <option value='6' <?php if($v_backup_gzip == '6') echo 'selected' ?>>6</option>
  525. <option value='7' <?php if($v_backup_gzip == '7') echo 'selected' ?>>7</option>
  526. <option value='8' <?php if($v_backup_gzip == '8') echo 'selected' ?>>8</option>
  527. <option value='9' <?php if($v_backup_gzip == '9') echo 'selected' ?>>9</option>
  528. </select>
  529. <br><br>
  530. </td>
  531. </tr>
  532. <tr>
  533. <td class="vst-text">
  534. <?php print __('Directory') ?>
  535. </td>
  536. </tr>
  537. <tr>
  538. <td>
  539. <input type="text" size="20" class="vst-input" name="v_backup_dir" value="<?=trim($v_backup_dir, "'")?>">
  540. <br><br>
  541. </td>
  542. </tr> <tr>
  543. <td class="vst-text input-label step-top">
  544. <a href="javascript:elementHideShow('remote_backup');" class="vst-text">
  545. <?php print __('Remote backup');?> <img src="/images/arrow.png">
  546. </a>
  547. </td>
  548. </tr>
  549. <tr>
  550. <td class="vst-text input-label step-left">
  551. <table style="display:<?php if (empty($v_backup_remote_adv)) echo 'none';?> ;" id="remote_backup">
  552. <td class="vst-text">
  553. <?php print __('Protocol') ?>
  554. </td>
  555. </tr>
  556. <tr>
  557. <td>
  558. <select class="vst-list" name="v_backup_type">
  559. <option value='ftp'><?php print __('ftp'); ?></option>
  560. <option value='sftp' <?php if((!empty($v_backup_type)) && ($v_backup_type == 'sftp')) echo 'selected' ?> ><?php print __('sftp'); ?></option>
  561. </select>
  562. <br><br>
  563. </td>
  564. </tr>
  565. <tr>
  566. <td class="vst-text">
  567. <?php print __('Host') ?>
  568. </td>
  569. </tr>
  570. <tr>
  571. <td>
  572. <input type="text" size="20" class="vst-input" name="v_backup_host" value="<?=trim($v_backup_host, "'")?>">
  573. <br><br>
  574. </td>
  575. </tr>
  576. <tr>
  577. <td class="vst-text">
  578. <?php print __('Username') ?>
  579. </td>
  580. </tr>
  581. <tr>
  582. <td>
  583. <input type="text" size="20" class="vst-input" name="v_backup_username" value="<?=trim($v_backup_username, "'")?>">
  584. <br><br>
  585. </td>
  586. </tr>
  587. <tr>
  588. <td class="vst-text">
  589. <?php print __('Password') ?>
  590. </td>
  591. </tr>
  592. <tr>
  593. <td>
  594. <input type="text" size="20" class="vst-input" name="v_backup_password" value="<?=trim($v_backup_password, "'")?>">
  595. <br><br>
  596. </td>
  597. </tr>
  598. <tr>
  599. <td class="vst-text">
  600. <?php print __('Directory') ?>
  601. </td>
  602. </tr>
  603. <tr>
  604. <td>
  605. <input type="text" size="20" class="vst-input" name="v_backup_bpath" value="<?=trim($v_backup_bpath, "'")?>">
  606. <br><br>
  607. </td>
  608. </tr>
  609. </table>
  610. </td>
  611. </tr>
  612. </table>
  613. </td>
  614. </tr>
  615. <tr>
  616. <td class="vst-text input-label step-top">
  617. <a href="javascript:elementHideShow('ssl');" class="vst-text">
  618. <b><?php print __('Vesta SSL');?> <!-- span style="color:#ff6701;font-size:10px; padding:0 10px;">preview</span--><img src="/images/arrow.png"></b>
  619. </a>
  620. </td>
  621. </tr>
  622. <tr>
  623. <td class="vst-text input-label step-left">
  624. <table style="display:<?php if (empty($v_adv)) echo 'none';?> ;" id="ssl">
  625. <tr>
  626. <td class="vst-text input-label">
  627. <?php print __('SSL Certificate');?>
  628. </td>
  629. </tr>
  630. <tr>
  631. <td>
  632. <textarea size="20" class="vst-textinput" name="v_ssl_crt"><?=htmlentities(trim($v_ssl_crt, "'"))?></textarea>
  633. </td>
  634. </tr>
  635. <tr>
  636. <td class="vst-text input-label">
  637. <?php print __('SSL Key');?>
  638. </td>
  639. </tr>
  640. <tr>
  641. <td>
  642. <textarea size="20" class="vst-textinput" name="v_ssl_key"><?=htmlentities(trim($v_ssl_key, "'"))?></textarea>
  643. </td>
  644. </tr>
  645. <tr>
  646. <td>
  647. <table class="additional-info">
  648. <tr>
  649. <td>
  650. <?=__('SUBJECT')?>:
  651. </td>
  652. <td class="details">
  653. <?=$v_ssl_subject?>
  654. </td>
  655. </tr>
  656. <? if($v_ssl_aliases){?>
  657. <tr>
  658. <td>
  659. <?=__('ALIASES')?>:
  660. </td>
  661. <td class="details">
  662. <?=$v_ssl_aliases?>
  663. </td>
  664. </tr>
  665. <? } ?>
  666. <tr>
  667. <td>
  668. <?=__('NOT_BEFORE')?>:
  669. </td>
  670. <td class="details">
  671. <?=$v_ssl_not_before?>
  672. </td>
  673. </tr>
  674. <tr>
  675. <td>
  676. <?=__('NOT_AFTER')?>:
  677. </td>
  678. <td class="details">
  679. <?=$v_ssl_not_after?>
  680. </td>
  681. </tr>
  682. <tr>
  683. <td>
  684. <?=__('SIGNATURE')?>:
  685. </td>
  686. <td class="details">
  687. <?=$v_ssl_signature?>
  688. </td>
  689. </tr>
  690. <tr>
  691. <td>
  692. <?=__('PUB_KEY')?>:
  693. </td>
  694. <td class="details">
  695. <?=$v_ssl_pub_key?>
  696. </td>
  697. </tr>
  698. <tr>
  699. <td>
  700. <?=__('ISSUER')?>
  701. </td>
  702. <td class="details">
  703. <?=$v_ssl_issuer?>
  704. </td>
  705. </tr>
  706. </table>
  707. </td>
  708. </tr>
  709. </table>
  710. </td>
  711. </tr>
  712. <tr>
  713. <td class="vst-text input-label step-top">
  714. <a href="javascript:elementHideShow('vesta');" class="vst-text">
  715. <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>
  716. </a>
  717. </td>
  718. </tr>
  719. <tr>
  720. <td class="vst-text input-label step-left">
  721. <table style="display:<?php if (empty($v_adv) && $_GET['lead'] != 'filemanager' && $_GET['lead'] != 'sftp') echo 'none';?> ;" id="vesta">
  722. <tr>
  723. <td class="vst-text">
  724. <?php print __('Version') ?>
  725. </td>
  726. </tr>
  727. <tr>
  728. <td>
  729. <input type="text" size="20" class="vst-input" name="v_version" value="<?php echo $_SESSION['VERSION']; ?>" disabled>
  730. <br><br>
  731. </td>
  732. </tr>
  733. <tr>
  734. <td class="vst-text">
  735. <?php print __('FileSystem Disk Quota');?>
  736. </td>
  737. </tr>
  738. <tr>
  739. <td>
  740. <select class="vst-list" name="v_quota">
  741. <option value='no'><?php print __('no'); ?></option>
  742. <option value='yes' <?php if($_SESSION['DISK_QUOTA'] == 'yes') echo 'selected' ?> ><?php print __('yes'); ?></option>
  743. </select>
  744. <br><br>
  745. </td>
  746. </tr>
  747. <tr>
  748. <td class="vst-text input-label">
  749. <?php print __('Firewall');?>
  750. </td>
  751. </tr>
  752. <tr>
  753. <td>
  754. <select class="vst-list" name="v_firewall">
  755. <option value='no'><?php print __('no'); ?></option>
  756. <option value='yes' <?php if($_SESSION['FIREWALL_SYSTEM'] == 'iptables') echo 'selected' ?> ><?php print __('yes'); ?></option>
  757. </select>
  758. <br><br>
  759. </td>
  760. </tr>
  761. <tr>
  762. <td class="vst-text">
  763. <?php print __('Reseller Role') ?>
  764. </td>
  765. </tr>
  766. <tr>
  767. <td>
  768. <select class="vst-list" name="v_reseller" disabled="disabled">
  769. <option value='no'><?php print __('no'); ?></option>
  770. </select>
  771. <br><br>
  772. </td>
  773. </tr>
  774. <tr>
  775. <td class="vst-text">
  776. <?php print __('Backup Migration Manager') ?>
  777. </td>
  778. </tr>
  779. <tr>
  780. <td>
  781. <select class="vst-list" name="v_backup_manager" disabled="disabled">
  782. <option value='no'><?php print __('no'); ?></option>
  783. </select>
  784. <br><br>
  785. </td>
  786. </tr>
  787. <tr>
  788. <td class="vst-text" id="module-sftp">
  789. <?php print __('SFTP Chroot') ?>
  790. </td>
  791. </tr>
  792. <tr>
  793. <td>
  794. <select class="vst-list" name="v_sftp">
  795. <?
  796. if($_SESSION['SFTPJAIL_KEY']){
  797. echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
  798. } else {
  799. echo '<option value="no">'.__('no').'</option>';
  800. }
  801. ?>
  802. <option value='yes' <? if($_GET['lead'] == 'sftp' || $_SESSION['SFTPJAIL_KEY'] != '') echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
  803. </select>
  804. <br><br>
  805. <div class="sftp description" <? if($_GET['lead'] != 'sftp' && !$_SESSION['SFTPJAIL_KEY']) echo 'style="display:none"'; ?>>
  806. <?
  807. if($_GET['sftp_licence_key'] != '' || $_SESSION['SFTPJAIL_KEY']){
  808. $licence_key = $_GET['sftp_licence_key'] != '' ? $_GET['sftp_licence_key'] : $_SESSION['SFTPJAIL_KEY'];
  809. echo __('Restrict users so that they cannot use SSH and access only their home directory.').'
  810. <div class="licence">
  811. '.__('Licence Key').': <input type="text" class="vst-input" name="v_sftp_licence" value="'.htmlentities($licence_key).'" /><br>
  812. </div>';
  813. } else {
  814. echo
  815. __('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.').
  816. '<div class="licence">
  817. '.__('Enter License Key').': <input type="text" class="vst-input" name="v_sftp_licence" /><br>
  818. </div>
  819. <ul>
  820. <li>
  821. <a href="https://vestacp.com/checkout/2co.php?product_id=6&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Licence').' 1$/'.__('month').'</a>
  822. </li>
  823. <li>
  824. <a href="https://vestacp.com/checkout/2co.php?product_id=9&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime License').' 18$</a>
  825. </li>
  826. </ul>
  827. <span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
  828. }
  829. ?>
  830. </div>
  831. </td>
  832. </tr>
  833. <tr>
  834. <td class="vst-text" id="module-filemanager">
  835. <?php print __('File Manager') ?>
  836. </td>
  837. </tr>
  838. <tr>
  839. <td>
  840. <select class="vst-list" name="v_filemanager">
  841. <?
  842. if($_SESSION['FILEMANAGER_KEY']){
  843. echo '<option value="cancel">'.__('Disable and Cancel Licence').'</option>';
  844. } else {
  845. echo '<option value="no">'.__('no').'</option>';
  846. }
  847. ?>
  848. <option value='yes' <? if($_GET['lead'] == 'filemanager' || $_SESSION['FILEMANAGER_KEY']) echo 'selected="selected"'; ?>><?php print __('yes'); ?></option>
  849. </select>
  850. <br><br>
  851. <div class="filemanager description" <? if($_GET['lead'] != 'filemanager' && !$_SESSION['FILEMANAGER_KEY']) echo 'style="display:none"'; ?>>
  852. <?
  853. if($_GET['filemanager_licence_key'] != '' || $_SESSION['FILEMANAGER_KEY']){
  854. $licence_key = $_GET['filemanager_licence_key'] != '' ? $_GET['filemanager_licence_key'] : $_SESSION['FILEMANAGER_KEY'];
  855. echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').
  856. '<div class="licence">
  857. '.__('Licence Key').': <input type="text" class="vst-input" name="v_filemanager_licence" value="'.htmlentities($licence_key).'" /><br>
  858. </div>';
  859. } else {
  860. echo __('Browse, copy, edit, view, and retrieve all of your web domain files using fully featured File Manager.').' '.
  861. __('This is a commercial module, you would need to purchace license key to enable it.').
  862. '<div class="licence">
  863. '.__('Enter License Key').': <input type="text" class="vst-input" name="v_filemanager_licence" /><br>
  864. </div>
  865. <ul>
  866. <li>
  867. <a href="https://vestacp.com/checkout/2co.php?product_id=7&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Licence').' 3$/'.__('month').'</a>
  868. </li>
  869. <li>
  870. <a href="https://vestacp.com/checkout/2co.php?product_id=8&referer='.$_SERVER['HTTP_HOST'].'" class="purchase">'.__('Buy Lifetime License').' 50$</a>
  871. </li>
  872. </ul>
  873. <span class="twoco">2Checkout.com Inc. (Ohio, USA) is a payment facilitator for goods and services provided by vestacp.com.</span>';
  874. }
  875. ?>
  876. </div>
  877. </td>
  878. </tr>
  879. <tr>
  880. <td class="vst-text" id="module-softaculous">
  881. <?php print __('Softaculous') ?>
  882. </td>
  883. </tr>
  884. <tr>
  885. <td>
  886. <select class="vst-list" name="v_softaculous">
  887. <option value='no'><?=__('no')?></option>
  888. <option value='yes' <? if($_GET['lead'] == 'softaculous' || $_SESSION['SOFTACULOUS'] == 'yes') echo 'selected="selected"'; ?>><?=__('yes')?></option>
  889. </select>
  890. <br><br>
  891. <div class="softaculous description" <? if ($_SESSION['SOFTACULOUS'] != 'yes') { ?>style="display:none" <? } ?>>
  892. <h5>Web Application Installations Made Easy</h5>
  893. Softaculous is a great Auto Installer having 426 great scripts, 1115 PHP Classes
  894. and we are still adding more. Softaculous is ideal for Web Hosting companies and
  895. it could give a significant boost to your sales. These scripts cover most of the
  896. uses a customer could ever have. We have covered a wide array of Categories so that
  897. everyone could find the required script one would need to power their Web Site.
  898. <ul>
  899. <li>
  900. <a href="https://www.softaculous.com/softaculous/" class="purchase" target="_blank"><?=__('Get Premium License')?></a>
  901. </li>
  902. </ul>
  903. </div>
  904. </td>
  905. </tr>
  906. </table>
  907. </td>
  908. </tr>
  909. </table>
  910. <table class="data-col2">
  911. <tr>
  912. <td class="step-top" width="116px">
  913. <input type="submit" class="button" name="save" value="<?=__('Save')?>">
  914. </td>
  915. <td class="step-top">
  916. <input type="button" class="button cancel" value="<?=__('Back')?>" onclick="<?=$back?>">
  917. </td>
  918. </tr>
  919. </table>
  920. </td>
  921. </tr>
  922. </table>
  923. </form>
  924. </div>