summaryrefslogtreecommitdiff
path: root/plugins/FBConnect/FBC_XDReceiver.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2009-10-21 01:07:03 +0000
committerZach Copley <zach@status.net>2009-10-21 01:07:03 +0000
commitd07c9d87504c3909466e2c99a1265af15aba3c3d (patch)
treefefc9a03987083fa713ca5d8d90b17d427deb67f /plugins/FBConnect/FBC_XDReceiver.php
parent78e5a5980a21c04cfdacb993ca3c37bf65d21783 (diff)
Gather all the Facebook stuff together in one place
Diffstat (limited to 'plugins/FBConnect/FBC_XDReceiver.php')
-rw-r--r--plugins/FBConnect/FBC_XDReceiver.php68
1 files changed, 0 insertions, 68 deletions
diff --git a/plugins/FBConnect/FBC_XDReceiver.php b/plugins/FBConnect/FBC_XDReceiver.php
deleted file mode 100644
index 2bc790d5a..000000000
--- a/plugins/FBConnect/FBC_XDReceiver.php
+++ /dev/null
@@ -1,68 +0,0 @@
-<?php
-
-if (!defined('STATUSNET') && !defined('LACONICA')) {
- exit(1);
-}
-
-/*
- * Generates the cross domain communication channel file
- * (xd_receiver.html). By generating it we can add some caching
- * instructions.
- *
- * See: http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel
- */
-class FBC_XDReceiverAction extends Action
-{
-
- /**
- * Do we need to write to the database?
- *
- * @return boolean true
- */
-
- function isReadonly()
- {
- return true;
- }
-
- /**
- * Handle a request
- *
- * @param array $args Arguments from $_REQUEST
- *
- * @return void
- */
-
- function handle($args)
- {
- // Parent handling, including cache check
- parent::handle($args);
- $this->showPage();
- }
-
- function showPage()
- {
- // cache the xd_receiver
- header('Cache-Control: max-age=225065900');
- header('Expires:');
- header('Pragma:');
-
- $this->startXML('html');
-
- $language = $this->getLanguage();
-
- $this->elementStart('html', array('xmlns' => 'http://www.w3.org/1999/xhtml',
- 'xml:lang' => $language,
- 'lang' => $language));
- $this->elementStart('head');
- $this->element('title', null, 'cross domain receiver page');
- $this->script('http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js');
- $this->elementEnd('head');
- $this->elementStart('body');
- $this->elementEnd('body');
-
- $this->elementEnd('html');
- }
-
-}
-