@@ -6,11 +6,11 @@ |
||
| 6 | 6 | require_once('lib/Facebook/Authentication/AccessToken.php'); |
| 7 | 7 | require_once('lib/Facebook/HttpClients/FacebookCurl.php'); |
| 8 | 8 | require_once('lib/Facebook/HttpClients/FacebookCurlHttpClient.php'); |
| 9 | -require_once('lib/Facebook/Helpers/FacebookRedirectLoginHelper.php' ); |
|
| 10 | -require_once('lib/Facebook/FacebookRequest.php' ); |
|
| 11 | -require_once('lib/Facebook/FacebookResponse.php' ); |
|
| 12 | -require_once('lib/Facebook/Exceptions/FacebookSDKException.php' ); |
|
| 13 | -require_once('lib/Facebook/Exceptions/FacebookAuthorizationException.php' ); |
|
| 9 | +require_once('lib/Facebook/Helpers/FacebookRedirectLoginHelper.php'); |
|
| 10 | +require_once('lib/Facebook/FacebookRequest.php'); |
|
| 11 | +require_once('lib/Facebook/FacebookResponse.php'); |
|
| 12 | +require_once('lib/Facebook/Exceptions/FacebookSDKException.php'); |
|
| 13 | +require_once('lib/Facebook/Exceptions/FacebookAuthorizationException.php'); |
|
| 14 | 14 | |
| 15 | 15 | $appId = '359690587983062'; // Facebook App id 589129311570125 589129311570125 |
| 16 | 16 | $appSecret = 'ee50a6453ab0da99c80521144f8baefe'; //92f90e5dff5c6bdc2da0281631ec0446 538cd04f971479ff14dc409df2fbcf3b |
@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | session_start(); |
| 10 | 10 | require_once 'appconfig.php'; |
| 11 | 11 | $fb = new Facebook\Facebook([ |
| 12 | -<<<<<<< HEAD |
|
| 12 | +<< << <<< HEAD |
|
| 13 | 13 | 'app_id' => $appId, // variable with Facebook App ID |
| 14 | 14 | 'app_secret' => $appSecret, |
| 15 | 15 | 'default_graph_version' => 'v3.3', |
@@ -75,9 +75,4 @@ discard block |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -75,9 +75,4 @@ |
||
| 75 | 75 | var_dump($accessToken->getValue()); |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | -$_SESSION['fb_access_token'] = (string)$accessToken; |
|
| 79 | - |
|
| 80 | -header('Location: member.php'); |
|
| 81 | -?> |
|
| 82 | -</body> |
|
| 83 | -</html> |
|
| 84 | 78 | \ No newline at end of file |
| 79 | +$_SESSION['fb_access_token'] = (string)$accessToken |
|
| 85 | 80 | \ No newline at end of file |
@@ -57,7 +57,7 @@ |
||
| 57 | 57 | |
| 58 | 58 | // Load XML with network access disabled (LIBXML_NONET) |
| 59 | 59 | // error disabled with @ for PHP-FPM scenario |
| 60 | - set_error_handler(function ($errno, $errstr) { |
|
| 60 | + set_error_handler(function($errno, $errstr) { |
|
| 61 | 61 | if (substr_count($errstr, 'DOMDocument::loadXML()') > 0) { |
| 62 | 62 | return true; |
| 63 | 63 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * useObjectMapping() function. |
| 122 | 122 | */ |
| 123 | 123 | public static function import($uri, $client = null, |
| 124 | - $className='Zend_Gdata_Feed', $useObjectMapping = true) |
|
| 124 | + $className = 'Zend_Gdata_Feed', $useObjectMapping = true) |
|
| 125 | 125 | { |
| 126 | 126 | $app = new Zend_Gdata($client); |
| 127 | 127 | $requestData = $app->decodeRequest('GET', $uri); |
@@ -147,7 +147,7 @@ discard block |
||
| 147 | 147 | * by passing false to the |
| 148 | 148 | * useObjectMapping() function. |
| 149 | 149 | */ |
| 150 | - public function getFeed($location, $className='Zend_Gdata_Feed') |
|
| 150 | + public function getFeed($location, $className = 'Zend_Gdata_Feed') |
|
| 151 | 151 | { |
| 152 | 152 | |
| 153 | 153 | if (is_string($location)) { |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * by passing false to the |
| 175 | 175 | * useObjectMapping() function. |
| 176 | 176 | */ |
| 177 | - public function getEntry($location, $className='Zend_Gdata_Entry') |
|
| 177 | + public function getEntry($location, $className = 'Zend_Gdata_Entry') |
|
| 178 | 178 | { |
| 179 | 179 | if (is_string($location)) { |
| 180 | 180 | $uri = $location; |
@@ -142,7 +142,7 @@ |
||
| 142 | 142 | |
| 143 | 143 | $schemeHandler = new $className($scheme, $schemeSpecific); |
| 144 | 144 | |
| 145 | - if (! $schemeHandler instanceof Zend_Uri) { |
|
| 145 | + if (!$schemeHandler instanceof Zend_Uri) { |
|
| 146 | 146 | require_once 'Zend/Uri/Exception.php'; |
| 147 | 147 | throw new Zend_Uri_Exception("\"$className\" is not an instance of Zend_Uri"); |
| 148 | 148 | } |
@@ -260,7 +260,7 @@ discard block |
||
| 260 | 260 | if ('Zend_Loader' != $class) { |
| 261 | 261 | self::loadClass($class); |
| 262 | 262 | $methods = get_class_methods($class); |
| 263 | - if (!in_array('autoload', (array) $methods)) { |
|
| 263 | + if (!in_array('autoload', (array)$methods)) { |
|
| 264 | 264 | require_once 'Zend/Exception.php'; |
| 265 | 265 | throw new Zend_Exception("The class \"$class\" does not have an autoload() method"); |
| 266 | 266 | } |
@@ -312,7 +312,7 @@ discard block |
||
| 312 | 312 | if ($once) { |
| 313 | 313 | return include_once $filespec; |
| 314 | 314 | } else { |
| 315 | - return include $filespec ; |
|
| 315 | + return include $filespec; |
|
| 316 | 316 | } |
| 317 | 317 | } |
| 318 | 318 | |
@@ -77,8 +77,8 @@ |
||
| 77 | 77 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
| 78 | 78 | if (null !== ($e = $this->getPrevious())) { |
| 79 | 79 | return $e->__toString() |
| 80 | - . "\n\nNext " |
|
| 81 | - . parent::__toString(); |
|
| 80 | + . "\n\nNext " |
|
| 81 | + . parent::__toString(); |
|
| 82 | 82 | } |
| 83 | 83 | } |
| 84 | 84 | return parent::__toString(); |
@@ -43,10 +43,10 @@ |
||
| 43 | 43 | public function __construct($msg = '', $code = 0, Exception $previous = null) |
| 44 | 44 | { |
| 45 | 45 | if (version_compare(PHP_VERSION, '5.3.0', '<')) { |
| 46 | - parent::__construct($msg, (int) $code); |
|
| 46 | + parent::__construct($msg, (int)$code); |
|
| 47 | 47 | $this->_previous = $previous; |
| 48 | 48 | } else { |
| 49 | - parent::__construct($msg, (int) $code, $previous); |
|
| 49 | + parent::__construct($msg, (int)$code, $previous); |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
@@ -254,13 +254,13 @@ |
||
| 254 | 254 | $fragment = strlen($this->_fragment) > 0 ? "#$this->_fragment" : ''; |
| 255 | 255 | |
| 256 | 256 | return $this->_scheme |
| 257 | - . '://' |
|
| 258 | - . $auth |
|
| 259 | - . $this->_host |
|
| 260 | - . $port |
|
| 261 | - . $this->_path |
|
| 262 | - . $query |
|
| 263 | - . $fragment; |
|
| 257 | + . '://' |
|
| 258 | + . $auth |
|
| 259 | + . $this->_host |
|
| 260 | + . $port |
|
| 261 | + . $this->_path |
|
| 262 | + . $query |
|
| 263 | + . $fragment; |
|
| 264 | 264 | } |
| 265 | 265 | |
| 266 | 266 | /** |
@@ -494,7 +494,7 @@ discard block |
||
| 494 | 494 | } |
| 495 | 495 | |
| 496 | 496 | // Check the port against the allowed values |
| 497 | - return ctype_digit((string) $port) and 1 <= $port and $port <= 65535; |
|
| 497 | + return ctype_digit((string)$port) and 1 <= $port and $port <= 65535; |
|
| 498 | 498 | } |
| 499 | 499 | |
| 500 | 500 | /** |
@@ -554,7 +554,7 @@ discard block |
||
| 554 | 554 | throw new Zend_Uri_Exception('Internal error: path validation failed'); |
| 555 | 555 | } |
| 556 | 556 | |
| 557 | - return (boolean) $status; |
|
| 557 | + return (boolean)$status; |
|
| 558 | 558 | } |
| 559 | 559 | |
| 560 | 560 | /** |
@@ -684,7 +684,7 @@ discard block |
||
| 684 | 684 | $query = http_build_query($query, '', '&'); |
| 685 | 685 | } else { |
| 686 | 686 | // If it is a string, make sure it is valid. If not parse and encode it |
| 687 | - $query = (string) $query; |
|
| 687 | + $query = (string)$query; |
|
| 688 | 688 | if ($this->validateQuery($query) === false) { |
| 689 | 689 | parse_str($query, $queryArray); |
| 690 | 690 | $query = http_build_query($queryArray, '', '&'); |
@@ -740,7 +740,7 @@ discard block |
||
| 740 | 740 | throw new Zend_Uri_Exception('Internal error: fragment validation failed'); |
| 741 | 741 | } |
| 742 | 742 | |
| 743 | - return (boolean) $status; |
|
| 743 | + return (boolean)$status; |
|
| 744 | 744 | } |
| 745 | 745 | |
| 746 | 746 | /** |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | $this->registerPackage('Zend_Gdata_Books_Extension'); |
| 91 | 91 | parent::__construct($client, $applicationId); |
| 92 | 92 | $this->_httpClient->setParameterPost('service', self::AUTH_SERVICE_NAME); |
| 93 | - } |
|
| 93 | + } |
|
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | 96 | * Retrieves a feed of volumes. |