コード例 #1
0
ファイル: rssync.php プロジェクト: chriskl/phpssrs-utils
<?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);
}
コード例 #2
0
ファイル: RsSync.php プロジェクト: chriskl/phpssrs-utils
 /**
  * Execute the rssync command
  * @param array $args Command line arguments
  */
 public static function start(array $args)
 {
     $rssync = new RsSync();
     $rssync->execute($args);
 }