This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- authorize.py.orig 2012-09-18 09:45:28.150774353 -0700 | |
+++ authorize.py 2012-09-18 09:45:54.117029452 -0700 | |
@@ -310,7 +310,7 @@ class Authorizer(object): | |
fragments["token_type"] = "bearer" | |
access_token.save() | |
if self.state is not None: | |
- parameters['state'] = self.state | |
+ fragments['state'] = self.state | |
redirect_uri = add_parameters(self.redirect_uri, parameters) | |
redirect_uri = add_fragments(redirect_uri, fragments) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
preg_match('/(Android|iPad|iPhone|iPod)/', $_SERVER['HTTP_USER_AGENT'], $mobile_device); | |
if(!empty($mobile_device)) { | |
print 'By George, we have a mobile device.'; | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Define a new Abstract class for all 'shapes' to extend | |
abstract class Shape { | |
//Define the methods required for classes to extend | |
//the abstract class | |
abstract protected function getColor(); | |
abstract protected function setColor($color); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Define a new Interface for all 'shapes' to inherit | |
interface Shape { | |
//Define the methods required for classes to implement | |
public function getColor(); | |
public function setColor($color); |