/install/view/template/install/step_2.tpl

https://gitlab.com/shapcy/opencart · Smarty Template · 340 lines · 340 code · 0 blank · 0 comment · 68 complexity · 7d3f87c430a4df14f2d73425dc93a099 MD5 · raw file

  1. <?php echo $header; ?>
  2. <div class="container">
  3. <header>
  4. <div class="row">
  5. <div class="col-sm-6">
  6. <h1 class="pull-left">2<small>/4</small></h1>
  7. <h3><?php echo $heading_title; ?><br>
  8. <small><?php echo $text_step_2; ?></small></h3>
  9. </div>
  10. <div class="col-sm-6">
  11. <div id="logo" class="pull-right hidden-xs"><img src="view/image/logo.png" alt="OpenCart" title="OpenCart" /></div>
  12. </div>
  13. </div>
  14. </header>
  15. <?php if ($error_warning) { ?>
  16. <div class="alert alert-danger"><i class="fa fa-exclamation-circle"></i> <?php echo $error_warning; ?>
  17. <button type="button" class="close" data-dismiss="alert">&times;</button>
  18. </div>
  19. <?php } ?>
  20. <div class="row">
  21. <div class="col-sm-9">
  22. <form action="<?php echo $action; ?>" method="post" enctype="multipart/form-data">
  23. <p><?php echo $text_install_php; ?></p>
  24. <fieldset>
  25. <table class="table">
  26. <thead>
  27. <tr>
  28. <td width="35%"><b><?php echo $text_setting; ?></b></td>
  29. <td width="25%"><b><?php echo $text_current; ?></b></td>
  30. <td width="25%"><b><?php echo $text_required; ?></b></td>
  31. <td width="15%" class="text-center"><b><?php echo $text_status; ?></b></td>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. <tr>
  36. <td><?php echo $text_version; ?></td>
  37. <td><?php echo $php_version; ?></td>
  38. <td>5.3+</td>
  39. <td class="text-center"><?php if ($php_version >= '5.3') { ?>
  40. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  41. <?php } else { ?>
  42. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  43. <?php } ?></td>
  44. </tr>
  45. <tr>
  46. <td><?php echo $text_global; ?></td>
  47. <td><?php if ($register_globals) { ?>
  48. <?php echo $text_on; ?>
  49. <?php } else { ?>
  50. <?php echo $text_off; ?>
  51. <?php } ?></td>
  52. <td><?php echo $text_off; ?></td>
  53. <td class="text-center"><?php if (!$register_globals) { ?>
  54. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  55. <?php } else { ?>
  56. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  57. <?php } ?></td>
  58. </tr>
  59. <tr>
  60. <td><?php echo $text_magic; ?></td>
  61. <td><?php if ($magic_quotes_gpc) { ?>
  62. <?php echo $text_on; ?>
  63. <?php } else { ?>
  64. <?php echo $text_off; ?>
  65. <?php } ?></td>
  66. <td><?php echo $text_off; ?></td>
  67. <td class="text-center"><?php if (!$magic_quotes_gpc) { ?>
  68. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  69. <?php } else { ?>
  70. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  71. <?php } ?></td>
  72. </tr>
  73. <tr>
  74. <td><?php echo $text_file_upload; ?></td>
  75. <td><?php if ($file_uploads) { ?>
  76. <?php echo $text_on; ?>
  77. <?php } else { ?>
  78. <?php echo $text_off; ?>
  79. <?php } ?></td>
  80. <td><?php echo $text_on; ?></td>
  81. <td class="text-center"><?php if ($file_uploads) { ?>
  82. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  83. <?php } else { ?>
  84. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  85. <?php } ?></td>
  86. </tr>
  87. <tr>
  88. <td><?php echo $text_session; ?></td>
  89. <td><?php if ($session_auto_start) { ?>
  90. <?php echo $text_on; ?>
  91. <?php } else { ?>
  92. <?php echo $text_off; ?>
  93. <?php } ?></td>
  94. <td><?php echo $text_off; ?></td>
  95. <td class="text-center"><?php if (!$session_auto_start) { ?>
  96. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  97. <?php } else { ?>
  98. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  99. <?php } ?></td>
  100. </tr>
  101. </tbody>
  102. </table>
  103. </fieldset>
  104. <p><?php echo $text_install_extension; ?></p>
  105. <fieldset>
  106. <table class="table">
  107. <thead>
  108. <tr>
  109. <td width="35%"><b><?php echo $text_extension; ?></b></td>
  110. <td width="25%"><b><?php echo $text_current; ?></b></td>
  111. <td width="25%"><b><?php echo $text_required; ?></b></td>
  112. <td width="15%" class="text-center"><b><?php echo $text_status; ?></b></td>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr>
  117. <td><?php echo $text_db; ?></td>
  118. <td><?php if ($db) { ?>
  119. <?php echo $text_on; ?>
  120. <?php } else { ?>
  121. <?php echo $text_off; ?>
  122. <?php } ?></td>
  123. <td><?php echo $text_on; ?></td>
  124. <td class="text-center"><?php if ($db) { ?>
  125. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  126. <?php } else { ?>
  127. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  128. <?php } ?></td>
  129. </tr>
  130. <tr>
  131. <td><?php echo $text_gd; ?></td>
  132. <td><?php if ($gd) { ?>
  133. <?php echo $text_on; ?>
  134. <?php } else { ?>
  135. <?php echo $text_off; ?>
  136. <?php } ?></td>
  137. <td><?php echo $text_on; ?></td>
  138. <td class="text-center"><?php if ($gd) { ?>
  139. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  140. <?php } else { ?>
  141. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  142. <?php } ?></td>
  143. </tr>
  144. <tr>
  145. <td><?php echo $text_curl; ?></td>
  146. <td><?php if ($curl) { ?>
  147. <?php echo $text_on; ?>
  148. <?php } else { ?>
  149. <?php echo $text_off; ?>
  150. <?php } ?></td>
  151. <td><?php echo $text_on; ?></td>
  152. <td class="text-center"><?php if ($curl) { ?>
  153. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  154. <?php } else { ?>
  155. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  156. <?php } ?></td>
  157. </tr>
  158. <tr>
  159. <td><?php echo $text_mcrypt; ?></td>
  160. <td><?php if ($mcrypt_encrypt) { ?>
  161. <?php echo $text_on; ?>
  162. <?php } else { ?>
  163. <?php echo $text_off; ?>
  164. <?php } ?></td>
  165. <td><?php echo $text_on; ?></td>
  166. <td class="text-center"><?php if ($mcrypt_encrypt) { ?>
  167. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  168. <?php } else { ?>
  169. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  170. <?php } ?></td>
  171. </tr>
  172. <tr>
  173. <td><?php echo $text_zlib; ?></td>
  174. <td><?php if ($zlib) { ?>
  175. <?php echo $text_on; ?>
  176. <?php } else { ?>
  177. <?php echo $text_off; ?>
  178. <?php } ?></td>
  179. <td><?php echo $text_on; ?></td>
  180. <td class="text-center"><?php if ($zlib) { ?>
  181. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  182. <?php } else { ?>
  183. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  184. <?php } ?></td>
  185. </tr>
  186. <tr>
  187. <td><?php echo $text_zip; ?></td>
  188. <td><?php if ($zip) { ?>
  189. <?php echo $text_on; ?>
  190. <?php } else { ?>
  191. <?php echo $text_off; ?>
  192. <?php } ?></td>
  193. <td><?php echo $text_on; ?></td>
  194. <td class="text-center"><?php if ($zip) { ?>
  195. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  196. <?php } else { ?>
  197. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  198. <?php } ?></td>
  199. </tr>
  200. <?php if (!$iconv) { ?>
  201. <tr>
  202. <td><?php echo $text_mbstring; ?></td>
  203. <td><?php if ($mbstring) { ?>
  204. <?php echo $text_on; ?>
  205. <?php } else { ?>
  206. <?php echo $text_off; ?>
  207. <?php } ?></td>
  208. <td><?php echo $text_on; ?></td>
  209. <td class="text-center"><?php if ($mbstring) { ?>
  210. <span class="text-success"><i class="fa fa-check-circle"></i></span>
  211. <?php } else { ?>
  212. <span class="text-danger"><i class="fa fa-minus-circle"></i></span>
  213. <?php } ?></td>
  214. </tr>
  215. <?php } ?>
  216. </tbody>
  217. </table>
  218. </fieldset>
  219. <p><?php echo $text_install_file; ?></p>
  220. <fieldset>
  221. <table class="table">
  222. <thead>
  223. <tr>
  224. <td><b><?php echo $text_file; ?></b></td>
  225. <td><b><?php echo $text_status; ?></b></td>
  226. </tr>
  227. </thead>
  228. <tbody>
  229. <tr>
  230. <td><?php echo $config_catalog; ?></td>
  231. <td><?php if (!file_exists($config_catalog)) { ?>
  232. <span class="text-danger"><?php echo $text_missing; ?></span>
  233. <?php } elseif (!is_writable($config_catalog)) { ?>
  234. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  235. <?php } else { ?>
  236. <span class="text-success"><?php echo $text_writable; ?></span>
  237. <?php } ?></td>
  238. </tr>
  239. <tr>
  240. <td><?php echo $config_admin; ?></td>
  241. <td><?php if (!file_exists($config_admin)) { ?>
  242. <span class="text-danger"><?php echo $text_missing; ?></span>
  243. <?php } elseif (!is_writable($config_admin)) { ?>
  244. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  245. <?php } else { ?>
  246. <span class="text-success"><?php echo $text_writable; ?></span>
  247. <?php } ?></td>
  248. </tr>
  249. </tbody>
  250. </table>
  251. </fieldset>
  252. <p><?php echo $text_install_directory; ?></p>
  253. <fieldset>
  254. <table class="table">
  255. <thead>
  256. <tr>
  257. <td align="left"><b><?php echo $text_directory; ?></b></td>
  258. <td align="left"><b><?php echo $text_status; ?></b></td>
  259. </tr>
  260. </thead>
  261. <tbody>
  262. <tr>
  263. <td><?php echo $image . '/'; ?></td>
  264. <td><?php if (is_writable($image)) { ?>
  265. <span class="text-success"><?php echo $text_writable; ?></span>
  266. <?php } else { ?>
  267. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  268. <?php } ?></td>
  269. </tr>
  270. <tr>
  271. <td><?php echo $image_cache . '/'; ?></td>
  272. <td><?php if (is_writable($image_cache)) { ?>
  273. <span class="text-success"><?php echo $text_writable; ?></span>
  274. <?php } else { ?>
  275. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  276. <?php } ?></td>
  277. </tr>
  278. <tr>
  279. <td><?php echo $image_catalog . '/'; ?></td>
  280. <td><?php if (is_writable($image_catalog)) { ?>
  281. <span class="text-success"><?php echo $text_writable; ?></span>
  282. <?php } else { ?>
  283. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  284. <?php } ?></td>
  285. </tr>
  286. <tr>
  287. <td><?php echo $cache . '/'; ?></td>
  288. <td><?php if (is_writable($cache)) { ?>
  289. <span class="text-success"><?php echo $text_writable; ?></span>
  290. <?php } else { ?>
  291. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  292. <?php } ?></td>
  293. </tr>
  294. <tr>
  295. <td><?php echo $logs . '/'; ?></td>
  296. <td><?php if (is_writable($logs)) { ?>
  297. <span class="text-success"><?php echo $text_writable; ?></span>
  298. <?php } else { ?>
  299. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  300. <?php } ?></td>
  301. </tr>
  302. <tr>
  303. <td><?php echo $download . '/'; ?></td>
  304. <td><?php if (is_writable($download)) { ?>
  305. <span class="text-success"><?php echo $text_writable; ?></span>
  306. <?php } else { ?>
  307. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  308. <?php } ?></td>
  309. </tr>
  310. <tr>
  311. <td><?php echo $upload . '/'; ?></td>
  312. <td><?php if (is_writable($upload)) { ?>
  313. <span class="text-success"><?php echo $text_writable; ?></span>
  314. <?php } else { ?>
  315. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  316. <?php } ?></td>
  317. </tr>
  318. <tr>
  319. <td><?php echo $modification . '/'; ?></td>
  320. <td><?php if (is_writable($modification)) { ?>
  321. <span class="text-success"><?php echo $text_writable; ?></span>
  322. <?php } else { ?>
  323. <span class="text-danger"><?php echo $text_unwritable; ?></span>
  324. <?php } ?></td>
  325. </tr>
  326. </tbody>
  327. </table>
  328. </fieldset>
  329. <div class="buttons">
  330. <div class="pull-left"><a href="<?php echo $back; ?>" class="btn btn-default"><?php echo $button_back; ?></a></div>
  331. <div class="pull-right">
  332. <input type="submit" value="<?php echo $button_continue; ?>" class="btn btn-primary" />
  333. </div>
  334. </div>
  335. </form>
  336. </div>
  337. <div class="col-sm-3"><?php echo $column_left; ?></div>
  338. </div>
  339. </div>
  340. <?php echo $footer; ?>