그누보드5.0.33 수정내역 적용

This commit is contained in:
chicpro
2015-05-13 11:57:04 +09:00
parent 9fd14cfc17
commit 2705b9312c
11 changed files with 36 additions and 39 deletions

View File

@ -2430,12 +2430,12 @@ function googl_short_url($longUrl)
// URL Shortener API ON
$apiKey = $config['cf_googl_shorturl_apikey'];
$postData = array('longUrl' => $longUrl, 'key' => $apiKey);
$postData = array('longUrl' => $longUrl);
$jsonData = json_encode($postData);
$curlObj = curl_init();
curl_setopt($curlObj, CURLOPT_URL, 'https://www.googleapis.com/urlshortener/v1/url');
curl_setopt($curlObj, CURLOPT_URL, 'https://www.googleapis.com/urlshortener/v1/url?key='.$apiKey);
curl_setopt($curlObj, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curlObj, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curlObj, CURLOPT_HEADER, 0);