plugins/Gallery.php
author Dan Fuhry <dan@enanocms.org>
Sat, 21 Aug 2010 23:35:20 -0400
changeset 43 7df4993be0b0
parent 42 7c6e2e97aa08
permissions -rw-r--r--
Some minimal no-javascript safety for the uploader
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
     1
<?php
39
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
     2
/**!info**
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
     3
{
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     4
	"Plugin Name"  : "Snapr",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     5
	"Plugin URI"   : "http://enanocms.org/plugin/snapr",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     6
	"Description"  : "Provides an intuitive image gallery system with a browser, viewer for individual images, upload interface, and comment system integration.",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     7
	"Author"       : "Dan Fuhry",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     8
	"Version"      : "0.1b4",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
     9
	"Author URI"   : "http://enanocms.org/",
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    10
	"Version list" : ['0.1b1', '0.1b2', '0.1 beta 3', '0.1b3', '0.1b4']
39
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    11
}
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    12
**!*/
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    13
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    14
global $db, $session, $paths, $template, $plugins; // Common objects
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    15
18
c1c398349651 Added initial support for notes (aka tags) on images, done completely (including initial load of metadata) with AJAX. They're not fixed at 100x100 like on Facebook either.
Dan
parents: 9
diff changeset
    16
define('GALLERY_VERSION', '0.1b2');
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    17
29
205d0534a0f2 Fixed a few issues with the img_tags column; added some checks for Enano 1.1.x
Dan
parents: 26
diff changeset
    18
if ( !defined('ENANO_ATLEAST_1_1') )
205d0534a0f2 Fixed a few issues with the img_tags column; added some checks for Enano 1.1.x
Dan
parents: 26
diff changeset
    19
{
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    20
	$fn = basename(__FILE__);
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    21
	setConfig("plugin_$fn", '0');
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    22
	die_semicritical('Snapr can\'t load on this site', '<p>This version of Snapr requires Enano 1.1.6 or later.</p>');
29
205d0534a0f2 Fixed a few issues with the img_tags column; added some checks for Enano 1.1.x
Dan
parents: 26
diff changeset
    23
}
205d0534a0f2 Fixed a few issues with the img_tags column; added some checks for Enano 1.1.x
Dan
parents: 26
diff changeset
    24
39
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    25
$magick_path = getConfig('imagemagick_path', '/usr/bin/convert');
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    26
$have_gd_scale_support = function_exists('imagecreatetruecolor') && function_exists('imagejpeg') && function_exists('imagecopyresampled');
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    27
if ( (!file_exists($magick_path) || !is_executable($magick_path)) && !$have_gd_scale_support )
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    28
{
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    29
	$fn = basename(__FILE__);
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    30
	// set disabled flag with new plugin system
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    31
	if ( defined('ENANO_ATLEAST_1_1') && defined('PLUGIN_DISABLED') )
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    32
	{
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    33
		$q = $db->sql_query('UPDATE ' . table_prefix . "plugins SET plugin_flags = plugin_flags | " . PLUGIN_DISABLED . " WHERE plugin_filename = 'Gallery.php';");
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    34
		if ( !$q )
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    35
			$db->_die();
37
3afbd6374442 Fixed some 1.1.7 PHP warnings
Dan
parents: 29
diff changeset
    36
	  
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    37
		// kill off cache
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    38
		global $cache;
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    39
		$cache->purge('plugins');
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    40
	}
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    41
	else
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    42
	{
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    43
		// old plugin system
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    44
		setConfig("plugin_$fn", '0');
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    45
	}
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    46
	
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    47
	die_semicritical('Snapr can\'t load on this site', '<p>You must have ImageMagick or GD installed and working to use this plugin. The plugin has been disabled, please setup ImageMagick and then re-enable it.</p>');
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    48
}
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    49
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    50
$plugins->attachHook('pgsql_set_serial_list', '$primary_keys[table_prefix."gallery"] = "img_id";');
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    51
39
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    52
/**!install dbms="mysql"; **
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    53
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    54
CREATE TABLE {{TABLE_PREFIX}}gallery(
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    55
	img_id int(12) NOT NULL auto_increment,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    56
	is_folder tinyint(1) NOT NULL DEFAULT 0,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    57
	folder_parent int(12) DEFAULT NULL,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    58
	img_title varchar(255) NOT NULL DEFAULT '',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    59
	img_desc longtext NOT NULL DEFAULT '',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    60
	print_sizes longtext NOT NULL DEFAULT '',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    61
	img_filename varchar(255) NOT NULL,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    62
	img_time_upload int(12) NOT NULL DEFAULT 0,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    63
	img_time_mod int(12) NOT NULL DEFAULT 0,
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    64
	img_author int(12) NOT NULL DEFAULT 1,
39
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    65
	img_tags longtext,
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    66
	PRIMARY KEY ( img_id )
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    67
);
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    68
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    69
CREATE FULLTEXT INDEX {{TABLE_PREFIX}}gal_idx ON {{TABLE_PREFIX}}gallery(img_title, img_desc);
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    70
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    71
INSERT INTO {{TABLE_PREFIX}}gallery(img_title,img_desc,img_filename,img_time_upload,img_time_mod,img_tags) VALUES
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    72
	('Welcome to Snapr!',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    73
	 'You''re past the hard part - Snapr is set up and working on your server. What you''re looking at now is what most users will see when they look at an image in your gallery. The next step is to [[Special:GalleryUpload|upload some images]]. After that, make your gallery publicly accessible by adding a link to the [[Special:Gallery|browser]], if you haven''t already done so. See the README file included with Snapr for more information.',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    74
	 'snapr-logo.png',
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    75
	 UNIX_TIMESTAMP(),
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    76
	 UNIX_TIMESTAMP(),
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    77
	 '[]');
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    78
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    79
**!*/
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    80
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    81
/**!uninstall dbms="mysql"; **
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    82
ALTER TABLE {{TABLE_PREFIX}}gallery DROP INDEX {{TABLE_PREFIX}}gal_idx;
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    83
DROP TABLE {{TABLE_PREFIX}}gallery;
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    84
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    85
**!*/
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    86
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    87
/**!upgrade dbms="mysql"; from="0.1b1"; to="0.1b2"; **
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    88
ALTER TABLE {{TABLE_PREFIX}}gallery ADD COLUMN img_tags longtext;
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    89
**!*/
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    90
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    91
/**!upgrade dbms="mysql"; from="0.1b2"; to="0.1b3"; **
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    92
**!*/
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    93
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    94
/**!upgrade dbms="mysql"; from="0.1 beta 3"; to="0.1b3"; **
e9a7e37bdadd Fixed some PHP warnings and display issues. Brought up to date with 1.1.x plugin management/install/upgrade system.
Dan Fuhry <dan@enanocms.org>
parents: 37
diff changeset
    95
**!*/
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
    96
42
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    97
/**!upgrade dbms="mysql"; from="0.1b3"; to="0.1b4"; **
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    98
ALTER TABLE {{TABLE_PREFIX}}gallery ADD COLUMN img_author int(12) NOT NULL DEFAULT 1;
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
    99
ALTER TABLE {{TABLE_PREFIX}}gallery ADD COLUMN processed tinyint(1) NOT NULL DEFAULT 1;
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
   100
-- Set all images to authorship by the first administrator we can find
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
   101
UPDATE {{TABLE_PREFIX}}gallery SET img_author = ( SELECT user_id FROM {{TABLE_PREFIX}}users WHERE user_level = 9 ORDER BY user_id DESC LIMIT 1 ), processed = 1;
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
   102
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
   103
**!*/
7c6e2e97aa08 Added AJAX file upload support.
Dan Fuhry <dan@enanocms.org>
parents: 39
diff changeset
   104
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   105
require( ENANO_ROOT . '/plugins/gallery/functions.php' );
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   106
require( ENANO_ROOT . '/plugins/gallery/nssetup.php' );
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   107
require( ENANO_ROOT . '/plugins/gallery/viewimage.php' );
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   108
require( ENANO_ROOT . '/plugins/gallery/browser.php' );
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   109
require( ENANO_ROOT . '/plugins/gallery/upload.php' );
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   110
require( ENANO_ROOT . '/plugins/gallery/fetcher.php' );
2
88c954d2846c Added search functionality (WiP); removed stray .marks file
Dan
parents: 0
diff changeset
   111
require( ENANO_ROOT . '/plugins/gallery/search.php' );
5
c0c324f0eeb5 Added the Random Image sidebar block
Dan
parents: 2
diff changeset
   112
require( ENANO_ROOT . '/plugins/gallery/sidebar.php' );
26
023a21c8f47c Added support for embedding Snapr images as wikitext code into regular pages
Dan
parents: 18
diff changeset
   113
require( ENANO_ROOT . '/plugins/gallery/imagetag.php' );
0
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   114
7caf561c50ee Initial population; browser, viewer, uploader, and security are working
Dan
parents:
diff changeset
   115
?>