971d22c1fd5a3fcdc59c00878e969ed806ef1831
[civicrm-core.git] / setup / plugins / blocks / advanced.tpl.php
1 <?php if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n");
2 endif; ?>
3 <h2 id="environment"><?php echo ts('Environment'); ?></h2>
4
5 <p>
6 <?php echo ts('The system settings were auto-detected. CiviCRM will be installed with:'); ?>
7 </p>
8
9 <div style="">
10 <table class="settingsTable">
11 <tbody>
12 <tr>
13 <th><?php echo ts('CMS Database'); ?></th>
14 <td>
15 <code><?php echo htmlentities('mysql://' . $model->cmsDb['username'] . ':HIDDEN@' . $model->cmsDb['server'] . '/' . $model->cmsDb['database']); ?></code>
16 </td>
17 </tr>
18 <tr>
19 <th><?php echo ts('CiviCRM Database'); ?></th>
20 <td class="advanced-db">
21 <div class="ro">
22 <code><?php echo htmlentities('mysql://' . $model->db['username'] . ':HIDDEN@' . $model->db['server'] . '/' . $model->db['database']); ?></code>
23 <a href="" onclick="csj$('.advanced-db .ro').hide(); csj$('.advanced-db .rw').show(); return false;" title="<?php echo htmlentities(ts('Edit')) ?>"><i class="fa fa-pencil"></i></a>
24 </div>
25 <div class="rw" style="display: none;">
26 <div>
27
28 <input type="text" name="civisetup[advanced][db]" value="<?php echo htmlentities($model->extras['advanced']['db']); ?>" data-original="<?php echo htmlentities($model->extras['advanced']['db']); ?>">
29 <input id="db_apply_button" type="submit" name="civisetup[action][Start]" value="<?php echo htmlentities(ts('Apply')); ?>" />
30 <a href="" onclick="civisetupAdvancedDbCancel(); return false;" title="<?php echo htmlentities(ts('Cancel')) ?>"><i class="fa fa-close"></i></a>
31 <script type="text/javascript">
32 function civisetupAdvancedDbCancel() {
33 csj$('.advanced-db .rw').hide();
34 csj$('.advanced-db .ro').show();
35 csj$('.advanced-db .rw input[type=text]').val(csj$('.advanced-db .rw input[type=text]').attr('data-original'));
36 }
37 </script>
38 </div>
39 <p><?php echo ts('By default, CiviCRM uses the same database as your website. You may install on a separate database if you need more fine-grained control over permissions, replication, hardware capacity, etc.'); ?></p>
40 <p><?php echo ts('<strong>Example</strong>: <code>%1</code>', array(1 => 'mysql://admin:secret@localhost/civicrm')); ?></p>
41 <p><?php echo ts('<strong>Example</strong>: <code>%1</code>', array(1 => 'mysql://admin:secret@127.0.0.1:3306/otherdb')); ?></p>
42 </div>
43 </td>
44 </tr>
45 <tr>
46 <th><?php echo ts('CiviCRM Settings File'); ?></th>
47 <td><code><?php echo htmlentities($model->settingsPath); ?></code></td>
48 </tr>
49 <tr>
50 <th><?php echo ts('CiviCRM Source Code'); ?></th>
51 <td><code><?php echo htmlentities($model->srcPath); ?></code></td>
52 </tr>
53 </tbody>
54 </table>
55 </div>
56
57 <p class="tip">
58 <strong><?php echo ts('Tip'); ?></strong>:
59 <?php echo ts('Need more advanced control? You may alternatively use the <a href="%1" target="%2">command-line installer</a>.', array(1 => 'https://github.com/civicrm/cv', 2 => '_blank')); ?>
60 </p>