예제 #1
0
        }
    }
}
if (empty($q[1])) {
    if (!isset($updates)) {
        $w->result('updates', 'updates', 'All of your workflows are up to date.', "", 'assets/icons/task-complete.png', 'no', '');
    } else {
        if (count($updates) > 1) {
            $message = "There are " . count($updates) . " updates pending.";
        } else {
            $message = "There is 1 update pending.";
        }
        $w->result('updates', 'updates', 'Updates available', $message, '', 'no', 'update');
    }
    if (date('U', mktime()) - date('U', filemtime("{$data}/manifest.xml") < 86400)) {
        $manifestTime = getManifestModTime();
        $w->result('', 'manifest-update', 'The manifest is up to date.', "Last updated {$manifestTime}", 'assets/icons/task-complete.png', 'yes', '');
    } else {
        $w->result('', 'manifest-update', 'The manifest is out of date.', "Last updated {$manifestTime}", 'assets/icons/task-attention.png', 'yes', '');
    }
    if ($gui === TRUE) {
        $w->result('open-gui', 'open-gui', "Open Graphical 'Application'", 'Configure this workflow, Update workflows, and learn about this workflow. (RECOMMENDED)', 'assets/icons/applications-education-miscellaneous.png', 'yes', '');
    } else {
        $w->result('', '', "GUI Not Available'", 'A GUI to configure and operate this workflow is available if you have OS X 10.9 or 10.10.', 'assets/icons/applications-education-miscellaneous.png', 'no', '');
    }
    if (isset($mywf)) {
        $mywf = count($mywf);
    } else {
        $mywf = 0;
    }
    // if ( isset( $config->authorName ) && ( ! empty( $config->authorName ) ) {
예제 #2
0
function updateManifest()
{
    global $data;
    if (getManifest() == FALSE) {
        $time = getManifestModTime();
        echo "The manifest was last updated <strong>{$time}</strong> However it couldn't be updated because of no viable Internet connection.";
        die;
    }
    $time = getManifestModTime();
    echo "The manifest was last updated <strong>{$time}</strong>";
    die;
}