aboutsummaryrefslogtreecommitdiff
path: root/views/default/settings/tidypics/edit.php
blob: 681007ac5e3a9c496040ca838efb21e47f97be76 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/**
 * Tidypics plugin settings view
 *
 * Set reasonable defaults if no settings saved
 */

if (!get_plugin_setting('image_lib', 'tidypics')) {
	set_plugin_setting('image_lib', 'GD', 'tidypics');
	set_plugin_setting('download_link', 'enabled', 'tidypics');
	set_plugin_setting('tagging', 'enabled', 'tidypics');
	set_plugin_setting('photo_ratings', 'disabled', 'tidypics');
	set_plugin_setting('exif', 'disabled', 'tidypics');
	set_plugin_setting('view_count', 'disabled', 'tidypics');
	set_plugin_setting('maxfilesize', '5', 'tidypics');
	set_plugin_setting('quota', '0', 'tidypics');
	set_plugin_setting('img_river_view', 'batch', 'tidypics');
	set_plugin_setting('album_river_view', 'set', 'tidypics');

	$image_sizes = array();
	$image_sizes['large_image_width'] = 600;
	$image_sizes['large_image_height'] = 600;
	$image_sizes['small_image_width'] = 153;
	$image_sizes['small_image_height'] = 153;
	$image_sizes['thumb_image_width'] = 60;
	$image_sizes['thumb_image_height'] = 60;
	set_plugin_setting('image_sizes', serialize($image_sizes), 'tidypics');
}

global $CONFIG;  
$system_url = $CONFIG->wwwroot . 'mod/tidypics/pages/server_analysis.php';
$settings_url = $CONFIG->wwwroot . 'mod/tidypics/pages/admin.php';
?>

<p>
<a href="<?php echo $system_url; ?>">Run Server Analysis</a>
</p>
<p>
<a href="<?php echo $settings_url; ?>">Change Tidypics Settings</a>
</p>