This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Configure phpseclib | |
// Go download it from http://phpseclib.sourceforge.net/index.html and extract it | |
set_include_path(get_include_path() . PATH_SEPARATOR . '/full/path/to/phpseclib'); | |
include('Net/SFTP.php'); | |
include('Crypt/RSA.php'); | |
// Load config, which is in its own file, since I'm a good security boy | |
$config = json_decode(file_get_contents('config.json')); |