Exemplo n.º 1
0
            //echo "<tr><td>".$entry."</td><td><small><a href='?delete=".$entry."'><i class='fa fa-trash fa-lg'></i></a></small></td></tr><br>";
        }
    }
    closedir($handle);
}
$sum = $sum / 1024;
$sum = $sum / 1024;
$sum = round($sum, 3);
$version["local"] = version::getVersion();
// Check version
if (version::updateExists($version["local"])) {
    $update = true;
    write2logfile("Update " . $version["global"] . " availible", "index.php");
}
// Ignore invalid versions if the version is a DEV version
if (version::isDevVersion($version["local"])) {
    unset($updateerror);
    $version["local"] .= " - Thanks for testing the developer version!";
}
// Check for messages
$message = Synchro::getMessage();
if (empty($message)) {
    unset($message);
}
// Check, if updates are ignored
if (Synchro::settingSet("ignoreupdates")) {
    $ignoreupdate = true;
}
// Check if Synchro has enough file permissions
if (!is_writable("data/password.txt") || !is_writable("index.php")) {
    $wrongfilepermissions = TRUE;