<?php
/**
 * Copyright (C) OElove All rights reserved.
 * <E-Mail：service@phpcoo.com>
 * Url http://www.phpcoo.com
 *     http://www.oephp.com
 *     http://www.oelove.com
 * Update 2017.04.21
 */
if (!defined('IN_OELOVE')) {
    exit('OElove[OEPHP] Access Denied');
}
global $SDK_VER;
global $QINIU_UP_HOST;
global $QINIU_RS_HOST;
global $QINIU_RSF_HOST;
global $QINIU_API_HOST;
global $QINIU_IOVIP_HOST;
global $QINIU_ACCESS_KEY;
global $QINIU_SECRET_KEY;

$SDK_VER = "6.1.13";
$QINIU_RS_HOST	= 'http://rs.qbox.me';
$QINIU_RSF_HOST	= 'http://rsf.qbox.me';
$QINIU_API_HOST = 'http://api.qiniu.com';
$QINIU_ACCESS_KEY	= '';//0Uq_URZGRT2hiFCaGkQKRh031ZTvuW-nYEWnEbSP
$QINIU_SECRET_KEY	= '';//B8IVzJeYOehrerGTbPuAyV9EQujMLmziHew_nb4F

/**
 * 存储区域
 * 华东地区（1）-up: http://up.qiniu.com，down: http://iovip.qbox.me
 * 华北地区（2）-up: http://up-z1.qiniu.com，down: http://iovip-z1.qbox.me
 * 华南地区（3）-up: http://up-z2.qiniu.com，down: http://iovip-z2.qbox.me
 * 北美地区（4）-up: http://up-na0.qiniu.com，down: http://iovip-na0.qbox.me
*/
//$qiniu_apiarea = defined("QINIU_APIAREA") ? QINIU_APIAREA : 1;
$qiniu_apiarea = OE::$cfg['qiniu_apiarea']; //存储区域
if ($qiniu_apiarea == 2) {
    $QINIU_UP_HOST	= 'http://up-z1.qiniu.com';
    $QINIU_IOVIP_HOST = 'http://iovip-z1.qbox.me';
}
elseif ($qiniu_apiarea == 3) {
    $QINIU_UP_HOST	= 'http://up-z2.qiniu.com';
    $QINIU_IOVIP_HOST = 'http://iovip-z2.qbox.me';
}
elseif ($qiniu_apiarea == 4) {
    $QINIU_UP_HOST	= 'http://up-na0.qiniu.com';
    $QINIU_IOVIP_HOST = 'http://iovip-na0.qbox.me';
}
else {
    $QINIU_UP_HOST	= 'http://up.qiniu.com';
    $QINIU_IOVIP_HOST = 'http://iovip.qbox.me';
}
?>