<?php // Use composer's autoload.php if available if (file_exists(dirname(__FILE__) . '/../vendor/autoload.php')) { require_once dirname(__FILE__) . '/../vendor/autoload.php'; } else { if (file_exists(dirname(__FILE__) . '/../../../autoload.php')) { require_once dirname(__FILE__) . '/../../../autoload.php'; } } // Set any INI options for PHP // --------------------------- /* set include paths */ set_include_path(realpath(dirname(__FILE__) . '/../library') . PATH_SEPARATOR . get_include_path()); require_once 'PhpSsrsUtils/RsSync.php'; try { // Grab and clean up the CLI arguments $args = getopt('l:h:u:p:r:d:'); RsSync::start($args); } catch (Exception $x) { exit(1); }
/** * Execute the rssync command * @param array $args Command line arguments */ public static function start(array $args) { $rssync = new RsSync(); $rssync->execute($args); }