Source for file Checks.php
Documentation is available at Checks.php
* Some checks before the application is started.
* That should ensure optimal user experience.
* @author Christian Weiske <cweiske@php.net>
echo "You need at least PHP 5.1.0 to run that program\r\n";
$ext = new ReflectionExtension ("php-gtk");
} catch (ReflectionException $e) {
echo "You need to install PHP-Gtk2\r\n";
echo "You need at least PHP-Gtk version 2.0\r\n";
//Do we have Glade? (was a problem on some php-gtk1 windows installations)
echo "The GladeXML class is not available, but required.\r\n";
$dialog = new GtkMessageDialog (
'The GladeXML class is not available, but required.'
require_once 'PEAR/Config.php';
$config = PEAR_Config ::singleton ();
$cachedir = $config->get ('cache_dir');
//Try to create the directory - if that fails, no problem:
//the error message is thrown in the next if-block
@mkdir($cachedir, 0777 , true );
$message = 'The PEAR cache directory "' . $cachedir . '" is NOT writable!' . "\r\n"
. 'It is highly recommended that you make it writable before using the'
. ' graphical installer.';
$dialog = new GtkMessageDialog (
$dialog->add_button ('Close and fix it', 0 );
$dialog->add_button ('Continue the program', 1 );
$answer = $dialog->run ();
Documentation generated on Mon, 11 Mar 2019 15:46:46 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|