This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * This file is part of EC-CUBE | |
| * | |
| * Copyright(c) 2000-2013 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/db/SC_DB_DBFactory.php | |
| =================================================================== | |
| --- data/class/db/SC_DB_DBFactory.php (リビジョン 23329) | |
| +++ data/class/db/SC_DB_DBFactory.php (作業コピー) | |
| @@ -70,7 +70,8 @@ | |
| 'protocol' => 'tcp', | |
| 'hostspec' => DB_SERVER, | |
| 'port' => DB_PORT, | |
| - 'database' => DB_NAME | |
| + 'database' => DB_NAME, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/SC_CheckError.php | |
| =================================================================== | |
| --- data/class/SC_CheckError.php (リビジョン 23348) | |
| +++ data/class/SC_CheckError.php (作業コピー) | |
| @@ -851,7 +851,7 @@ | |
| return; | |
| } | |
| $this->createParam($value); | |
| - if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) { | |
| + if (strlen($this->arrParam[$value[1]]) > 0 && preg_match("/[^[:alnum:]_.\\-]/", $this->arrParam[$value[1]])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/SC_CheckError.php | |
| =================================================================== | |
| --- data/class/SC_CheckError.php (リビジョン 23289) | |
| +++ data/class/SC_CheckError.php (作業コピー) | |
| @@ -851,7 +851,7 @@ | |
| return; | |
| } | |
| $this->createParam($value); | |
| - if (strlen($this->arrParam[$value[1]]) > 0 && !preg_match("/^[[:alnum:]_\.-]+$/i", $this->arrParam[$value[1]]) || preg_match('/[\\]/' ,$this->arrParam[$value[1]])) { | |
| + if (strlen($this->arrParam[$value[1]]) > 0 && preg_match("/[^[:alnum:]_.\\-]/", $this->arrParam[$value[1]])) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php | |
| =================================================================== | |
| --- data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (revision 23350) | |
| +++ data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (working copy) | |
| @@ -232,31 +232,33 @@ | |
| $cntInsert = 0; | |
| $img_cnt = 0; | |
| - $fp = $this->openZipCsv(); | |
| - while (!feof($fp)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php | |
| =================================================================== | |
| --- data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (revision 23350) | |
| +++ data/class/pages/admin/basis/LC_Page_Admin_Basis_ZipInstall.php (working copy) | |
| @@ -233,19 +233,28 @@ | |
| $img_cnt = 0; | |
| $fp = $this->openZipCsv(); | |
| + $begin = microtime(true); | |
| + $bulk_size = 100; # バルクインサート件数 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/db/SC_DB_DBFactory.php | |
| =================================================================== | |
| --- data/class/db/SC_DB_DBFactory.php (revision 23352) | |
| +++ data/class/db/SC_DB_DBFactory.php (working copy) | |
| @@ -40,6 +40,7 @@ | |
| { | |
| switch ($db_type) { | |
| case 'mysql': | |
| + case 'mysqli': | |
| return new SC_DB_DBFactory_MYSQL(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Index: data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php | |
| =================================================================== | |
| --- data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (リビジョン 23289) | |
| +++ data/class/pages/admin/products/LC_Page_Admin_Products_ProductClass.php (作業コピー) | |
| @@ -512,6 +512,11 @@ | |
| } | |
| } | |
| + // 登録済みの規格を先頭に並べる。 | |
| + $del_flags = array_map(function ($class) { return (int)$class['del_flg']; }, $arrMergeProductsClass); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name 千年戦争アイギス | |
| // @namespace http://kilauea.bbspink.com/test/read.cgi/mobpink/ | |
| // @version 0.2 | |
| // @description Chrome extension にしたい。 | |
| // @match http://www.dmm.co.jp/netgame/social/-/gadgets/=/app_id=156462/ | |
| // @copyright 2014+, zenith | |
| // ==/UserScript== | |
| (function ($) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $order = /* order object */; | |
| $wrapper = entity_metadata_wrapper('commerce_order', $order); | |
| $items = []; | |
| foreach ($wrapper->commerce_line_items as $line_item) { | |
| $items[] = [ | |
| 'type' => $line_item->type->value(), # Product type machine name |
OlderNewer