2c2
< // $Id: amfphp.module,v 1.3.2.5 2007/07/15 18:35:04 snelson Exp $
---
> //$Id: amfphp.module,v 1.3.2.5 2007/07/15 18:35:04 snelson Exp $
10,13c10,13
<   // Test AMFPHP version 
<   $requirements['amfphp'] = array( 
<     'title' => $t('AMFPHP'), 
<     'value' => $t('1.9 Beta 2'), 
---
>   //Test AMFPHP version
>   $requirements['amfphp'] = array(
>     'title' => $t('AMFPHP'),
>     'value' => $t('1.9 Beta 2'),
16c16
<   if (!file_exists(realpath(dirname(__FILE__) . '/amfphp/globals.php'))) { 
---
>   if (!file_exists(realpath(dirname(__FILE__) .'/amfphp/globals.php'))) {
18,19c18,19
<     $requirements['amfphp']['description'] = $t('You must dowload <a href="http://www.5etdemi.com/blog/archives/2007/01/amfphp-19-beta-2-ridiculously-faster/">AMFPHP 1.9 beta 2</a>, and extract to modules/amfphp/amfphp, or respective site modules directory.');
<     $requirements['amfphp']['severity'] = REQUIREMENT_ERROR; 
---
>     $requirements['amfphp']['description'] = $t('You must dowload <a href="http://downloads.sourceforge.net/amfphp/amfphp-1.9.beta.20080120.zip?modtime=1200844138">AMFPHP 1.9 beta 2</a>, and extract to modules/amfphp/amfphp, or respective site modules directory.');
>     $requirements['amfphp']['severity'] = REQUIREMENT_ERROR;
42,55c42,54
< 	
< 	require_once $path . "/amfphp/globals.php";
< 	require_once $path . "/overrides/AmfphpGateway.php";
< 
< 	$gateway = new AmfphpGateway();
< 	$gateway->setClassPath($servicesPath);
< 	$gateway->setClassMappingsPath($voPath); 
< 	//$gateway->setCharsetHandler("utf8_decode", "ISO-8859-1", "ISO-8859-1");
< 	$gateway->setCharsetHandler("iconv", "UTF-8", "UTF-8");
< 	$gateway->setErrorHandling(E_ALL ^ E_NOTICE);
< 	
< 	if (PRODUCTION_SERVER) {
< 		$gateway->disableDebug();
< 	}
---
>   
>   require_once $path ."/amfphp/globals.php";
>   require_once $path ."/overrides/AmfphpGateway.php";
> 
>   $gateway = new AmfphpGateway();
>   $gateway->setClassPath($servicesPath);
>   $gateway->setClassMappingsPath($voPath);
>   $gateway->setCharsetHandler("iconv", "UTF-8", "UTF-8");
>   $gateway->setErrorHandling(E_ALL ^ E_NOTICE);
>   
>   if (PRODUCTION_SERVER) {
>     $gateway->disableDebug();
>   }
57,58c56,57
< 	$gateway->enableGzipCompression(25*1024);
< 	$gateway->service();
---
>   $gateway->enableGzipCompression(25*1024);
>   $gateway->service();
69c68
<   // convert all userid to uid
---
>   //convert all userid to uid
74c73
<   // convert all uid to userid
---
>   //convert all uid to userid
101,102c100
< 	watchdog('amfphp_server', $message, WATCHDOG_ERROR);
<   trigger_error($message, E_USER_ERROR);
---
>   watchdog('amfphp server', $message, NULL, WATCHDOG_ERROR);
