Changeset c060677 in github
- Timestamp:
- Jun 12, 2008 3:32:04 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- ac6e284
- Parents:
- e9b57bb8
- Location:
- installer
- Files:
-
- 2 edited
-
config.php (modified) (1 diff)
-
index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
installer/config.php
r2e90ff5 rc060677 23 23 if (!empty($_POST['submit'])) { 24 24 25 echo '<p class="notice">Copy the following configurations and save them in two files (names above the text box)';26 echo ' within the <tt>config/</tt> directory of your RoundCube installation.<br/>';25 echo '<p class="notice">Copy or download the following configurations and save them in two files'; 26 echo ' (names above the text box) within the <tt>config/</tt> directory of your RoundCube installation.<br/>'; 27 27 echo ' Make sure that there are no characters outside the <tt><?php ?></tt> brackets when saving the files.</p>'; 28 28 29 29 $textbox = new html_textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile")); 30 30 31 echo '<div><em>main.inc.php </em></div>';31 echo '<div><em>main.inc.php (<a href="index.php?_getfile=main">download</a>)</em></div>'; 32 32 echo $textbox->show($RCI->create_config('main')); 33 33 34 echo '<div style="margin-top:1em"><em>db.inc.php </em></div>';34 echo '<div style="margin-top:1em"><em>db.inc.php (<a href="index.php?_getfile=db">download</a>)</em></div>'; 35 35 echo $textbox->show($RCI->create_config('db')); 36 36 -
installer/index.php
rafe50ae rc060677 26 26 include_once $filename. '.php'; 27 27 } 28 29 $RCI = rcube_install::get_instance(); 30 $RCI->load_config(); 31 32 if (isset($_GET['_getfile']) && in_array($_GET['_getfile'], array('main', 'db'))) 33 { 34 header('Content-type: text/plain'); 35 header('Content-Disposition: attachment; filename="'.$_GET['_getfile'].'.inc.php"'); 36 echo $RCI->create_config($_GET['_getfile']); 37 exit; 38 } 39 28 40 ?> 29 41 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" … … 52 64 53 65 <?php 54 55 $RCI = rcube_install::get_instance();56 $RCI->load_config();57 66 58 67 // exit if installation is complete
Note: See TracChangeset
for help on using the changeset viewer.
