-<?php\r
-require('config.php');\r
-header('Content-Type: text/javascript');\r
-\r
-// convert API config to Ext.Direct spec\r
-$actions = array();\r
-foreach($API as $aname=>&$a){\r
- $methods = array();\r
- foreach($a['methods'] as $mname=>&$m){\r
- $md = array(\r
- 'name'=>$mname,\r
- 'len'=>$m['len']\r
- );\r
- if(isset($m['formHandler']) && $m['formHandler']){\r
- $md['formHandler'] = true;\r
- }\r
- $methods[] = $md;\r
- }\r
- $actions[$aname] = $methods;\r
-}\r
-\r
-$cfg = array(\r
- 'url'=>'php/router.php',\r
- 'type'=>'remoting',\r
- 'actions'=>$actions\r
-);\r
-\r
-echo 'Ext.app.REMOTING_API = ';\r
-\r
-echo json_encode($cfg);\r
-echo ';';\r
+<?php
+require('config.php');
+header('Content-Type: text/javascript');
+
+// convert API config to Ext.Direct spec
+$actions = array();
+foreach($API as $aname=>&$a){
+ $methods = array();
+ foreach($a['methods'] as $mname=>&$m){
+ $md = array(
+ 'name'=>$mname,
+ 'len'=>$m['len']
+ );
+ if(isset($m['formHandler']) && $m['formHandler']){
+ $md['formHandler'] = true;
+ }
+ $methods[] = $md;
+ }
+ $actions[$aname] = $methods;
+}
+
+$cfg = array(
+ 'url'=>'php/router.php',
+ 'type'=>'remoting',
+ 'actions'=>$actions
+);
+
+echo 'Ext.app.REMOTING_API = ';
+
+echo json_encode($cfg);
+echo ';';