diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-23 14:00:24 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-23 14:00:24 -0800 |
commit | e5141dd91bf483b0458b6f9226b994afbee23524 (patch) | |
tree | 958afce923e2b7b13278c19d8c707daf73bf2a73 /Zotlabs/Module/Update_articles.php | |
parent | 9936670f44b53e391d997fd024faa329b8a0c803 (diff) | |
parent | 14f12927436f71c753127be83f348d89b99401b6 (diff) | |
download | volse-hubzilla-e5141dd91bf483b0458b6f9226b994afbee23524.tar.gz volse-hubzilla-e5141dd91bf483b0458b6f9226b994afbee23524.tar.bz2 volse-hubzilla-e5141dd91bf483b0458b6f9226b994afbee23524.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into dev_merge
Diffstat (limited to 'Zotlabs/Module/Update_articles.php')
-rw-r--r-- | Zotlabs/Module/Update_articles.php | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/Zotlabs/Module/Update_articles.php b/Zotlabs/Module/Update_articles.php new file mode 100644 index 000000000..280904f67 --- /dev/null +++ b/Zotlabs/Module/Update_articles.php @@ -0,0 +1,39 @@ +<?php + +namespace Zotlabs\Module; + +/** + * Module: update_profile + * Purpose: AJAX synchronisation of profile page + * + */ + + +class Update_articles extends \Zotlabs\Web\Controller { + +function get() { + + $profile_uid = intval($_GET['p']); + $load = (((argc() > 1) && (argv(1) == 'load')) ? 1 : 0); + + header("Content-type: text/html"); + echo "<!DOCTYPE html><html><body><section></section></body></html>\r\n"; + + killme(); + + + $mod = new Articles(); + + $text = $mod->get($profile_uid,$load); + + /** + * reportedly some versions of MSIE don't handle tabs in XMLHttpRequest documents very well + */ + + echo str_replace("\t",' ',$text); + echo (($_GET['msie'] == 1) ? '</div>' : '</section>'); + echo "</body></html>\r\n"; + killme(); + +} +} |