Source for file LC_Page_Upgrade_Base.php
Documentation is available at LC_Page_Upgrade_Base.php
require_once CLASS_EX_REALDIR . 'page_extends/LC_Page_Ex.php';
require_once CLASS_REALDIR . 'pages/upgrade/helper/LC_Upgrade_Helper_Log.php';
require_once CLASS_REALDIR . 'pages/upgrade/helper/LC_Upgrade_Helper_Json.php';
require_once DATA_REALDIR . 'module/HTTP/Request.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Upgrade_Base.php 21241 2011-09-16 10:49:27Z shutta $
$arrOstoreIPs = $masterData->getMasterData("mtb_ownersstore_ips");
if (isset ($_SERVER['REMOTE_ADDR'])
&& in_array($_SERVER['REMOTE_ADDR'], $arrOstoreIPs))
$objLog->log('* ip ok ' . $_SERVER['REMOTE_ADDR']);
$objLog->log('* refused ip ' . $_SERVER['REMOTE_ADDR']);
* @param integer $product_id
$where = 'module_id = ?';
$objQuery = new SC_Query_Ex();
$arrRet = $objQuery->select('auto_update_flg', 'dtb_module', $where, array($product_id));
if (isset ($arrRet[0]['auto_update_flg'])
&& $arrRet[0]['auto_update_flg'] === '1') {
* @param array $arrParams 追加パラメーター.連想配列で渡す.
* @return string|object レスポンスボディ|エラー時にはPEAR::Errorオブジェクトを返す.
function request($mode, $arrParams = array(), $arrCookies = array()) {
$objReq = new HTTP_Request();
$objReq->setUrl(OSTORE_URL . 'upgrade/index.php');
$objReq->setMethod('POST');
$objReq->addPostData('mode', $mode);
foreach ($arrParams as $key => $val) {
$objReq->addPostData($key, $val);
foreach ($arrCookies as $cookie) {
$objReq->addCookie($cookie['name'], $cookie['value']);
$e = $objReq->sendRequest();
$objSess = new SC_Session_Ex();
if ($objSess->isSuccess() === SUCCESS) {
$objQuery = new SC_Query_Ex();
$arrRet = $objQuery->select('*', 'dtb_ownersstore_settings');
return isset ($arrRet[0]['public_key'])
? $arrRet[0]['public_key']
* オーナーズストアからの POST のため, トークンチェックしない.
Documentation generated on Fri, 24 Feb 2012 14:02:21 +0900 by Seasoft
|