OpenSQLManager/src/index.php

36 lines
721 B
PHP
Raw Normal View History

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
*/
if ( ! class_exists('gtk'))
{
die("Please load the php-gtk2 module in your php.ini\r\n");
}
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-26 16:09:05 -05:00
2012-01-27 11:57:13 -05:00
$requires = glob("{$dir}/databases/*.php");
$requires = array_merge($requires, glob("{$dir}/windows/*.php"));
for($i=0, $count=count($requires); $i<$count; $i++)
{
require_once($requires[$i]);
}
}
2012-01-26 16:09:05 -05:00
2012-01-27 11:57:13 -05:00
// Create the main window
$wnd = new Main();
$wnd->show_all();
2012-01-26 16:09:05 -05:00
2012-01-27 11:57:13 -05:00
// Start the GTK event loop
2012-01-26 16:09:05 -05:00
GTK::main();