aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Update_cards.php
blob: bb87357e8cdff1409e008c8b29ad04d8287a1f49 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php

namespace Zotlabs\Module;

/**
 * Module: update_profile
 * Purpose: AJAX synchronisation of profile page
 *
 */


class Update_cards 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 Cards();

	$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();

}
}