$host = HOST ;
$directory = UPLOAD_DIR . '/';
$userName = USER;
$password = PASSWORD;

$methods = array(
'kex' => 'diffie-hellman-group1-sha1',
'client_to_server' => array(
'crypt' => '3des-cbc',
'comp' => 'none'),
'server_to_client' => array(
'crypt' => 'aes256-cbc,aes192-cbc,aes128-cbc',
'comp' => 'none'
)
);

$this->lfPrintLog("ファイル送信を開始します");
if (!($connection = ssh2_connect($host, 22, $methods))) {
$this->lfPrintLog("ホスト {$host} とのコネクションの確立に失敗しました");
return false;
}
$this->lfPrintLog("ホスト {$host} とのコネクションの確立に成功しました");

if (!ssh2_auth_password($connection, $userName, $password)) {
$this->lfPrintLog("ユーザ {$userName} でのログインに失敗しました");
return false;
}
$this->lfPrintLog("ユーザ {$userName} でログインしました");

$fileName = $this->lfGetCsvFileName();
$path = DISH_ARCHIVE_DIR . $fileName;
if (!ssh2_scp_send($connection, $path, $directory . $fileName)) {
$this->lfPrintLog("ホスト {$host} へのSCPによるファイル送信に失敗しました");
return false;
}

$fileName = $this->lfGetEofFileName();
$path = DISH_ARCHIVE_DIR . $fileName;
if (!ssh2_scp_send($connection, $path, $directory . $fileName)) {
$this->lfPrintLog("ホスト {$host} へのSCPによるファイル送信に失敗しました");
return false;
}

$this->lfPrintLog("ホスト {$host} へのファイル送信が完了しました");
SC_Helper_Mobile.php
のL260あたりに

function sfMobileInit()

があるので、そこに

ini_set("default_mimetype", "application/xhtml+xml");
ini_set('arg_separator.output', "&");

を追加する。


テンプレートには

<?xml version="1.0" encoding="Shift_JIS" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


表示はOK。
しかし、カートに商品を入れられなくなってしまった・・・


■参考
http://d.hatena.ne.jp/red_snow/20090831/1251708564

/data/module/Net/URL.php

function getQueryString()
ここにある

$querystring = implode(ini_get('arg_separator.output'), $querystring); を
 ↓
$querystring = implode('&', $querystring); に変更
vsftpdの基本設定


# vi /etc/vsftpd/vsftpd.conf

anonymous_enable=NO

xferlog_enable=YES
xferlog_file=/var/log/vsftpd.log
xferlog_std_format=NO

ascii_upload_enable=YES
ascii_download_enable=YES

ftpd_banner=Welcome to blah FTP service.

chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd/chroot_list

ls_recurse_enable=YES


# vi /etc/vsftpd/chroot_list
※管理者ユーザのみ登録しておく


※こちらを参考にさせていただきました
http://centossrv.com/vsftpd.shtml