g4를 g5로 변경
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
include_once("./_common.php");
|
||||
include_once(G4_SNS_PATH."/facebook/src/facebook.php");
|
||||
include_once(G5_SNS_PATH."/facebook/src/facebook.php");
|
||||
|
||||
$facebook = new Facebook(array(
|
||||
'appId' => $config['cf_facebook_appid'],
|
||||
@ -18,8 +18,8 @@ if ($user) {
|
||||
}
|
||||
}
|
||||
|
||||
$g4['title'] = '페이스북 콜백';
|
||||
include_once(G4_PATH.'/head.sub.php');
|
||||
$g5['title'] = '페이스북 콜백';
|
||||
include_once(G5_PATH.'/head.sub.php');
|
||||
|
||||
if ($user) {
|
||||
$sns_name = $user_profile['name'];
|
||||
@ -28,7 +28,7 @@ if ($user) {
|
||||
set_cookie('ck_sns_name', $sns_name, 86400);
|
||||
set_session('ss_facebook_user', $user);
|
||||
|
||||
$g4_sns_url = G4_SNS_URL;
|
||||
$g5_sns_url = G5_SNS_URL;
|
||||
|
||||
echo <<<EOT
|
||||
<script>
|
||||
@ -37,7 +37,7 @@ if ($user) {
|
||||
|
||||
var opener = window.opener;
|
||||
opener.$("#wr_name").val("{$sns_name}");
|
||||
opener.$("#facebook_icon").attr("src", "{$g4_sns_url}/icon/facebook.png");
|
||||
opener.$("#facebook_icon").attr("src", "{$g5_sns_url}/icon/facebook.png");
|
||||
opener.$("#facebook_checked").attr("disabled", false);
|
||||
opener.$("#facebook_checked").attr("checked", true);
|
||||
window.close();
|
||||
@ -58,5 +58,5 @@ EOT;
|
||||
|
||||
}
|
||||
|
||||
include_once(G4_PATH.'/tail.sub.php');
|
||||
include_once(G5_PATH.'/tail.sub.php');
|
||||
?>
|
||||
Reference in New Issue
Block a user