Thought it would be nice if you checked if classes could be autoloaded before including them... For instance:
- Code: Select all
require_once('Net/SSH2.php');
could be replaced by:
- Code: Select all
if (!class_exists('Net_SSH2')) require_once('Net/SSH2.php');
The call to class_exists would return true if the class can be autoloaded, hence not running require_once...
