? services/.DS_Store
Index: services.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/services/services.module,v
retrieving revision 1.16
diff -r1.16 services.module
2c2
< // $Id: services.module,v 1.16 2011/01/21 01:42:30 ocyrus Exp $
---
> // $Id: services.module,v 1.8.2.88.2.6 2009/09/05 13:57:58 marcingy Exp $
35c35
<       'title' => t('Administer services'),
---
>       'title' => t('Administer services'), 
40c40
<       'title' => t('Get any binary files'),
---
>       'title' => t('Get any binary files'), 
44c44
<       'title' => t('Get own binary files'),
---
>       'title' => t('Get own binary files'), 
48c48
<       'title' => t('Save file information'),
---
>       'title' => t('Save file information'), 
57c57
<       'title' => t('Set a system variable'),
---
>       'title' => t('Set a system variable'), 
178c178
<  * Access callback that always returns TRUE.
---
>  * Access callback that always returns TRUE. 
180,181c180,181
<  * This callback is necessary for services like login and logout that should
<  * always be wide open and accessible.
---
>  * This callback is necessary for services like login and logout that should 
>  * always be wide open and accessible. 
245,248c245,248
<     if($endpoint->debug) {
<       watchdog('services', 'Calling server: %server', array('%server' => $server . '_server'), WATCHDOG_DEBUG);
<       watchdog('services', 'Server info main object: <pre>@info</pre>', array('@info' => print_r(services_server_info_object(), TRUE)), WATCHDOG_DEBUG);
<     }
---
>    if($endpoint->debug) {
>      watchdog('services', 'Calling server :'. $server . '_server');
>      watchdog('services', 'Server Info Main Object<pre>'. print_r(services_server_info_object(), 1));
>    }
259,276d258
< /**
<  * Callback for crossdomain.xml
<  */
< function services_crossdomain_xml() {
<   $output = '<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">' . "\n";
<   $output .= '<cross-domain-policy>' . "\n";
< 
<   $domains = module_invoke_all('services_crossdomain_domain_policy');
<   drupal_alter('services_crossdomain_domain_policy', $domains);
< 
<   foreach ($domains as $domain => $info) {
<     $output .= '  <allow-access-from domain="' . check_plain($domain) . '" />' . "\n";
<     if ($info['subdomain_wildcard']) {
<       $output .= '  <allow-access-from domain="*.' . check_plain($domain) . '" />' . "\n";
<     }
<   }
< 
<   $output .= '</cross-domain-policy>';
278,310d259
<   services_xml_output($output);
< }
< 
< /**
<  * Implementation of hook_services_crossdomain_domain_policy().
<  */
< function services_services_crossdomain_domain_policy() {
<   // Allow our own domain and it's subdomains
<   return array(
<     $_SERVER['HTTP_HOST'] => array(
<       'subdomain_wildcard' => TRUE,
<     ),
<   );
< }
< 
< /**
<  * Helper function for services_crossdomain_xml().
<  * Outputs the necessary http headers and xml processing instruction then exits.
<  *
<  * @param string $xml
<  *  The xml document to print.
<  * @return void
<  *  This function never returns, it always exits.
<  */
< function services_xml_output($xml) {
<   $xml = '<?xml version="1.0" encoding="UTF-8"?>' . "\n" . $xml;
<   header('Connection: close');
<   header('Content-Length: ' . strlen($xml));
<   header('Content-Type: text/xml');
<   header('Date: ' . date('r'));
<   echo $xml;
<   exit;
< }
471c420
< 
---
>  
501c450
< 
---
>     
504c453
<     }
---
>     } 
