function send($user_name = '', $password = '', $file_name = '', $options = array())
 {
     $this->_rendered = empty($this->_rendered) ? $this->render($options) : $this->_rendered;
     $file_name = empty($file_name) ? $this->_domain . '_' . $this->_schema_name . '_PhpBase.txt' : $file_name;
     if (!class_exists('AkFtpClient')) {
         @(include_once PHPBASE_DIR . 'PhpBase' . DS . 'AkFtpClient.php');
     }
     if (!defined('GOOGLE_BASE_FTP_SETTINGS')) {
         define('GOOGLE_BASE_FTP_SETTINGS', 'ftp://' . $user_name . ':' . $password . '@' . $this->_ftp_server . '/');
     }
     return AkFtpClient::put_contents($file_name, $this->_rendered);
 }
 function is_dir($path)
 {
     if ($ftp_conn = AkFtpClient::connect()) {
         $path = str_replace('\\', '/', $path);
         $result = @ftp_chdir($ftp_conn, $path);
         AkFtpClient::connect();
         return $result;
     }
     return false;
 }