| | |
| | | |
| | | if (!empty($_POST['submit'])) { |
| | | |
| | | echo '<p class="notice">Copy the following configurations and save them in two files (names above the text box)'; |
| | | echo ' within the <tt>config/</tt> directory of your RoundCube installation.<br/>'; |
| | | echo '<p class="notice">Copy or download the following configurations and save them in two files'; |
| | | echo ' (names above the text box) within the <tt>config/</tt> directory of your RoundCube installation.<br/>'; |
| | | echo ' Make sure that there are no characters outside the <tt><?php ?></tt> brackets when saving the files.</p>'; |
| | | |
| | | $textbox = new html_textarea(array('rows' => 16, 'cols' => 60, 'class' => "configfile")); |
| | | |
| | | echo '<div><em>main.inc.php</em></div>'; |
| | | echo '<div><em>main.inc.php (<a href="index.php?_getfile=main">download</a>)</em></div>'; |
| | | echo $textbox->show($RCI->create_config('main')); |
| | | |
| | | echo '<div style="margin-top:1em"><em>db.inc.php</em></div>'; |
| | | echo '<div style="margin-top:1em"><em>db.inc.php (<a href="index.php?_getfile=db">download</a>)</em></div>'; |
| | | echo $textbox->show($RCI->create_config('db')); |
| | | |
| | | echo '<p class="hint">Of course there are more options to configure. |
| | |
| | | <div>The name of your service (used to compose page titles)</div> |
| | | </dd> |
| | | |
| | | <dt class="propname">skin_path</dt> |
| | | <dt class="propname">default_skin</dt> |
| | | <dd> |
| | | <?php |
| | | |
| | | $input_skinpath = new html_inputfield(array('name' => '_skin_path', 'size' => 30, 'id' => "cfgskinpath")); |
| | | echo $input_skinpath->show($RCI->getprop('skin_path')); |
| | | $input_skin = new html_inputfield(array('name' => '_default_skin', 'size' => 30, 'id' => "cfgdefaultskin")); |
| | | echo $input_skin->show($RCI->getprop('default_skin')); |
| | | |
| | | ?> |
| | | <div>Relative path to the skin folder</div> |
| | | <div>Name of the skin folder</div> |
| | | </dd> |
| | | |
| | | <dt class="propname">temp_dir</dt> |
| | |
| | | <p>Database settings for read/write operations:</p> |
| | | <?php |
| | | |
| | | require_once 'DB.php'; |
| | | require_once 'MDB2.php'; |
| | | |
| | | $supported_dbs = array('MySQL' => 'mysql', 'MySQLi' => 'mysqli', |
| | | 'PgSQL' => 'pgsql', 'SQLite' => 'sqlite'); |
| | |
| | | $input_dbuser = new html_inputfield(array('name' => '_dbuser', 'size' => 20, 'id' => "cfgdbuser")); |
| | | $input_dbpass = new html_passwordfield(array('name' => '_dbpass', 'size' => 20, 'id' => "cfgdbpass")); |
| | | |
| | | $dsnw = DB::parseDSN($RCI->getprop('db_dsnw')); |
| | | $dsnw = MDB2::parseDSN($RCI->getprop('db_dsnw')); |
| | | |
| | | echo $select_dbtype->show($RCI->is_post ? $_POST['_dbtype'] : $dsnw['phptype']); |
| | | echo '<label for="cfgdbtype">Database type</label><br />'; |