diff options
author | redmatrix <git@macgirvin.com> | 2016-04-18 20:38:38 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-04-18 20:38:38 -0700 |
commit | 2a4e8972e0edfa3156d9ce54d68ce0e54c0ec289 (patch) | |
tree | 2376d950ba2bdc7753336a3e2b94865c95c238f2 /Zotlabs/Module/Test.php | |
parent | 2a61817bad96526994c0499f1fc0a843a9cc9405 (diff) | |
download | volse-hubzilla-2a4e8972e0edfa3156d9ce54d68ce0e54c0ec289.tar.gz volse-hubzilla-2a4e8972e0edfa3156d9ce54d68ce0e54c0ec289.tar.bz2 volse-hubzilla-2a4e8972e0edfa3156d9ce54d68ce0e54c0ec289.zip |
module updates
Diffstat (limited to 'Zotlabs/Module/Test.php')
-rw-r--r-- | Zotlabs/Module/Test.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Zotlabs/Module/Test.php b/Zotlabs/Module/Test.php new file mode 100644 index 000000000..ff14e4691 --- /dev/null +++ b/Zotlabs/Module/Test.php @@ -0,0 +1,38 @@ +<?php +namespace Zotlabs\Module; + + +class Test extends \Zotlabs\Web\Controller { + + function get() { + + $s = '<XML> + <post><profile> + <diaspora_handle>macgirvin@diasp.org</diaspora_handle> + <first_name>Mike</first_name> + <last_name>Macgirvin</last_name> + <image_url>https://diasp.org/uploads/images/thumb_large_d5f9b6384c91f532f280.jpg</image_url> + <image_url_small>https://diasp.org/uploads/images/thumb_small_d5f9b6384c91f532f280.jpg</image_url_small> + <image_url_medium>https://diasp.org/uploads/images/thumb_medium_d5f9b6384c91f532f280.jpg</image_url_medi\ + um> + <birthday>1000-05-14</birthday> + <gender/> + <bio>Creator of Friendica, Redmatrix, and Hubzilla. </bio> + <location>Australia</location> + <searchable>true</searchable> + <nsfw>false</nsfw> + <tag_string>#redmatrix #hubzilla </tag_string> + </profile></post> + </XML>'; + + $parsed_xml = xml2array($s,false,0,'tag'); + + $o = print_r($parsed_xml,true); + return $o; + + + // fix_system_urls('http://hz.macgirvin.com',z_root()); + + } + +} |