Commit | Line | Data |
---|---|---|
6a488035 TO |
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
3 | <head> | |
4 | <meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
5 | <title>CiviCRM Installer</title> | |
6a488035 TO |
6 | <link rel="stylesheet" type="text/css" href=<?php echo $installURLPath . "template.css"?> /> |
7 | </head> | |
8 | ||
9 | <body> | |
10 | <div id="All"> | |
11 | <div style="float: right"><b>Version <?php echo "{$civicrm_version['version']} {$civicrm_version['cms']}" ?></b></br> | |
10920791 | 12 | <span><img src=<?php echo $installURLPath . "block_small.png"?> /></span> |
6a488035 TO |
13 | </div> |
14 | <h1>CiviCRM Installer</h1> | |
15 | <div>Thanks for choosing to use CiviCRM! Please follow the instructions below to get CiviCRM installed.</div> | |
16 | </br><br> | |
17 | <form name="civicrm_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>"> | |
18 | <?php if(isset($hasErrorOtherThanDatabase)) { ?> | |
19 | <p class="error">We are not able to install the software. Please <a style="color: #CCF" href="#requirements">see below</a> for details.</p> | |
20 | <?php } else { ?> | |
21 | <?php if($req->hasWarnings()) { ?> | |
22 | <p class="warning">There are some issues that we recommend you look at before installing, however, you are still able to install the software. Please see below for details.</p> | |
23 | ||
24 | <?php } else if(!$dbReq->hasErrors()) { ?> | |
03e04002 | 25 | <p class="good">You're ready to install! |
6a488035 TO |
26 | </p> |
27 | ||
28 | <?php } ?> | |
29 | ||
30 | <p> | |
31 | <input id="install_button" type="submit" name="go" value="Check Requirements and Install CiviCRM" onclick="document.getElementById('saving_top').style.display = ''; this.value = 'Installing CiviCRM...'" /> | |
03e04002 | 32 | |
6a488035 TO |
33 | <span id="saving_top" style="display: none"> |
34 | | |
35 | <img src=<?php echo $installURLPath . "network-save.gif"?> /> | |
36 | (this will take a few minutes) | |
37 | </span> | |
38 | </p> | |
39 | <?php } ?> | |
40 | ||
41 | ||
42 | <input type="hidden" name="database" value="MySQLDatabase" /> | |
43 | ||
44 | <h2>Database Version and Connection Settings</h2> | |
45 | <p> | |
46 | CiviCRM stores its content in a MySQL database. Please provide the username | |
47 | and password to connect to the server here. If this account has permission to create databases, then we will | |
48 | create the database for you; otherwise, you must give the name of a database that already exists. | |
49 | </p> | |
50 | ||
51 | <?php if($dbReq->hasErrors()) { ?> | |
52 | <p class="error">Your database settings don't appear to be correct. Please check the <strong><a href="#dbDetails" style="color: white;">Database Details</a></strong> below for specific errors.</p> | |
53 | <?php } else { ?> | |
54 | <p class="good">Database version and connection settings have been verified and look correct!</p> | |
55 | <?php } ?> | |
56 | ||
57 | <h4>CiviCRM Database Settings</h4> | |
58 | <p style="margin-left: 2em" id="mysql_credentials" > <!--style="display: none"--> | |
59 | <label for="mysql_server"> <span>MySQL server:</span> <input id="mysql_server" type="text" name="mysql[server]" value="<?php echo $databaseConfig['server'] ?>" /></label> <br /> | |
60 | <label for="mysql_username"> <span>MySQL username:</span> <input id="mysql_username" type="text" name="mysql[username]" value="<?php echo $databaseConfig['username'] ?>" /></label> <br /> | |
61 | <label for="mysql_password"> <span>MySQL password:</span> <input id="mysql_password" type="password" name="mysql[password]" value="<?php echo $databaseConfig['password'] ?>" /></label> <br /> | |
62 | <label for="mysql_database"><span>MySQL database:</span> <input id="mysql_database" type="text" name="mysql[database]" value="<?php echo $databaseConfig['database'] ?>" /></label> <br /> | |
63 | </p> | |
64 | ||
65 | <?php if ($installType == 'drupal') { ?> | |
66 | <h4>Drupal Database Settings</h4> | |
67 | <p style="margin-left: 2em" id="drupal_credentials" > <!--style="display: none"--> | |
68 | <label for="drupal_server"> <span>MySQL server:</span> <input id="drupal_server" type="text" name="drupal[server]" value="<?php echo $drupalConfig['server'] ?>" /></label> <br /> | |
69 | <label for="drupal_username"> <span>MySQL username:</span> <input id="drupal_username" type="text" name="drupal[username]" value="<?php echo $drupalConfig['username'] ?>" /></label> <br /> | |
70 | <label for="drupal_password"> <span>MySQL password:</span> <input id="drupal_password" type="password" name="drupal[password]" value="<?php echo $drupalConfig['password'] ?>" /></label> <br /> | |
71 | <label for="drupal_database"><span>MySQL database:</span> <input id="drupal_database" type="text" name="drupal[database]" value="<?php echo $drupalConfig['database'] ?>" /></label> <br /> | |
72 | </p> | |
73 | <?php } ?> | |
74 | ||
75 | ||
76 | <h4>Other Settings</h4> | |
03e04002 | 77 | <p style="margin-left: 2em" id="misc_credentials" > |
6a488035 TO |
78 | <!--style="display: none"--> |
79 | <label for="seedLanguage"><span>Language of basic data:</span></label><select id="seedLanguage" name="seedLanguage"> | |
80 | <?php | |
81 | foreach ($langs as $locale => $language) { | |
82 | $selected = ($locale == $seedLanguage) ? 'selected="selected"' : ''; | |
83 | echo "<option value='$locale' $selected>$language</option>"; | |
84 | } | |
85 | ?> | |
86 | </select> | |
87 | <span class="testResults"> | |
88 | <?php | |
89 | if (count($langs) < 2) { | |
90 | echo "(download the civicrm-{$civicrm_version['version']}-l10n.tar.gz file and unzip into CiviCRM’s directory to add languages here)"; | |
91 | } | |
92 | ?> | |
93 | </span><br /> | |
94 | <label for="loadGenerated"><span>Load sample data:</span><input id="loadGenerated" type="checkbox" name="loadGenerated" value=1 <?php if ( $loadGenerated == 1 ) { echo "checked='checked'"; } ?> /></label> <br /> | |
95 | <span class="testResults">Check this box to pre-populate CiviCRM with sample English contact records, online contribution pages, profile forms, etc. These examples can help you learn about CiviCRM features.</span><br /> | |
96 | </p> | |
97 | ||
98 | <p style="margin-left: 2em"><input type="submit" value="Re-check requirements" /></p> | |
99 | ||
100 | <a name="dbDetails"> | |
101 | <h4>CiviCRM Database Details</h4> | |
102 | <?php $dbReq->showTable("MySQL CiviCRM Configuration"); ?> | |
103 | ||
104 | <?php if ($installType == 'drupal') { | |
105 | echo "<h4>Drupal Database Details</h4>"; | |
106 | $dbReq->showTable("MySQL Drupal Configuration"); | |
107 | }?> | |
108 | <br /><hr /> | |
109 | ||
110 | <h2 id="requirements">Requirements</h2> | |
111 | <?php | |
112 | $req->showTable(); | |
113 | ?> | |
114 | ||
115 | </form> | |
116 | </div> | |
117 | </body> | |
118 | </html> |