SproutCMS

This is the code documentation for the SproutCMS project

source of /modules/Welcome/views/db_conf_result.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. use Sprout\Helpers\Enc;
  18. ?>
  19.  
  20.  
  21. <style>
  22. .login-box {
  23. max-width: 900px;
  24. margin: 2em auto;
  25. padding-top: 0;
  26. }
  27. code {
  28. border: none;
  29. padding: 2px;
  30. background: #eee;
  31. }
  32. .expando-opener-para {
  33. font-size: 12px;
  34. text-align: right;
  35. }
  36. li {
  37. margin: 0.8em 0;
  38. }
  39. </style>
  40.  
  41.  
  42. <p>Your config files have been generated. Refer to the instructions below for how to install them.</p>
  43.  
  44.  
  45. <h3>Database config</h3>
  46.  
  47. <p>The main database config file is stored in the top-level config directory.</p>
  48.  
  49. <ol>
  50. <li>Download the <a href="<?php echo Enc::html($db_config_url); ?>">generated config file</a></li>
  51. <li>Save the file as <code><?php echo Enc::html(DOCROOT . 'config/database.php'); ?></code></li>
  52. </ol>
  53.  
  54.  
  55. <?php if (!empty($pass_config)): ?>
  56. <h3>Password config</h3>
  57.  
  58. <p>
  59. For security reasons, the best configuration for production sites is to
  60. store the password in a separate file outside the document root.
  61. </p>
  62.  
  63. <ol>
  64. <li>Download the <a href="<?php echo Enc::html($pass_config_url); ?>">generated config file</a></li>
  65. <li>Save the file as <code><?php echo Enc::html($pass_filename); ?></code></li>
  66. </ol>
  67. <?php endif; ?>
  68.  
  69. <?php if (!empty($host_config)): ?>
  70. <h3>Server config</h3>
  71.  
  72. <p>
  73. For security reasons, the list of development machines is stored in a config file.
  74. </p>
  75.  
  76. <ol>
  77. <li>Download the <a href="<?php echo Enc::html($host_config_url); ?>">generated config file</a></li>
  78. <li>Save the file as <code><?php echo Enc::html(DOCROOT . 'config/dev_hosts.php'); ?></code></li>
  79. </ol>
  80. <?php endif; ?>
  81.  
  82. <p><br><a href="welcome/checklist" class="button">Back to checklist</a></p>
  83.