php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용
This commit is contained in:
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once('../../common.php');
|
||||
?>
|
||||
include_once('../../common.php');
|
||||
@ -1,3 +1,2 @@
|
||||
<?php
|
||||
include_once("../../../common.php");
|
||||
?>
|
||||
include_once("../../../common.php");
|
||||
@ -84,5 +84,4 @@ EOT;
|
||||
|
||||
}
|
||||
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
@ -12,4 +12,4 @@ if (!$board['bo_use_sns']) return;
|
||||
<?php } ?>
|
||||
<?php if ($list[$i]['wr_twitter_user']) { ?>
|
||||
<a href="https://www.twitter.com/<?php echo $list[$i]['wr_twitter_user']; ?>" target="_blank"><img src="<?php echo G5_SNS_URL; ?>/icon/twitter<?php echo $sns_mc_icon; ?>.png" alt="트위터에도 등록됨"></a>
|
||||
<?php } ?>
|
||||
<?php }
|
||||
@ -34,8 +34,10 @@ if ($config['cf_twitter_key']) {
|
||||
}
|
||||
}
|
||||
*/
|
||||
$access_token = $_SESSION['access_token'];
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_token['oauth_token'], $access_token['oauth_token_secret']);
|
||||
$access_token = get_session('access_token');
|
||||
$access_oauth_token = isset($access_token['oauth_token']) ? $access_token['oauth_token'] : '';
|
||||
$access_oauth_token_secret = isset($access_token['oauth_token_secret']) ? $access_token['oauth_token_secret'] : '';
|
||||
$connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $access_oauth_token, $access_oauth_token_secret);
|
||||
$content = $connection->get('account/verify_credentials');
|
||||
|
||||
switch ($connection->http_code) {
|
||||
|
||||
Reference in New Issue
Block a user