Changeset 7d7f67d in github
- Timestamp:
- Sep 21, 2008 8:50:15 AM (5 years ago)
- Branches:
- master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
- Children:
- 34b8b1e
- Parents:
- 2fd6c21
- Location:
- installer
- Files:
-
- 3 edited
-
config.php (modified) (1 diff)
-
index.php (modified) (1 diff)
-
rcube_install.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
installer/config.php
rbba657e r7d7f67d 31 31 32 32 echo '<div><em>main.inc.php (<a href="index.php?_getfile=main">download</a>)</em></div>'; 33 echo $textbox->show( $RCI->create_config('main'));33 echo $textbox->show(($_SESSION['main.inc.php'] = $RCI->create_config('main'))); 34 34 35 35 echo '<div style="margin-top:1em"><em>db.inc.php (<a href="index.php?_getfile=db">download</a>)</em></div>'; 36 echo $textbox->show($ RCI->create_config('db'));36 echo $textbox->show($_SESSION['db.inc.php'] = $RCI->create_config('db')); 37 37 38 38 echo '<p class="hint">Of course there are more options to configure. -
installer/index.php
rbba657e r7d7f67d 32 32 $RCI->load_config(); 33 33 34 if (isset($_GET['_getfile']) && in_array($_GET['_getfile'], array('main', 'db'))) 35 { 36 header('Content-type: text/plain'); 37 header('Content-Disposition: attachment; filename="'.$_GET['_getfile'].'.inc.php"'); 38 echo $RCI->create_config($_GET['_getfile']); 39 exit; 34 if (isset($_GET['_getfile']) && in_array($_GET['_getfile'], array('main', 'db'))) { 35 $filename = $_GET['_getfile'] . '.inc.php'; 36 if (!empty($_SESSION[$filename])) { 37 header('Content-type: text/plain'); 38 header('Content-Disposition: attachment; filename="'.$filename.'"'); 39 echo $_SESSION[$filename]; 40 exit; 41 } 42 else { 43 header('HTTP/1.0 404 Not found'); 44 die("The requested configuration was not found. Please run the installer from the beginning."); 45 } 40 46 } 41 47 -
installer/rcube_install.php
rbba657e r7d7f67d 130 130 if ($prop == 'debug_level') { 131 131 $val = 0; 132 if (is set($value))133 foreach ($value as $dbgval)132 if (is_array($value)) 133 foreach ($value as $dbgval) 134 134 $val += intval($dbgval); 135 $value = $val;135 $value = $val; 136 136 } 137 137 else if ($which == 'db' && $prop == 'db_dsnw' && !empty($_POST['_dbtype'])) { … … 140 140 else 141 141 $value = sprintf('%s://%s:%s@%s/%s', $_POST['_dbtype'], 142 rawurlencode($_POST['_dbuser']), rawurlencode($_POST['_dbpass']), 143 $_POST['_dbhost'], $_POST['_dbname']); 142 rawurlencode($_POST['_dbuser']), rawurlencode($_POST['_dbpass']), $_POST['_dbhost'], $_POST['_dbname']); 144 143 } 145 144 else if ($prop == 'smtp_auth_type' && $value == '0') {
Note: See TracChangeset
for help on using the changeset viewer.
