| 1 |
<?php |
<?php |
| 2 |
// $Id: services.module,v 1.8.2.88.2.7 2009/10/15 03:54:05 marcingy Exp $ |
// $Id: services.module,v 1.8.2.88.2.8 2009/10/15 03:59:55 marcingy Exp $ |
| 3 |
/** |
/** |
| 4 |
* @author Services Dev Team |
* @author Services Dev Team |
| 5 |
* @file |
* @file |
| 141 |
$output .= '<cross-domain-policy>'."\n"; |
$output .= '<cross-domain-policy>'."\n"; |
| 142 |
$output .= ' <allow-access-from domain="'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n"; |
$output .= ' <allow-access-from domain="'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n"; |
| 143 |
$output .= ' <allow-access-from domain="*.'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n"; |
$output .= ' <allow-access-from domain="*.'. check_plain($_SERVER['HTTP_HOST']) .'" />'."\n"; |
| 144 |
$keys = services_get_keys(); |
$keys = (function_exists('services_keyauth_get_keys')) ? services_keyauth_get_keys() : array(); |
| 145 |
|
|
| 146 |
foreach ($keys as $key) { |
foreach ($keys as $key) { |
| 147 |
if (!empty($key->domain)) { |
if (!empty($key->domain)) { |