First step of conversion to wxPHP

This commit is contained in:
Timothy Warren 2012-05-25 20:30:06 -04:00
parent a116a0fd58
commit f54669817a

View File

@ -23,7 +23,7 @@
// --------------------------------------------------------------------------
// Suppress errors that php-gtk puts out
error_reporting(-1 & ~(E_STRICT));
error_reporting(-1);
// Set the stupid timezone so PHP shuts up.
date_default_timezone_set('GMT');
@ -62,9 +62,9 @@ register_shutdown_function('log_fatal');
// --------------------------------------------------------------------------
// Make sure php-gtk works
if ( ! class_exists('gtk'))
if ( ! class_exists('wxApp'))
{
trigger_error("PHP-gtk not found. Please load the php-gtk2 extension in your php.ini", E_USER_ERROR);
trigger_error("wxPHP not found. Please load the wxPHP extension in your php.ini", E_USER_ERROR);
die();
}
@ -149,9 +149,10 @@ require_once(BASE_DIR . "/db/autoload.php");
// --------------------------------------------------------------------------
// Create the main window
new Main();
$app = new Main();
// Start the GTK event loop
GTK::main();
// Start the wx event loop
wxApp::SetInstance($app);
wxEntry();
// End of index.php