Commit | Line | Data |
---|---|---|
4bcd4c62 TO |
1 | <?php if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n"); endif; ?> |
2 | <h2 id="environment"><?php echo ts('Environment'); ?></h2> | |
3 | ||
4 | <p> | |
5 | <?php echo ts('The system settings were auto-detected. CiviCRM will be installed with:'); ?> | |
6 | </p> | |
7 | ||
8 | <div style=""> | |
9 | <table class="settingsTable"> | |
10 | <tbody> | |
11 | <tr> | |
12 | <th><?php echo ts('CMS Database'); ?></th> | |
13 | <td> | |
14 | <code><?php echo htmlentities('mysql://' . $model->cmsDb['username'] . ':HIDDEN@' . $model->cmsDb['server'] . '/' . $model->cmsDb['database']); ?></code> | |
15 | </td> | |
16 | </tr> | |
17 | <tr> | |
18 | <th><?php echo ts('CiviCRM Database'); ?></th> | |
19 | <td class="advanced-db"> | |
20 | <div class="ro"> | |
21 | <code><?php echo htmlentities('mysql://' . $model->db['username'] . ':HIDDEN@' . $model->db['server'] . '/' . $model->db['database']); ?></code> | |
22 | <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> | |
23 | </div> | |
24 | <div class="rw" style="display: none;"> | |
25 | <div> | |
26 | ||
27 | <input type="text" name="civisetup[advanced][db]" value="<?php echo htmlentities($model->extras['advanced']['db']); ?>" data-original="<?php echo htmlentities($model->extras['advanced']['db']); ?>"> | |
28 | <input id="db_apply_button" type="submit" name="civisetup[action][Start]" value="<?php echo htmlentities(ts('Apply')); ?>" /> | |
29 | <a href="" onclick="civisetupAdvancedDbCancel(); return false;" title="<?php echo htmlentities(ts('Cancel')) ?>"><i class="fa fa-close"></i></a> | |
30 | <script type="text/javascript"> | |
31 | function civisetupAdvancedDbCancel() { | |
32 | csj$('.advanced-db .rw').hide(); | |
33 | csj$('.advanced-db .ro').show(); | |
34 | csj$('.advanced-db .rw input[type=text]').val(csj$('.advanced-db .rw input[type=text]').attr('data-original')); | |
35 | } | |
36 | </script> | |
37 | </div> | |
38 | <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> | |
39 | <p><?php echo ts('<strong>Example</strong>: <code>%1</code>', array(1 => 'mysql://admin:secret@localhost/civicrm')); ?></p> | |
40 | <p><?php echo ts('<strong>Example</strong>: <code>%1</code>', array(1 => 'mysql://admin:secret@127.0.0.1:3306/otherdb')); ?></p> | |
41 | </div> | |
42 | </td> | |
43 | </tr> | |
44 | <tr> | |
45 | <th><?php echo ts('CiviCRM Settings File'); ?></th> | |
46 | <td><code><?php echo htmlentities($model->settingsPath); ?></code></td> | |
47 | </tr> | |
48 | <tr> | |
49 | <th><?php echo ts('CiviCRM Source Code'); ?></th> | |
50 | <td><code><?php echo htmlentities($model->srcPath); ?></code></td> | |
51 | </tr> | |
52 | </tbody> | |
53 | </table> | |
54 | </div> | |
55 | ||
56 | <p class="tip"> | |
57 | <strong><?php echo ts('Tip'); ?></strong>: | |
58 | <?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')); ?> | |
59 | </p> |