Beispiel #1
0
$checker->settings = $inviter->settings;
$checker->service_user = '******';
$checker->service_pass = '******';
$checker->service = 'postInstall';
//Check version
display_message("Checking for new versions of OpenInviter... ");
$xml = $checker->checkVersion();
libxml_use_internal_errors(true);
$parsed_xml = simplexml_load_string($xml);
libxml_use_internal_errors(false);
if (!$parsed_xml) {
    display_message("Could not connect to server<br>\n");
} else {
    $server_version = (string) $parsed_xml;
    $version = $inviter->getVersion();
    if (!$inviter->checkVersion($server_version)) {
        display_message("You are using OpenInviter <b>{$version}</b> but version <b>{$server_version}</b> is available for download - <a href='http://openinviter.com/download.php'>Download newer version</a><br>\n");
    } else {
        display_message("Your OpenInviter software is up-to-date<br>\n");
    }
}
//Check plugins
if ($openinviter_settings['hosted']) {
    display_message("Running in `Hosted` mode...");
    display_message("Checking OpenInviter Hosted Solution server...");
    if ($checker->check('http://hosted.openinviter.com')) {
        display_message("*OK*<br>\n");
    } else {
        display_message("*NOT OK* - You might not be able to use the OpenInviter Hosted Solution");
    }
} else {