[Openfirst-cvscommit] base/config first.php,1.31,1.32
Brought to you by:
xtimg
From: Tim G. <xt...@us...> - 2004-04-09 17:39:11
|
Update of /cvsroot/openfirst/base/config In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4743 Modified Files: first.php Log Message: Update first.php to have more advanced guessing at configuration settings for OS and database connections. This should make setup simplier and more friendly overall. Index: first.php =================================================================== RCS file: /cvsroot/openfirst/base/config/first.php,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** first.php 5 Apr 2004 11:16:01 -0000 1.31 --- first.php 9 Apr 2004 17:25:50 -0000 1.32 *************** *** 240,246 **** <td>Operating System of Web Server</td> <td><select name="ostype"> ! <option value="unix" selected="selected">UNIX</option> ! <option value="windows">Windows</option> ! </select> <font size="2">(UNIX includes variants, such as Linux, Mac OS X, and BeOS) </font></td> </tr> --- 240,253 ---- <td>Operating System of Web Server</td> <td><select name="ostype"> ! <?php ! if (isset($_ENV["OS"]) && strpos(" " . $_ENV["OS"], "Windows")) { ! echo("<option value='unix'>UNIX</option> ! <option value='windows' selected='selected'>Windows</option>"); ! } else { ! echo("<option value='unix' selected='selected'>UNIX</option> ! <option value='windows'>Windows</option>"); ! } ! ?> ! </select> <font size="2">(UNIX includes variants, such as Linux, Mac OS X, and BeOS) </font></td> </tr> *************** *** 262,274 **** <tr> <td>Database Server Address</td> ! <td><input type="text" name="sqlserver" value="localhost" /></td> </tr> <tr> <td>Database User Name</td> ! <td><input type="text" name="sqluser" value="sqluser" /></td> </tr> <tr> <td>Database User Password</td> ! <td><input type="password" name="sqlpassword" /></td> </tr> <tr> --- 269,294 ---- <tr> <td>Database Server Address</td> ! <td><input type="text" name="sqlserver" value="<?php ! if(ini_get("mysql.default_host") != "") { ! echo(ini_get("mysql.default_host")); ! } else { ! echo("localhost"); ! }?>" /></td> </tr> <tr> <td>Database User Name</td> ! <td><input type="text" name="sqluser" value="<?php ! if(ini_get("mysql.default_user") != "") { ! echo(ini_get("mysql.default_user")); ! } else { ! echo("sqluser"); ! }?>" /></td> </tr> <tr> <td>Database User Password</td> ! <td><input type="password" name="sqlpassword" value="<?php ! if(ini_get("mysql.default_password") != "") { ! echo(ini_get("mysql.default_password")); ! }?>" /></td> </tr> <tr> |