| 1 |
<?php |
<?php |
| 2 |
// $Id: ftp.backend.inc,v 1.3.2.9 2008/09/28 02:56:58 jabapyth Exp $ |
// $Id: ftp.backend.inc,v 1.3.2.10 2008/09/28 15:03:48 joshuarogers Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 81 |
function ftp_plugin_manager_copy_library($files, $type, $host, $username, $password) { |
function ftp_plugin_manager_copy_library($files, $type, $host, $username, $password) { |
| 82 |
// Figure out the type of files. |
// Figure out the type of files. |
| 83 |
if (!in_array($type, array('modules', 'themes'))) { |
if (!in_array($type, array('modules', 'themes'))) { |
| 84 |
|
drupal_set_message("invalid plugin type $type",'error'); |
| 85 |
return FALSE; |
return FALSE; |
| 86 |
} |
} |
| 87 |
$dir = 'sites/all/'. drupal_strtolower($type); |
$dir = 'sites/all/'. drupal_strtolower($type); |
| 168 |
function ftp_plugin_manager_copy_wrapper($files, $type, $host, $username, $password) { |
function ftp_plugin_manager_copy_wrapper($files, $type, $host, $username, $password) { |
| 169 |
// Figure out the type of files. |
// Figure out the type of files. |
| 170 |
if (!in_array($type, array('modules', 'themes'))) { |
if (!in_array($type, array('modules', 'themes'))) { |
| 171 |
|
drupal_set_message("invalid plugin type $type",'error'); |
| 172 |
return FALSE; |
return FALSE; |
| 173 |
} |
} |
| 174 |
$dir = 'sites/all/'. drupal_strtolower($type); |
$dir = 'sites/all/'. drupal_strtolower($type); |