aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin/settings.php
blob: ce5652c16bab158fdaecb2a10990c901c0ed51e0 (plain)
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
<?php

	echo elgg_view('output/longtext', array('value' => elgg_echo("tidypics:admin:instructions")));
	
	global $CONFIG;  
	$system_url = $CONFIG->wwwroot . 'mod/tidypics/pages/server_analysis.php';
	$upgrade_url = $CONFIG->wwwroot . 'mod/tidypics/actions/upgrade.php';
	$upgrade_url = elgg_add_action_tokens_to_url($upgrade_url);
	
	$upgrade = false;
	if (!get_subtype_class('object', 'image') || !get_subtype_class('object', 'album'))
		$upgrade = true;
?>
<p>
<?php
	if ($upgrade) {
?>
<a href="<?php echo $upgrade_url; ?>">Upgrade</a><br />
<?php
	}
?>
<a href="<?php echo $system_url; ?>">Run Server Analysis</a>
</p>
<?php
	echo elgg_view("tidypics/forms/settings");
?>