aboutsummaryrefslogtreecommitdiff
path: root/views/default/tidypics/admin/settings.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2009-08-25 23:36:20 +0000
committerCash Costello <cash.costello@gmail.com>2009-08-25 23:36:20 +0000
commit53349bde3438dfccfc6c32c94e92aca730cc1049 (patch)
treec75444e2c2810a8d1ec026dce8c9472ffb2fa61b /views/default/tidypics/admin/settings.php
parent31a654b61284e0f848645aeb436d0335bc765abf (diff)
downloadelgg-53349bde3438dfccfc6c32c94e92aca730cc1049.tar.gz
elgg-53349bde3438dfccfc6c32c94e92aca730cc1049.tar.bz2
restructured admin views
Diffstat (limited to 'views/default/tidypics/admin/settings.php')
-rw-r--r--views/default/tidypics/admin/settings.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/default/tidypics/admin/settings.php b/views/default/tidypics/admin/settings.php
new file mode 100644
index 000000000..1b449cfc7
--- /dev/null
+++ b/views/default/tidypics/admin/settings.php
@@ -0,0 +1,25 @@
+<?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 = 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");
+?> \ No newline at end of file