Esempio n. 1
0
<?php

// Check to make sure that this script isn't being executed remotely.
if (!(php_sapi_name() == 'cli')) {
    die("Unfortunately this script must be executed via CLI.");
}
set_time_limit(30);
chdir('/var/feathur/feathur/');
include './includes/loader.php';
error_reporting(E_ALL ^ E_NOTICE);
$sServer = $argv[1];
if (!empty($sServer)) {
    $sPull = Pull::pull_status($sServer);
}
die;
Esempio n. 2
0
<?php

require_once 'bootstrap.php';
$pull = new Pull($config);
$pull->execute();
echo $pull->_log_messages;