3 if (!defined('LACONICA')) {
8 * Generates the cross domain communication channel file
9 * (xd_receiver.html). By generating it we can add some caching
12 * See: http://wiki.developers.facebook.com/index.php/Cross_Domain_Communication_Channel
14 class FBC_XDReceiverAction extends Action
18 * Do we need to write to the database?
20 * @return boolean true
31 * @param array $args Arguments from $_REQUEST
36 function handle($args)
38 // Parent handling, including cache check
39 parent::handle($args);
45 // cache the xd_receiver
46 header('Cache-Control: max-age=225065900');
50 $this->startXML('html',
51 '-//W3C//DTD XHTML 1.0 Strict//EN',
52 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd');
54 $language = $this->getLanguage();
56 $this->elementStart('html', array('xmlns' => 'http://www.w3.org/1999/xhtml',
57 'xml:lang' => $language,
58 'lang' => $language));
59 $this->elementStart('head');
60 $this->element('title', null, 'cross domain receiver page');
61 $this->element('script',
63 'http://static.ak.connect.facebook.com/js/api_lib/v0.4/XdCommReceiver.debug.js',
64 'type' => 'text/javascript'), '');
65 $this->elementEnd('head');
66 $this->elementStart('body');
67 $this->elementEnd('body');
69 $this->elementEnd('html');