Upgrade to ExtJS 3.2.0 - Released 03/30/2010
[extjs.git] / examples / image-organizer / php / api.php
index 3b1aba6..3500bea 100644 (file)
@@ -1,32 +1,32 @@
-<?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'])){\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
-    'namespace'=>'Imgorg.ss'\r
-);\r
-\r
-echo 'Imgorg.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'])){
+                       $md['formHandler'] = true;
+               }
+               $methods[] = $md;
+       }
+       $actions[$aname] = $methods;
+}
+
+$cfg = array(
+    'url'=>'php/router.php',
+    'type'=>'remoting',
+       'actions'=>$actions,
+    'namespace'=>'Imgorg.ss'
+);
+
+echo 'Imgorg.REMOTING_API = ';
+
+echo json_encode($cfg);
+echo ';';