Solving OAuth problems on my blog

Since yesterday it seemed that there occured some errors. Most likely when you tried to login or post a comment. This was due to the OAuth library included with several plugins and all tried to declare the same classes and functions. For now this is solved by adding a class_exist check in the library.

I will lookup the OAuth project and check how we can incorporate these suggestions in to the library.

Old:

class OAuthConsumer {
	public $key;
	public $secret;

	function __construct($key, $secret) {
		$this->key = $key;
		$this->secret = $secret;
	}

	function __toString() {
		return "OAuthConsumer[key=$this->key,secret=$this->secret]";
	}
}

New:

if (!class_exists("OAuthConsumer", false)) {
	class OAuthConsumer {
		public $key;
		public $secret;

		function __construct($key, $secret) {
			$this->key = $key;
			$this->secret = $secret;
		}

		function __toString() {
			return "OAuthConsumer[key=$this->key,secret=$this->secret]";
		}
	}
}

Note lines 1 and 15.

Lack of competition a bigger threat than piracy, says Miramax CEO

Giving a Media Mastermind keynote session, Lang reiterated Miramax’s strategy of enabling customers to access content anytime and anywhere across multiple platforms, from physical discs, to streaming services, to ultimately buying content in a digital cloud. Lang claimed that ultimately Miramax will load over 300 of its library of 700 titles—including Pulp Fiction, Chicago and Shakespeare In Love—each month for OTT service users.

“We believe that cross-platform is key to growing the digital transactions business,” Lang told his audience in Cannes. “We believe that all [the] different platforms can be complementary and co-exist together.”

via MIPCOM 2011: Lack of competition a bigger threat than piracy, says Miramax CEO | MIPCOM 2011 | Rapid TV News.