* @copyright 2011 Vasil Rangelov * @license http://www.gnu.org/copyleft/lesser.html LGPL License 2.1 * @version GIT: $Id$ * @link http://pear2.php.net/PEAR2_Net_RouterOS */ if (count(get_included_files()) > 1 || ('cli' === PHP_SAPI && $argc > 1)) { Phar::mapPhar(); include_once 'phar://' . __FILE__ . DIRECTORY_SEPARATOR . 'PEAR2_Net_RouterOS-1.0.0b6' . DIRECTORY_SEPARATOR . 'src' . DIRECTORY_SEPARATOR . 'PEAR2' . DIRECTORY_SEPARATOR . 'Autoload.php'; //Run console if there are any arguments, //and we are running directly. if ('cli' === PHP_SAPI && $argc > 1 && 2 === count(get_included_files())) { include_once 'phar://' . __FILE__ . DIRECTORY_SEPARATOR . 'PEAR2_Net_RouterOS-1.0.0b6' . DIRECTORY_SEPARATOR . 'scripts' . DIRECTORY_SEPARATOR . 'roscon.php'; } return; } if ('cli' !== PHP_SAPI) { header('Content-Type: text/plain;charset=UTF-8'); } echo "PEAR2_Net_RouterOS 1.0.0b6\n"; if (version_compare(phpversion(), '5.3.0', 'getSignature(); echo "{$sig['hash_type']} hash: {$sig['hash']}\n"; } catch (Exception $e) { echo getMessage(), 'file extension')) { echo getMessage(); } } } else { echo ]C