2012-01-26 16:09:05 -05:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* OpenSQLManager
|
|
|
|
*
|
|
|
|
* Free Database manager for Open Source Databases
|
|
|
|
*
|
|
|
|
* @author Timothy J. Warren
|
|
|
|
* @copyright Copyright (c) 2012
|
|
|
|
* @link https://github.com/aviat4ion/OpenSQLManager
|
|
|
|
* @license http://philsturgeon.co.uk/code/dbad-license
|
|
|
|
*/
|
2012-01-27 16:57:59 -05:00
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Bootstrap file
|
|
|
|
*
|
|
|
|
* Initializes parent window and starts the GTK event loop
|
|
|
|
*/
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------------
|
|
|
|
|
2012-01-26 16:09:05 -05:00
|
|
|
if ( ! class_exists('gtk'))
|
|
|
|
{
|
|
|
|
die("Please load the php-gtk2 module in your php.ini\r\n");
|
|
|
|
}
|
|
|
|
|
2012-01-27 21:19:39 -05:00
|
|
|
// Set the stupid timezone so PHP shuts up.
|
|
|
|
date_default_timezone_set('GMT');
|
|
|
|
|
|
|
|
// Bulk loading wrapper workaround for PHP < 5.4
|
2012-01-27 12:58:03 -05:00
|
|
|
function do_include($path)
|
|
|
|
{
|
|
|
|
require_once($path);
|
|
|
|
}
|
|
|
|
|
2012-01-27 11:57:13 -05:00
|
|
|
$dir = dirname(__FILE__);
|
2012-01-26 16:09:05 -05:00
|
|
|
|
2012-01-27 11:57:13 -05:00
|
|
|
// Load modules
|
|
|
|
{
|
2012-01-27 12:58:03 -05:00
|
|
|
array_map('do_include', glob("{$dir}/databases/*.php"));
|
|
|
|
array_map('do_include', glob("{$dir}/windows/*.php"));
|
2012-01-27 11:57:13 -05:00
|
|
|
}
|
2012-01-26 16:09:05 -05:00
|
|
|
|
2012-01-27 11:57:13 -05:00
|
|
|
// Create the main window
|
|
|
|
$wnd = new Main();
|
2012-01-26 16:09:05 -05:00
|
|
|
|
2012-01-27 11:57:13 -05:00
|
|
|
// Start the GTK event loop
|
2012-01-27 16:57:59 -05:00
|
|
|
GTK::main();
|
|
|
|
|
|
|
|
// End of index.php
|