Source for file LC_Page_Admin_Basis_ZipInstall.php
Documentation is available at LC_Page_Admin_Basis_ZipInstall.php
* This file is part of EC-CUBE
* Copyright(c) 2000-2007 LOCKON CO.,LTD. All Rights Reserved.
* http://www.lockon.co.jp/
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
require_once(CLASS_PATH .
"pages/LC_Page.php");
define("ZIP_CSV_LINE_MAX", 8192);
define("ZIP_CSV_FILE_PATH", DATA_PATH .
"downloads/KEN_ALL.CSV");
* @author LOCKON CO.,LTD.
* @version $Id:LC_Page_Admin_Basis_ZipInstall.php 16741 2007-11-08 00:43:24Z adachi $
$img_path =
USER_URL .
"packages/" .
TEMPLATE_NAME .
"/img/";
echo
('<body bgcolor="#494E5F">');
// 一部のIEは256バイト以上受け取ってから表示を開始する。
#('http://www.post.japanpost.jp/zipcode/dl/kogaki/lzh/ken_all.lzh')
print
("<img src='".
$img_path .
"install/main_w.jpg'><br>");
print
("<img src='".
$img_path .
"install/space_w.gif'>");
$objQuery->delete('mtb_zip');
$safe_mode = (boolean)
ini_get('safe_mode');
// $sqlval['code'] = $arrCSV[0];
// $sqlval['old_zipcode'] = $arrCSV[1];
$sqlval['zipcode'] =
$arrCSV[2];
// $sqlval['state_kana'] = $arrCSV[3];
// $sqlval['city_kana'] = $arrCSV[4];
// $sqlval['town_kana'] = $arrCSV[5];
// $sqlval['flg1'] = $arrCSV[9];
// $sqlval['flg2'] = $arrCSV[10];
// $sqlval['flg3'] = $arrCSV[11];
// $sqlval['flg4'] = $arrCSV[12];
// $sqlval['flg5'] = $arrCSV[13];
// $sqlval['flg6'] = $arrCSV[14];
$objQuery->insert("mtb_zip", $sqlval);
if($cnt %
$disp_line ==
0 &&
$img_cnt <
IMAGE_MAX) {
print
("<img src='".
$img_path .
"install/graph_1_w.gif'>");
// 暴走スレッドが残留する確率を軽減したタイムアウト防止のロジック
// TODO 動作が安定していれば、SC_Utils 辺りに移動したい。
print
("<img src='".
$img_path .
"install/space_w.gif'><br>\n");
print
("<table width='700' height='50' border='0' cellpadding='0' cellspacing='0'>\n");
print
("<td align='center'><a href='javascript:window.close()'><img src='".
$img_path .
"install/close.gif' alt='CLOSE' width='85' height='22' border='0' /></a></td>\n");
Documentation generated on Tue, 28 Apr 2009 18:10:49 +0900 by phpDocumentor 1.4.2