From: Gordon P. H. <gph...@us...> - 2004-08-07 10:19:19
|
Update of /cvsroot/phpliteadmin/phpLiteAdmin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27413 Modified Files: index.php5 main.php5 Added Files: config.php5 Log Message: Allow for configuration and customization settings. Index: index.php5 =================================================================== RCS file: /cvsroot/phpliteadmin/phpLiteAdmin/index.php5,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- index.php5 4 Aug 2004 21:06:24 -0000 1.2 +++ index.php5 7 Aug 2004 10:19:10 -0000 1.3 @@ -7,10 +7,10 @@ /** * $Id$ - * Index file... uh, yeah... + * Sets up frame structure */ -error_reporting( E_ALL | E_STRICT ); +include_once( 'config.php5' ); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> @@ -18,8 +18,11 @@ <head> <title>phpLiteAdmin</title> </head> - <frameset cols="150,*" rows="*"> + <frameset cols="<?php print $config['navbar_width']; ?>,*" rows="*"> <frame src="navbar.php5" frameborder="1" scrolling="auto" id="navbar" name="navbar" /> <frame src="main.php5" frameborder="0" scrolling="auto" id="main" name="main" /> </frameset> + <noframes> + <p>phpLiteAdmin requires frames to be supported and enabled in order to function properly.</p> + </noframes> </html> \ No newline at end of file --- NEW FILE: config.php5 --- <?php /** * @name phpLiteAdmin * @copyright 2004 phpLiteAdmin Team */ /** * $Id: config.php5,v 1.1 2004/08/07 10:19:10 gphemsley Exp $ * Configuration and customization settings */ error_reporting( E_ALL | E_STRICT ); // DO NOT CHANGE THIS! @ini_set( 'display_errors', '1' ); // DO NOT CHANGE THIS! // Placeholder for customization options // In the form of $config['setting'] $config['navbar_width'] = '150'; // Default: 150 /* DO NOT EDIT BELOW THIS LINE! */ $config['revision'] = '$Revision: 1.1 $'; ?> Index: main.php5 =================================================================== RCS file: /cvsroot/phpliteadmin/phpLiteAdmin/main.php5,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- main.php5 4 Aug 2004 01:53:02 -0000 1.1 +++ main.php5 7 Aug 2004 10:19:10 -0000 1.2 @@ -10,11 +10,13 @@ * Main page content */ +include_once( 'config.php5' ); + header( 'Content-Type: text/xml; charset=UTF-8' ); include( 'lib/sqlite.php5' ); -$Database = new Database( 'db/mysqlitedb.sqlite', 0777, $sqlite_error ); +$Database = new Database( 'db/mysqlitedb.sqlite', 0777, &$sqlite_error ); print '<?xml version="1.0" encoding="UTF-8" ?>' . "\n"; print '<?xml-stylesheet href="style/main.xsl" type="text/xsl" ?>' . "\n"; |