1 <?php
if (!defined('CIVI_SETUP')): exit("Installation plugins must only be loaded by the installer.\n");
3 <h2 id
="environment"><?php
echo ts('Environment'); ?
></h2
>
6 <?php
echo ts('The system settings were auto-detected. CiviCRM will be installed with:'); ?
>
10 <table
class="settingsTable">
13 <th
><?php
echo ts('CMS Database'); ?
></th
>
15 <code
><?php
echo htmlentities('mysql://' . $model->cmsDb
['username'] . ':HIDDEN@' . $model->cmsDb
['server'] . '/' . $model->cmsDb
['database']); ?
></code
>
19 <th
><?php
echo ts('CiviCRM Database'); ?
></th
>
20 <td
class="advanced-db">
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
>
25 <div
class="rw" style
="display: none;">
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'));
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
>
46 <th
><?php
echo ts('CiviCRM Settings File'); ?
></th
>
47 <td
><code
><?php
echo htmlentities($model->settingsPath
); ?
></code
></td
>
50 <th
><?php
echo ts('CiviCRM Source Code'); ?
></th
>
51 <td
><code
><?php
echo htmlentities($model->srcPath
); ?
></code
></td
>
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')); ?
>