Module: nagvis
Branch: master
Commit: c730fe34f9273c6410bbf70d1ae71540273833ae
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=c730fe34f9273c6410bbf70d1ae71540273833ae

Author: r...@op5 <[email protected]>
Date:   Mon Jul 13 13:34:51 2009 +0300

Converted all line endings in netmap PHP sources to Unix standard (LF)

Signed-off-by: r...@op5 <[email protected]>

---

 share/netmap/Viewpoint.php  |  114 +++++++++++++++++++++---------------------
 share/netmap/amf-server.php |   62 ++++++++++++------------
 2 files changed, 88 insertions(+), 88 deletions(-)

diff --git a/share/netmap/Viewpoint.php b/share/netmap/Viewpoint.php
index 87c9707..181767f 100644
--- a/share/netmap/Viewpoint.php
+++ b/share/netmap/Viewpoint.php
@@ -1,57 +1,57 @@
-<?php

-

-class Viewpoint

-{

-       public $label;

-       public $center;

-       public $zoom;

-

-       public function __construct($label = "", $center = "", $zoom = 0)

-       {

-               $this->label = $label;

-               $this->center = $center;

-               $this->zoom = $zoom;

-       }

-

-       /**

-        * @return array of Viewpoint

-        */

-       public function getAll()

-       {

-               if (($xml = @simplexml_load_file('viewpoints.xml')) === FALSE)

-                       throw new Exception('Could not read viewpoints.xml');

-

-               $viewpoints = array();

-               foreach ($xml->viewpoint as $viewpoint)

-                       $viewpoints[] = new 
Viewpoint((string)$viewpoint['label'],

-                               (string)$viewpoint['center'], 
(integer)$viewpoint['zoom']);

-

-               return $viewpoints;

-       }

-

-       /**

-        * @param  string $description

-        * @param  string $coordinates

-        * @param  integer $zoom

-        * @return Viewpoint

-        */

-       public function add($label, $center, $zoom)

-       {

-               if (($xml = @simplexml_load_file('viewpoints.xml')) === FALSE)

-                       throw new Exception('Could not read viewpoints.xml');

-

-               $node = $xml->addChild('viewpoint');

-               $node->addAttribute('label', $label);

-               $node->addAttribute('center', $center);

-               $node->addAttribute('zoom', $zoom);

-

-               $viewpoint = new Viewpoint($label, $center, $zoom);

-

-               if (file_put_contents('viewpoints.xml', $xml->asXML()) !== 
FALSE)

-                       return $viewpoint;

-               else

-                       throw new Exception('Could not write viewpoints.xml');

-    }

-}

-

-?>

+<?php
+
+class Viewpoint
+{
+       public $label;
+       public $center;
+       public $zoom;
+
+       public function __construct($label = "", $center = "", $zoom = 0)
+       {
+               $this->label = $label;
+               $this->center = $center;
+               $this->zoom = $zoom;
+       }
+
+       /**
+        * @return array of Viewpoint
+        */
+       public function getAll()
+       {
+               if (($xml = @simplexml_load_file('viewpoints.xml')) === FALSE)
+                       throw new Exception('Could not read viewpoints.xml');
+
+               $viewpoints = array();
+               foreach ($xml->viewpoint as $viewpoint)
+                       $viewpoints[] = new 
Viewpoint((string)$viewpoint['label'],
+                               (string)$viewpoint['center'], 
(integer)$viewpoint['zoom']);
+
+               return $viewpoints;
+       }
+
+       /**
+        * @param  string $description
+        * @param  string $coordinates
+        * @param  integer $zoom
+        * @return Viewpoint
+        */
+       public function add($label, $center, $zoom)
+       {
+               if (($xml = @simplexml_load_file('viewpoints.xml')) === FALSE)
+                       throw new Exception('Could not read viewpoints.xml');
+
+               $node = $xml->addChild('viewpoint');
+               $node->addAttribute('label', $label);
+               $node->addAttribute('center', $center);
+               $node->addAttribute('zoom', $zoom);
+
+               $viewpoint = new Viewpoint($label, $center, $zoom);
+
+               if (file_put_contents('viewpoints.xml', $xml->asXML()) !== 
FALSE)
+                       return $viewpoint;
+               else
+                       throw new Exception('Could not write viewpoints.xml');
+    }
+}
+
+?>
diff --git a/share/netmap/amf-server.php b/share/netmap/amf-server.php
index b804c83..ca94383 100644
--- a/share/netmap/amf-server.php
+++ b/share/netmap/amf-server.php
@@ -1,31 +1,31 @@
-<?php

-

-set_include_path(get_include_path() . PATH_SEPARATOR . 
realpath(dirname(__FILE__)) . '/library/');

-

-require_once('Zend/Loader.php');

-

-Zend_Loader::registerAutoload();

-

-/*

-fix a bug in IE

-http://www.blog.lessrain.com/flash-nasty-xml-load-bug-in-internet-explorer/

-http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401472

-*/

-header('Cache-Control: cache, must-revalidate');

-header('Pragma: public');

-

-// extend Zend_Amf_Server to allow passing exception messages back to Flex

-class Custom_Zend_Amf_Server extends Zend_Amf_Server

-{

-       protected $_production = false;

-}

-

-$server = new Custom_Zend_Amf_Server();

-$server->setClassMap("Viewpoint", "Viewpoint");

-$server->setClassMap("Location", "Location");

-$server->setClassMap("Link", "Link");

-$server->setClassMap("Host", "Host");

-$server->setClassMap("Service", "Service");

-echo ($server->handle());

-

-?>

+<?php
+
+set_include_path(get_include_path() . PATH_SEPARATOR . 
realpath(dirname(__FILE__)) . '/library/');
+
+require_once('Zend/Loader.php');
+
+Zend_Loader::registerAutoload();
+
+/*
+fix a bug in IE
+http://www.blog.lessrain.com/flash-nasty-xml-load-bug-in-internet-explorer/
+http://kb.adobe.com/selfservice/viewContent.do?externalId=kb401472
+*/
+header('Cache-Control: cache, must-revalidate');
+header('Pragma: public');
+
+// extend Zend_Amf_Server to allow passing exception messages back to Flex
+class Custom_Zend_Amf_Server extends Zend_Amf_Server
+{
+       protected $_production = false;
+}
+
+$server = new Custom_Zend_Amf_Server();
+$server->setClassMap("Viewpoint", "Viewpoint");
+$server->setClassMap("Location", "Location");
+$server->setClassMap("Link", "Link");
+$server->setClassMap("Host", "Host");
+$server->setClassMap("Service", "Service");
+echo ($server->handle());
+
+?>


------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Nagvis-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagvis-checkins

Reply via email to