aboutsummaryrefslogtreecommitdiff
path: root/activate.php
diff options
context:
space:
mode:
Diffstat (limited to 'activate.php')
-rw-r--r--activate.php52
1 files changed, 0 insertions, 52 deletions
diff --git a/activate.php b/activate.php
deleted file mode 100644
index 6b8390406..000000000
--- a/activate.php
+++ /dev/null
@@ -1,52 +0,0 @@
-<?php
-/**
- * Activate Tidypics
- *
- * @author Cash Costello
- * @license http://www.gnu.org/licenses/gpl-2.0.html GNU General Public License v2
- */
-
-// register classes
-if (get_subtype_id('object', 'album')) {
- update_subtype('object', 'album', 'TidypicsAlbum');
-} else {
- add_subtype('object', 'album', 'TidypicsAlbum');
-}
-if (get_subtype_id('object', 'image')) {
- update_subtype('object', 'image', 'TidypicsImage');
-} else {
- add_subtype('object', 'image', 'TidypicsImage');
-}
-
-// set default settings
-$plugin = elgg_get_plugin_from_id('tidypics');
-
-$image_sizes = array();
-$image_sizes['large_image_width'] = $image_sizes['large_image_height'] = 600;
-$image_sizes['small_image_width'] = $image_sizes['small_image_height'] = 153;
-$image_sizes['tiny_image_width'] = $image_sizes['tiny_image_height'] = 60;
-$image_sizes = serialize($image_sizes);
-
-$defaults = array(
- 'tagging' => true,
- 'view_count' => true,
- 'uploader' => true,
- 'exif' => true,
- 'download_link' => true,
-
- 'maxfilesize' => 5,
- 'image_lib' => 'GD',
-
- 'img_river_view' => 'batch',
- 'album_river_view' => 'set',
-
- 'image_sizes' => $image_sizes,
-
- 'notify_interval' => 60 * 60 * 24,
-);
-
-foreach ($defaults as $name => $value) {
- if ($plugin->getSetting($name) === null) {
- $plugin->setSetting($name, $value);
- }
-}