You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (Configure::read('Cakeftp.enabled') !== true) {
20
-
thrownewInternalErrorException(__d('cakeftp', 'CakeFTP client/console are disabled by default for security. To enable put Configure::write(\'Cakeftp.enabled\', true); in your Config/bootstrap.php or AppController.php.'));
19
+
// The latter is deprecated
20
+
if (!Configure::read('Ftp.enabled') && !Configure::read('Cakeftp.enabled')) {
21
+
thrownewInternalErrorException(__d('cakeftp', 'CakePHP FTP client/console are disabled by default for security. To enable put Configure::write(\'Ftp.enabled\', true); in your Config/bootstrap.php or config file.'));
thrownewException(__d('cakeftp', 'Please upload the contents of the phpseclib (https://github.com/phpseclib/phpseclib) to the app/Plugin/Ftp/Vendor/phpseclib/ folder'));
395
+
// Deprecated way of not using composer, but a ROOT/vendors/phpseclib/ one (downloaded version).
396
+
if (!class_exists('Net_SFTP') && strpos(get_include_path(), 'phpseclib') === false) {
thrownewException(__d('cakeftp', 'Please upload the contents of the phpseclib (https://github.com/phpseclib/phpseclib) to the ROOT/vendors/phpseclib/ folder'));
399
399
}
400
400
}
401
+
if (!class_exists('Net_SFTP')) {
402
+
thrownewException(__d('cakeftp', 'Please make sure phpseclib (https://github.com/phpseclib/phpseclib) is a loaded composer dependency.'));
throw new Exception(__d('cakeftp', 'Please upload the contents of the phpseclib (https://github.com/phpseclib/phpseclib) to the APP/Vendor/phpseclib/ folder'));
11
+
}
12
+
}
13
+
if (!class_exists('Net_SFTP')) {
14
+
throw new Exception(__d('cakeftp', 'Please make sure phpseclib (https://github.com/phpseclib/phpseclib) is a loaded composer dependency.'));
0 commit comments