公式ページ
設定ファイル
cp -a phpliteadmin.config.sample.php phpliteadmin.config.php
-
必要に応じて日本語化をする。以下で配布されている。解凍し同じフォルダに保存。
-
phpliteadmin.config.php を編集
- $language = 'en'
+ $language = 'ja'
修正箇所
2396行目あたり
- カンマ区切りを初期値とする
- echo "<input type='text' value=';' name='export_csv_fieldsterminated' style='float:right;'/>";
+ echo "<input type='text' value=',' name='export_csv_fieldsterminated' style='float:right;'/>";
- NULLの箇所はNULLという文字を入れない
- echo "<input type='text' value='NULL' name='export_csv_replacenull' style='float:right;'/>";
+ echo "<input type='text' value='' name='export_csv_replacenull' style='float:right;'/>";
- 5788行あたり。CSV出力時に改行コードが消えるのを阻止
for($y=0; $y<sizeof($cols); $y++)
{
$cell = $row[$cols[$y]];
if($crlf)
{
- $cell = str_replace("\n","", $cell);
+ // $cell = str_replace("\n","", $cell);
- $cell = str_replace("\r","", $cell);
+ // $cell = str_replace("\r","", $cell);
}
$cell = str_replace($field_terminate,$field_escaped.$field_terminate,$cell);
$cell = str_replace($field_enclosed,$field_escaped.$field_enclosed,$cell);
// do not enclose NULLs
if($cell == NULL)
echo $null;
else
echo $field_enclosed.$cell.$field_enclosed;
// do not terminate the last column!
if($y < sizeof($cols)-1)
echo $field_terminate;
}