6 Dec 15:25
SF.net SVN: pel:[537] web
<lsolesen <at> users.sourceforge.net>
2010-12-06 14:25:00 GMT
2010-12-06 14:25:00 GMT
Revision: 537
http://pel.svn.sourceforge.net/pel/?rev=537&view=rev
Author: lsolesen
Date: 2010-12-06 14:25:00 +0000 (Mon, 06 Dec 2010)
Log Message:
-----------
Deleted unneccessry files
Removed Paths:
-------------
web/feedParser.php
web/htdocs/footer.php
web/htdocs/links.php
web/htdocs/navbar.php
web/htdocs/pel.css
web/xmlParser.php
Deleted: web/feedParser.php
===================================================================
--- web/feedParser.php 2010-12-06 14:23:15 UTC (rev 536)
+++ web/feedParser.php 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,401 +0,0 @@
-<?
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/* Written by Reverend Jim (jim <at> revjim.net)
- *
- * http://revjim.net/code/feedParser/
- */
-
-
-class feedParser {
-
- var $version = "0.5";
- var $entities = array(
- 'nbsp' => " ",
- 'iexcl' => "¡",
- 'cent' => "¢",
- 'pound' => "£",
- 'curren' => "¤",
- 'yen' => "¥",
- 'brvbar' => "¦",
- 'sect' => "§",
- 'uml' => "¨",
- 'copy' => "©",
- 'ordf' => "ª",
- 'laquo' => "«",
- 'not' => "¬",
- 'shy' => "­",
- 'reg' => "®",
- 'macr' => "¯",
- 'deg' => "°",
- 'plusmn' => "±",
- 'sup2' => "²",
- 'sup3' => "³",
- 'acute' => "´",
- 'micro' => "µ",
- 'para' => "¶",
- 'middot' => "·",
- 'cedil' => "¸",
- 'sup1' => "¹",
- 'ordm' => "º",
- 'raquo' => "»",
- 'frac14' => "¼",
- 'frac12' => "½",
- 'frac34' => "¾",
- 'iquest' => "¿",
- 'Agrave' => "À",
- 'Aacute' => "Á",
- 'Acirc' => "Â",
- 'Atilde' => "Ã",
- 'Auml' => "Ä",
- 'Aring' => "Å",
- 'AElig' => "Æ",
- 'Ccedil' => "Ç",
- 'Egrave' => "È",
- 'Eacute' => "É",
- 'Ecirc' => "Ê",
- 'Euml' => "Ë",
- 'Igrave' => "Ì",
- 'Iacute' => "Í",
- 'Icirc' => "Î",
- 'Iuml' => "Ï",
- 'ETH' => "Ð",
- 'Ntilde' => "Ñ",
- 'Ograve' => "Ò",
- 'Oacute' => "Ó",
- 'Ocirc' => "Ô",
- 'Otilde' => "Õ",
- 'Ouml' => "Ö",
- 'times' => "×",
- 'Oslash' => "Ø",
- 'Ugrave' => "Ù",
- 'Uacute' => "Ú",
- 'Ucirc' => "Û",
- 'Uuml' => "Ü",
- 'Yacute' => "Ý",
- 'THORN' => "Þ",
- 'szlig' => "ß",
- 'agrave' => "à",
- 'aacute' => "á",
- 'acirc' => "â",
- 'atilde' => "ã",
- 'auml' => "ä",
- 'aring' => "å",
- 'aelig' => "æ",
- 'ccedil' => "ç",
- 'egrave' => "è",
- 'eacute' => "é",
- 'ecirc' => "ê",
- 'euml' => "ë",
- 'igrave' => "ì",
- 'iacute' => "í",
- 'icirc' => "î",
- 'iuml' => "ï",
- 'eth' => "ð",
- 'ntilde' => "ñ",
- 'ograve' => "ò",
- 'oacute' => "ó",
- 'ocirc' => "ô",
- 'otilde' => "õ",
- 'ouml' => "ö",
- 'divide' => "÷",
- 'oslash' => "ø",
- 'ugrave' => "ù",
- 'uacute' => "ú",
- 'ucirc' => "û",
- 'uuml' => "ü",
- 'yacute' => "ý",
- 'thorn' => "þ",
- 'yuml' => "ÿ"
- );
-
- var $namespaces = array(
- 'DC' => 'http://purl.org/dc/elements/1.1/',
- 'RDF' => 'http://www.w3.org/1999/02/22-rdf-syntax-ns#',
- 'RSS' => 'http://purl.org/rss/1.0/',
- 'RSS2'=> 'http://backend.userland.com/rss2',
- 'RDF2' => 'http://my.netscape.com/rdf/simple/0.9/'
- );
-
- function buildStruct($xmldata) {
- // Create a parser object
- $p = new XMLParser;
-
- // Define our known namespaces
- foreach ($this->namespaces as $space => $uri) {
- $p->definens($space,$uri);
- }
-
- // Define base namespace
- $p->definens("UNDEF");
-
- $this->parseEntities($xmldata);
-
- // Tell the parser to get the file.
- $p->setXmlData($xmldata);
-
- // Tell the parser to build the tree.
- $p->buildXmlTree();
-
- // Spit the tree out so we can see it
- return $p->getXmlTree();
-
- }
-
- function parseEntities(&$data) {
-
- foreach($this->entities as $entity => $replace) {
- $data = preg_replace('/&' . $entity . ';/',$replace,$data);
- }
-
- $data = preg_replace('/&[ ]*;/','',$data);
-
- }
-
-
- function parseFeed($xmldata) {
- $data =& $this->buildStruct(&$xmldata);
- if(is_array($data)) {
- foreach($data as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "RSS:RSS":
- case "UNDEF:RSS":
- case "RSS2:RSS":
- $info = $this->parseRSS(&$child);
- break;
- case "RDF:RDF":
- $info = $this->parseRDF(&$child);
- break;
- default:
- $info["warning"] .= "Unknown document format: " . $child['tag'] . "\n";
- break;
- }
- }
- }
- }
-
- return $info;
-
- }
-
- function parseRDF(&$data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "RSS:CHANNEL":
- case "RDF2:CHANNEL":
- $channel = $this->getRDFChannel(&$child);
- break;
- case "RSS:ITEM":
- case "RDF2:ITEM":
- $item[] = $this->getRDFItem(&$child);
- break;
- default:
- break;
- }
- }
- }
-
- }
-
- return array('channel' => $channel, 'item' => $item);
-
- }
-
- function parseRSS(&$data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "RSS:CHANNEL":
- case "RSS2:CHANNEL":
- case "UNDEF:CHANNEL":
- $info = $this->getRSSChannel(&$child);
- break;
- default:
- break;
- }
- }
- }
-
- }
-
- return $info;
-
- }
-
- function getRDFChannel($data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "RSS:TITLE":
- case "RDF2:TITLE":
- $channel['title'] = $child['children'][0];
- break;
- case "RSS:LINK":
- case "RDF2:LINK":
- $channel['link'] = $child['children'][0];
- break;
- case "RSS:DESCRIPTION":
- case "RDF2:DESCRIPTION":
- $channel['description'] = $child['children'][0];
- break;
- case "RSS:WEBMASTER":
- $channel['creator'] = $child['children'][0];
- break;
- default:
- break;
- }
- }
- }
- }
-
- return $channel;
- }
-
- function getRSSChannel($data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "UNDEF:TITLE":
- case "RSS:TITLE":
- case "RSS2:TITLE":
- $channel['title'] = $child['children'][0];
- break;
- case "UNDEF:LINK":
- case "RSS:LINK":
- case "RSS2:LINK":
- $channel['link'] = $child['children'][0];
- break;
- case "UNDEF:DESCRIPTION":
- case "RSS:DESCRIPTION":
- case "RSS2:DESCRIPTION":
- $channel['description'] = $child['children'][0];
- break;
- case "UNDEF:ITEM":
- case "RSS:ITEM":
- case "RSS2:ITEM":
- $item[] = $this->getRSSItem(&$child);
- break;
- case "UNDEF:LASTBUILDDATE":
- case "RSS:LASTBUILDDATE":
- case "RSS2:LASTBUILDDATE":
- $channel['lastbuilddate'] = strtotime($child['children'][0]);
- break;
- default:
- break;
- }
- }
- }
- }
-
- return array('channel' => $channel, 'item' => $item);
- }
-
- function getRDFItem($data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "RSS:TITLE":
- case "RDF2:TITLE":
- $item['title'] = $child['children'][0];
- break;
- case "RSS:LINK":
- case "RDF2:LINK":
- $item['link'] = $child['children'][0];
- break;
- case "RSS:DESCRIPTION":
- case "RDF2:DESCRIPTION":
- $item["description"] = $child['children'][0];
- break;
- case "DC:DATE":
- $item["date"] = $this->dcDateToUnixTime($child['children'][0],0);
- $item["locdate"] = $this->dcDateToUnixTime($child['children'][0],1);
- break;
- default:
- break;
- }
- }
- }
- }
-
- return $item;
- }
-
- function getRSSItem($data) {
- if(is_array($data['children'])) {
- foreach($data['children'] as $child) {
- if(is_array($child)) {
- switch($child['tag']) {
- case "UNDEF:TITLE":
- case "RSS:TITLE":
- case "RSS2:TITLE":
- $item['title'] = $child['children'][0];
- break;
- case "UNDEF:LINK":
- case "RSS:LINK":
- case "RSS2:LINK":
- $item['link'] = $child['children'][0];
- break;
- case "UNDEF:DESCRIPTION":
- case "RSS:DESCRIPTION":
- case "RSS2:DESCRIPTION":
- $item["description"] = $child['children'][0];
- break;
- case "DC:DATE":
- $item["date"] = $this->dcDateToUnixTime($child['children'][0],0);
- $item["locdate"] = $this->dcDateToUnixTime($child['children'][0],1);
- break;
- case "UNDEF:PUBDATE":
- case "RSS:PUBDATE":
- case "RSS2:PUBDATE":
- $item["date"] = strtotime($child['children'][0]);
- $item["locdate"] = strtotime($child['children'][0]);
- break;
- default:
- break;
- }
- }
- }
- }
-
- return $item;
- }
-
- function dcDateToUnixTime($dcdate,$cvttz = 1) {
- list($date,$time) = explode("T",$dcdate);
- preg_match(
- "/([0-9]{2}:[0-9]{2}:[0-9]{2})(\-?\+?)([0-9]{2}):([0-9]{2})/",
- $time,
- $yo
- );
-
- if ($cvttz == 1) {
- return strtotime($date . " " . $yo[1] . $yo[2] . $yo[3] . $yo[4]);
- } else {
- return strtotime($date . " " . $yo[1]);
- }
-
- }
-}
-
-?>
Deleted: web/htdocs/footer.php
===================================================================
--- web/htdocs/footer.php 2010-12-06 14:23:15 UTC (rev 536)
+++ web/htdocs/footer.php 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,31 +0,0 @@
-
-<hr>
-
-<p>
- <a
- href="http://sourceforge.net/donate/index.php?group_id=108380"><img
- src="http://sourceforge.net/images/project-support.jpg" width="88"
- height="32" alt="Please Support PEL"></a>
-
- <a href="http://sourceforge.net/projects/pel/"><img
- src="http://sourceforge.net/sflogo.php?group_id=108380&type=1"
- width="88" height="31" alt="SourceForge.net Logo"></a>
-
- <a href="http://validator.w3.org/check?uri=referer"><img
- src="http://www.w3.org/Icons/valid-html401" width="88" height="31"
- alt="Valid HTML 4.01!"></a>
-
- <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
- src="http://www.w3.org/Icons/valid-css" width="88" height="31"
- alt="Valid CSS!"></a>
-</p>
-
-<?php
-/* The constant SVN should be set in the page that includes the
- * footer. */
-if (defined('SVN')) {
- $info = explode(' ', SVN);
- printf('<p id="svn-info">Revision %d of %s made on %s by %s.</p>',
- $info[2], $info[1], $info[3] . ' ' . $info[4], $info[5]);
-}
-?>
Deleted: web/htdocs/links.php
===================================================================
--- web/htdocs/links.php 2010-12-06 14:23:15 UTC (rev 536)
+++ web/htdocs/links.php 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,141 +0,0 @@
-<?php // -*- coding: utf-8 -*-
-
-error_reporting (E_ALL);
-
-$mod = getlastmod();
-
-if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) &&
- strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) == $mod) {
- header('HTTP/1.1 304 Not Modified');
- exit;
-}
-
-header('Last-Modified: ' . gmdate('r', $mod));
-
-header('Content-Type: text/html; charset=UTF-8');
-?>
-<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
- "http://www.w3.org/TR/html4/strict.dtd">
-<html>
-<head>
- <link type="text/css" rel="stylesheet" href="pel.css">
- <title>PEL: PHP Exif Library — Links</title>
-</head>
-<body>
-<h1>PEL: PHP Exif Library — Links</h1>
-
-<!-- Page generated on <?php echo date('r') ?>. -->
-
-<?php include('navbar.php'); ?>
-
-<p>Below you will find various resources related to Exif in general
-and PEL in particular.</p>
-
-<h2><a id="r"></a>Resources</h2>
-
-<ul>
- <li>
- <p>The <a href="http://sourceforge.net/projects/pel/">SourceForge
- Project Page</a>.</p>
- </li>
-
- <li>
- <p>Online <a href="doc/">API Documentation</a> for the latest
- released version of PEL.</p>
- </li>
-
- <li>
- <p>The <a href="http://pel.svn.sourceforge.net/viewvc/pel/trunk/">SVN
- repository</a> where the newest developments can be found.</p>
- </li>
-
- <li>
- <p>PEAR channel at <tt>pear.sharedlog.com</tt>, maintained by Dmitri.</p>
- </li>
-
- <li>
- <p>The Exif specification from <a
- href="http://exif.org/">EXIF.org</a>.</p>
- </li>
-
- <li>
- <p>The <a
- href="http://park2.wakwak.com/~tsuruzoh/Computer/Digicams/exif-e.html">description
- of the Exif file format</a> by TsuruZoh Tachibanay.</p>
- </li>
-</ul>
-
-
-<h2 id="m">Mailinglists and Newsgroups</h2>
-
-<ul>
-
- <li>
- <p><b>PEL Development List</b></p>
-
- <p>This list is for general discussion on the development of PEL
- and for user questions. Please send your questions to this list
- and not directly to the developers.</p>
-
- <p>Mail: <a
- href="https://lists.sourceforge.net/mailman/listinfo/pel-devel">subscribe
- / unsubscribe</a>, <a
- href="https://sourceforge.net/mailarchive/forum.php?forum_id=40663">SourceForge
- archive</a>.<br />News: <a
- href="http://dir.gmane.org/gmane.comp.web.pel.devel">Gmane
- archive</a>.</p>
-
- </li>
-
- <li>
- <p><b>PEL Commits List</b></p>
-
- <p>This list is a read-only list. Every change the PEL repository
- triggers a mail to it, so subscribe if you want to follow the
- development closely.</p>
-
- <p>Mail: <a
- href="https://lists.sourceforge.net/mailman/listinfo/pel-commits">subscribe
- / unsubscribe</a>, <a
- href="https://sourceforge.net/mailarchive/forum.php?forum_id=40922">SourceForge
- archive</a>.<br />News: <a
- href="http://dir.gmane.org/gmane.comp.web.pel.cvs">Gmane
- archive</a>.</p>
- </li>
-
-</ul>
-
-
-<h2 id="s">Sites and Projects Using PEL</h2>
-
-<ul>
-
- <li>
- <p><a href="http://www.lessequal.com/visuals/">bobef
- / be less equal</a>.</p>
- </li>
-
- <li>
- <p><a href="http://drupal.org/project/exif">Drupal Exif
- Module</a>.</p>
- </li>
-
- <li>
- <p><a href="http://www.sharedlog.com/">SHAREDLOG.COM</a>.</p>
- </li>
-
- <li>
- <p><b>Your site?</b> Please send a mail to the <a
- href="mailto:pel-devel <at> lists.sourceforge.net">PEL development
- list</a> if you are using PEL!</p>
- </li>
-
-</ul>
-
-<?php
-define('SVN', '$Id$');
-include('footer.php');
-?>
-
-</body>
-</html>
Deleted: web/htdocs/navbar.php
===================================================================
--- web/htdocs/navbar.php 2010-12-06 14:23:15 UTC (rev 536)
+++ web/htdocs/navbar.php 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,18 +0,0 @@
-
-<ul class="navbar">
- <li><b><a href="http://sourceforge.net/project/showfiles.php?group_id=108380">Download PEL</a></b></li>
-
- <li><a href="/doc/">API</a></li>
-
- <li><a href="#f">Features</a></li>
-
- <li><a href="#n">News</a></li>
-
- <li><a href="links.php">Links</a></li>
-
- <li><a href="#c">Credits</a></li>
-
- <li><a href="#s">Support PEL</a></li>
-
-</ul>
-
Deleted: web/htdocs/pel.css
===================================================================
--- web/htdocs/pel.css 2010-12-06 14:23:15 UTC (rev 536)
+++ web/htdocs/pel.css 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,73 +0,0 @@
-body {
- font-family: sans-serif;
-}
-
-h1 {
- border-bottom: 3px solid navy;
- margin-bottom: 0.1em;
-}
-
-
-h2 {
- border-bottom: 3px solid navy;
-}
-
-h3 {
- margin-bottom: 0.5em;
- border-bottom: 1px solid blue;
-}
-
-h4 {
- margin-top: 0.5em;
- margin-bottom: 1.5em;
- font-size: small;
-}
-
-p {
- margin-top: 0.5em;
- margin-bottom: 0.5em;
-}
-
-
-ul.navbar {
- margin: 0;
-
- padding-left: 0;
- padding-right: 0;
-
- border-top: 1px solid blue;
- padding-top: 5px;
-
- border-bottom: 3px solid navy;
- padding-bottom: 5px;
-}
-
-ul.navbar li {
- display: inline;
- padding-left: 0;
- padding-right: 1.5em;
- margin: 0px;
-}
-
-ul.navbar a {
- text-decoration: none;
- padding: 4px;
-}
-
-ul.navbar a:hover {
- color:red;
- background-color: silver;
-}
-
-img {
- border: 0px;
-}
-
-hr {
- border: 1px solid navy;
-}
-
-#svn-info {
- font-size: smaller;
- color: gray;
-}
Deleted: web/xmlParser.php
===================================================================
--- web/xmlParser.php 2010-12-06 14:23:15 UTC (rev 536)
+++ web/xmlParser.php 2010-12-06 14:25:00 UTC (rev 537)
@@ -1,166 +0,0 @@
-<?
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- */
-
-/*
- * Written by Reverend Jim (jim <at> revjim.net)
- *
- * http://revjim.net/code/xmlParser/
- */
-
-class XMLParser {
- var $ns2uri = array();
- var $uri2ns = array();
- var $unkcnt = 0;
- var $data; // Holds the XML structure
- var $xmldata; // Holds XML data
- var $version = "0.3";
-
-
- function defineNs($ident, $uri = "") {
- if ($uri == "") {
- $uri = "::UNDEFINED::";
- }
- $this->ns2uri[strtoupper($ident)] = $uri;
- $this->uri2ns[$uri] = strtoupper($ident);
- }
-
- function _getXmlChildren(&$vals, $ns, &$i) {
- $children = array();
-
- if (!empty($vals[$i]['value'])) {
- array_push($children, $vals[$i]['value']);
- }
-
- while (++$i < count($vals)) {
- if (!isset($vals[$i]['attributes']))
- $vals[$i]['attributes'] = '';
-
- switch ($vals[$i]['type']) {
- case 'cdata':
- array_push($children, $vals[$i]['value']);
- break;
-
- case 'complete':
- $tmpns = $this->getnamespaces($vals[$i]['attributes'],$ns);
- $tag = $this->_convertTagNs($vals[$i]['tag'],$tmpns);
- if($vals[$i]['value']) {
- array_push($children, array(
- 'tag' => $tag,
- 'attributes' => $vals[$i]['attributes'],
- 'children' => array($vals[$i]['value'])
- ));
- } else {
- array_push($children, array(
- 'tag' => $tag,
- 'attributes' => $vals[$i]['attributes']
- ));
- }
-
- break;
-
- case 'open':
- $tmpns = $this->getnamespaces($vals[$i]['attributes'],$ns);
- $tag = $this->_convertTagNs($vals[$i]['tag'],$tmpns);
- array_push($children, array(
- 'tag' => $tag,
- 'attributes' => $vals[$i]['attributes'],
- 'children' => $this->_getXmlChildren($vals,$tmpns,$i)
- ));
- break;
-
- case 'close':
- if (!empty($vals[$i]['value'])) {
- array_push($children, $vals[$i]['value']);
- }
- return $children;
- }
- }
- }
-
- function _convertTagNs($tag,$ns) {
- if($pos = strpos($tag,':')) {
- $docns = substr($tag,0,$pos);
- $doctag = substr($tag,$pos+1);
- } else {
- $docns = "::ROOT";
- $doctag = "$tag";
- }
-
- if (!empty($ns[$docns])) {
- $uri = $ns[$docns];
- } else {
- $uri = "::UNDEFINED::";
- }
-
- if($this->uri2ns[$uri]) {
- $parns = $this->uri2ns[$uri];
- } else {
- $this->definens("::UNK" . $this->unkcnt, $uri);
- $parns = "::UNK" . $this->unkcnt;
- $this->unkcnt++;
- }
-
- return $parns . ":" . $doctag;
-
- }
-
- function getXmlTree() {
- return $this->data;
- }
-
- function setXmlData($data) {
- $this->xmldata = $data;
- }
-
- function buildXmlTree() {
- $p = xml_parser_create();
- xml_parser_set_option($p, XML_OPTION_SKIP_WHITE, 1);
- xml_parse_into_struct($p, $this->xmldata, &$vals, &$index);
- xml_parser_free($p);
-
- $this->data = array();
- $i = 0;
- $ns = $this->getnamespaces($vals[$i]['attributes']);
- array_push($this->data, array(
- 'tag' => $this->_convertTagNs($vals[$i]['tag'],$ns),
- 'attributes' => $vals[$i]['attributes'],
- 'children' => $this->_getXmlChildren($vals, $ns, $i)
- ));
- }
-
- function getnamespaces($attribs,$ns = array()) {
- if (is_array($attribs)) {
- foreach($attribs as $key => $value) {
- $key = strtoupper($key);
- if (substr($key,0,5) == 'XMLNS') {
- if($pos = strpos($key,':')) {
- $ns[substr($key,$pos+1)] = $value;
- } else {
- $ns['::ROOT']= $value;
- }
- }
- }
- }
-
-
- return $ns;
- }
-
-
-}
-
-?>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open
Source development site.
------------------------------------------------------------------------------
What happens now with your Lotus Notes apps - do you make another costly
upgrade, or settle for being marooned without product support? Time to move
off Lotus Notes and onto the cloud with Force.com, apps are easier to build,
use, and manage than apps on traditional platforms. Sign up for the Lotus
Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d
RSS Feed