php8.0 버전 호환 코드 적용 및 PHP 끝 태그 삭제 일괄적용

This commit is contained in:
thisgun
2021-01-04 15:39:15 +09:00
parent 131b170b54
commit 27e9af5e42
1009 changed files with 12120 additions and 10849 deletions

View File

@ -1,3 +1,2 @@
<?php
include_once('../../common.php');
?>
include_once('../../common.php');

View File

@ -1,3 +1,2 @@
<?php
include_once("../../../common.php");
?>
include_once("../../../common.php");

View File

@ -84,5 +84,4 @@ EOT;
}
include_once(G5_PATH.'/tail.sub.php');
?>
include_once(G5_PATH.'/tail.sub.php');

View File

@ -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 }

View File

@ -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) {