From 4d4113fccce2fc1e9e6b617aee572ccafb9bddab Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 11 Aug 2014 11:36:43 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EC=8A=A4=ED=82=A8=20=ED=91=9C=EC=8B=9C=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write.php | 2 +- plugin/sms5/write.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bbs/write.php b/bbs/write.php index 97ef6b81a..4a8e9672f 100644 --- a/bbs/write.php +++ b/bbs/write.php @@ -408,7 +408,7 @@ include_once('./board_head.php'); $action_url = https_url(G5_BBS_DIR)."/write_update.php"; -echo ''; +echo ''; include_once ($board_skin_path.'/write.skin.php'); include_once('./board_tail.php'); diff --git a/plugin/sms5/write.php b/plugin/sms5/write.php index dc250dcb9..eb63d2739 100644 --- a/plugin/sms5/write.php +++ b/plugin/sms5/write.php @@ -68,5 +68,5 @@ if( G5_IS_MOBILE ){ $write_skin_page = "/write.skin.php"; } include_once ($sms5_skin_path.$write_skin_page); -echo PHP_EOL.''.PHP_EOL; +echo PHP_EOL.''.PHP_EOL; ?> \ No newline at end of file From a82579dc6089ba31ccdf2eca7ca0af436b0e0c7e Mon Sep 17 00:00:00 2001 From: chicpro Date: Mon, 11 Aug 2014 11:38:39 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=8A=A4=EB=B6=81=20?= =?UTF-8?q?=EC=83=98=ED=94=8C=20=ED=8C=8C=EC=9D=BC=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/sns/facebook/examples/example.php | 105 ------------------- plugin/sns/facebook/examples/with_js_sdk.php | 62 ----------- 2 files changed, 167 deletions(-) delete mode 100644 plugin/sns/facebook/examples/example.php delete mode 100644 plugin/sns/facebook/examples/with_js_sdk.php diff --git a/plugin/sns/facebook/examples/example.php b/plugin/sns/facebook/examples/example.php deleted file mode 100644 index a53b2f4f7..000000000 --- a/plugin/sns/facebook/examples/example.php +++ /dev/null @@ -1,105 +0,0 @@ - '119146498278078', - 'secret' => '6ffd7e325e2b4fbd83a2eebf9c6f33f9', -)); - -// Get User ID -$user = $facebook->getUser(); - -// We may or may not have this data based on whether the user is logged in. -// -// If we have a $user id here, it means we know the user is logged into -// Facebook, but we don't know if the access token is valid. An access -// token is invalid if the user logged out of Facebook. - -if ($user) { - try { - // Proceed knowing you have a logged in user who's authenticated. - $user_profile = $facebook->api('/me'); - } catch (FacebookApiException $e) { - error_log($e); - $user = null; - } -} - -// Login or logout url will be needed depending on current user state. -if ($user) { - $logoutUrl = $facebook->getLogoutUrl(); -} else { - $loginUrl = $facebook->getLoginUrl(); -} - -// This call will always work since we are fetching public data. -$naitik = $facebook->api('/naitik'); - -?> - - - - php-sdk - - - -

php-sdk

- - - Logout - -
- Login using OAuth 2.0 handled by the PHP SDK: - Login with Facebook -
- - -

PHP Cookie

-
- -

PHP Session

-
- - -

You

- - -

Your User Object (/me)

-
- - You are not Connected. - - -

Public profile of Naitik

- - - - diff --git a/plugin/sns/facebook/examples/with_js_sdk.php b/plugin/sns/facebook/examples/with_js_sdk.php deleted file mode 100644 index 5d62b9beb..000000000 --- a/plugin/sns/facebook/examples/with_js_sdk.php +++ /dev/null @@ -1,62 +0,0 @@ - '119146498278078', - 'secret' => '6ffd7e325e2b4fbd83a2eebf9c6f33f9', -)); - -// See if there is a user from a cookie -$user = $facebook->getUser(); - -if ($user) { - try { - // Proceed knowing you have a logged in user who's authenticated. - $user_profile = $facebook->api('/me'); - } catch (FacebookApiException $e) { - echo '
'.htmlspecialchars(print_r($e, true)).'
'; - $user = null; - } -} - -?> - - - -

PHP Cookie

-
- - - Your user profile is -
-        
-      
- - - -
- - -