Merge 5.3 branch, as that becomes the new master, and 5.1 becomes the legacy branch
[plcapi.git] / demo / client / zopetest.php
index 7ecfeb5..84102a5 100644 (file)
@@ -4,26 +4,26 @@
 <h1>Zope test demo</h1>
 <h3>The code demonstrates usage of basic authentication to connect to the server</h3>
 <?php
-       include("xmlrpc.inc");
+    include("xmlrpc.inc");
 
-       $f = new xmlrpcmsg('document_src', array());
-       $c = new xmlrpc_client("/index_html", "pingu.heddley.com", 9080);
-       $c->setCredentials("username", "password");
-       $c->setDebug(2);
-       $r = $c->send($f);
-       if(!$r->faultCode())
-       {
-               $v = $r->value();
-               print "I received:" . htmlspecialchars($v->scalarval()) . "<br/>";
-               print "<hr/>I got this value back<br/>pre>" .
-               htmlentities($r->serialize()). "</pre>\n";
-       }
-       else
-       {
-               print "An error occurred: ";
-               print "Code: " . htmlspecialchars($r->faultCode())
-                       . " Reason: '" . ($r->faultString()) . "'<br/>";
-       }
+    $f = new xmlrpcmsg('document_src', array());
+    $c = new xmlrpc_client("/index_html", "pingu.heddley.com", 9080);
+    $c->setCredentials("username", "password");
+    $c->setDebug(2);
+    $r = $c->send($f);
+    if(!$r->faultCode())
+    {
+        $v = $r->value();
+        print "I received:" . htmlspecialchars($v->scalarval()) . "<br/>";
+        print "<hr/>I got this value back<br/>pre>" .
+        htmlentities($r->serialize()). "</pre>\n";
+    }
+    else
+    {
+        print "An error occurred: ";
+        print "Code: " . htmlspecialchars($r->faultCode())
+            . " Reason: '" . ($r->faultString()) . "'<br/>";
+    }
 ?>
 </body>
 </html>