Source for file LC_Page_Upgrade_Base.php
Documentation is available at LC_Page_Upgrade_Base.php
require_once CLASS_PATH .
'pages/LC_Page.php';
require_once CLASS_PATH .
'pages/upgrade/helper/LC_Upgrade_Helper_Log.php';
require_once CLASS_PATH .
'pages/upgrade/helper/LC_Upgrade_Helper_Json.php';
require_once DATA_PATH .
'module/Request.php';
* @author LOCKON CO.,LTD.
* @version $Id: LC_Page_Upgrade_Base.php 16899 2007-12-04 05:21:16Z naka $
$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 = ?';
$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);
$objReq->addPostDataArray($arrParams);
foreach ($arrCookies as $cookie) {
$objReq->addCookie($cookie['name'], $cookie['value']);
$e =
$objReq->sendRequest();
if ($objSess->isSuccess() ===
SUCCESS) {
$arrRet =
$objQuery->select('*', 'dtb_ownersstore_settings');
return isset
($arrRet[0]['public_key'])
?
$arrRet[0]['public_key']
Documentation generated on Tue, 28 Apr 2009 18:13:02 +0900 by phpDocumentor 1.4.2