################################################################# 
## MOD Title: Album Mod FAP
## MOD Author: orynider < orynider@rdslink.ro > (Florin Bodin Ciprian) http://www.mx-publisher.com/
## MOD Author: Mighty Gorgon < mightygorgon@mightygorgon.com > (Luca Libralato) http://icyphoenix.com/
##
## MOD Description: 
##		- This MOD adds a full Album system, based on several MODS.
##		- Some modifications on the original MODS have been applied.
##		- The MXP Addons are phpBB mods that share most files with Mx-Publisher and require MXP MOD.
## Requirements:
## 	A running phpBB 2.0.x (recommend the lastest version)
## 	The mxBB Mod "include/" folder that can be found in this mod "contrib/" folder
## 	The eXtreme Styles MOD is required for this mod to have all features enabled
## 	HTTP File Upload Enabled (this MOD can work with PHP Safe-Mode in some cases)
## 	MySQL 4.3.3+
##
## Features:
## 
## On The Fly Gallery
## =======================================
## Folders with pictures may be uploaded into a folder called OTF into album_mod/uploads/
## and thumbnails and categories (based on subfolder) will be automatically generated.
## This feature support only one level of subfolder, so will be browsed for images only
## all the folders into album_mod/uploads/otf/.
## When logged as ADMIN pictures may be automatically imported in the album.
## 
## 
## Picture SlideShow
## =======================================
## All pictures in each category can be shown in SlideShow mode by clicking the link near the cat name
## or in the top right corner while browsing subcat.
## 
## 
## Album Image BBCodes Parsing
## =======================================
## FAP includes its own BBCode parsing function for comments page.
## 
## 
## =======================================
## Some of the included MODS:
## =======================================
##
## Photo Album 2.0.54
## =======================================
## MOD Author: Smartor < smartor_xp@hotmail.com > (Hoang Ngoc Tu) http://smartor.is-root.com
## MOD Desc:
##  This is a phpBB-based photo album/gallery management system.
##  It is really powerful, stable, efficient, rich features and highly customizable.
##  The version 2 was written from the scratch for more security, performance, etc.
##  It is not really a MOD/hack, it is rather a phpBB-based system :)
## 
## 
## Supercharged Album Pack 1.5.1
## =======================================
## MOD Author: Volodymyr (CLowN) Skoryk 
## MOD Desc: 
##  A series of modification for Album version 2 by Smartor ( http://smartor.is-root.com ) 
## 
## 
## Album Category Hierarchy 1.3.0
## =======================================
## MOD Author: IdleVoid < idlevoid@slater.dk > (N/A) N/A
## MOD Desc: 
##  Adds category hierarchy functionality to the album
## 
## 
## Album Multiple Uploads 1.0.3
## =======================================
## MOD Author: IdleVoid < idlevoid@slater.dk > (N/A) N/A
## MOD Desc: 
##  This mod allows people to upload more than one picture at a time.
## 
## 
## Archive Mod
## =======================================
## MOD Author: chadsmith < N/A > (Chad Smith) N/A
## MOD Desc:
##  Adds a link to download all the pics in a page as a single compressed zip
## MOD Link: http://smartor.is-root.com/viewtopic.php?t=14096
## 
## 
## Thumbnail Dimension Mod
## =======================================
## MOD Author: nuffmon < nuffmon@hotmail.com > (Nuffmon)
## MOD Desc:
##  Places a small black band at the bottom of thumbnails with dimensions and file size on
## MOD Link: http://smartor.is-root.com/viewtopic.php?t=15198
## 
## 
## Picture Rotation Mod
## =======================================
## MOD Author: nuffmon < nuffmon@hotmail.com > (Nuffmon)
## MOD Desc:
##  Rotate image on upload
## MOD Link: http://smartor.is-root.com/viewtopic.php?t=11971
## 
## 
## Album Nuffload
## =======================================
## MOD Author: nuffmon < nuffmon@hotmail.com > (Nuffmon)
## MOD Desc:
##  Features:
##  - Progress bar when uploading
##  - PHP upload limit bypass
##  - Doesn't use applets or activex
##  - Multiple file uploads
##  - Auto resizing (gif's included)
##  - Manual-uploaded thumbnail supported
## MOD Link: http://smartor.is-root.com/viewtopic.php?t=15093
## 
## 
## Nuffimage
## =======================================
## MOD Author: nuffmon < nuffmon@hotmail.com > (Nuffmon)
## MOD Desc:
##  It's a class for images editing.
##  Features:
##  - Sepia
##  - Grayscale
##  - Watermarking
##  - Resizing
## MOD Link: N/A
## =======================================
##
## MOD Version: 2.1.0
##
## Installation Level: (Easy) 
## Installation Time: 9 Minutes
## Files To Edit: (6)
##		includes/constants.php,
##		viewonline.php,
##		includes/page_header.php,
##		language/lang_english/lang_admin.php,
##		language/lang_english/lang_main.php,
##		templates/subSilver/admin/page_header.tpl,
##		templates/subSilver/overall_header.tpl
##				
## Included Files: (180)
##		root/album.php,
##		root/album_db_install.php,
##		root/album_db_uninstall.php,
##		root/admin/*.php,
##		root/album_mod/*.*,
##		root/album_mod/upload/*.*,
##		root/album_mod/upload/cache/*.*,
##		root/album_mod/upload/med_cache/*.*,
##		root/album_mod/upload/otf/*.*,
##		root/album_mod/upload/wm_cache/*.*,
##		root/album_mod/includes/*.php,
##		root/album_mod/language/lang_english/lang_main.php,
##		root/album_mod/language/lang_english/lang_admin.php,
##		root/album_mod/modules/*.php,
##		root/cgi-bin/nuffload.cgi,
##		root/jupload/jupload.jar,
##		root/templates/subSilver/*.tpl,
##		root/templates/subSilver/mx_smartor.css,
##		root/templates/subSilver/mx_smartor.cfg,
##		root/templates/subSilver/admin/*.tpl,
##		root/templates/subSilver/images/*.gif,
##		root/templates/subSilver/images/lang_english/*.gif
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## - Discussion at http://www.icyphoenix.com/viewforum.php?f=25
## 
## - Thanks to Smartor, CLowN and IdleVoid for giving me the opportunity
## to create and distribuite their MODS in this Package.
##
## Features - Picture SlideShow, Album, Image Archive Download, Nuffimage, 
## On The Fly Gallery, Multiple Uploads, Image Rotate/Resizing, 
## Folders Upload Via FTP, Java Uploading Applet for browsing files/folders, 
## Jaime Letering and many others.
## - Feature have been integrated by Mighty Gorgon.
## - MXP Integration by OryNider.
################################################################
## This MOD is released under the GPL License.
################################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
################################################################

#
#-----[ COPY ]-----------------------------------
# 
copy root/album.php to album.php
copy root/album_db_install.php to album_db_install.php
copy root/admin/*.php to admin/*.php
copy root/album_mod/*.* to album_mod/*.*
copy root/album_mod/upload/*.* to album_mod/upload/*.*
copy root/album_mod/upload/cache/*.* to album_mod/upload/cache/*.*
copy root/album_mod/upload/med_cache/*.* to album_mod/upload/med_cache/*.*
copy root/album_mod/upload/otf/*.* to album_mod/upload/otf/*.*
copy root/album_mod/upload/wm_cache/*.* to album_mod/upload/wm_cache/*.*
copy root/album_mod/includes/*.php to album_mod/includes/*.php
copy root/album_mod/modules/*.php to album_mod/modules/*.php
copy root/album_mod/language/lang_english/*.php to language/lang_english/*.php
copy root/templates/subSilver/*.* to templates/subSilver/*.*
copy root/templates/subSilver/admin/*.* to templates/subSilver/admin/*.*
copy root/templates/subSilver/images/*.* to templates/subSilver/images/*.*
copy root/templates/subSilver/images/lang_english/*.* to templates/subSilver/images/lang_english/*.*
copy root/cgi-bin/nuffload.cgi to cgi-bin/nuffload.cgi
copy root/jupload/jupload.jar to jupload/jupload.jar

#
#-----[ DIY INSTRUCTIONS ]------------------------------------
#
# CHMOD these directories for Full Album Pack to work correctly.

.
CHMOD 777 album_mod/upload
CHMOD 777 album_mod/upload/cache
CHMOD 777 album_mod/upload/med_cache
CHMOD 777 album_mod/upload/otf
CHMOD 777 album_mod/upload/wm_cache
CHMOD 755 cgi-bin/nuffload.cgi
.

#
#-----[ SQL ]-------------------------------------------------
#
# You can only manually execute "mx_mod_install.php"
# Copy "album_db_install.php" to your phpBB root and execute it from your browser when you're logged in with admin rights
#

CREATE TABLE IF NOT EXISTS phpbb_smartor_album (
  pic_id int(11) unsigned NOT NULL auto_increment,
  pic_filename varchar(255) NOT NULL,
  pic_thumbnail varchar(255) default NULL,
  pic_title varchar(255) NOT NULL,
  pic_desc text,
  pic_user_id mediumint(8) NOT NULL,
  pic_username varchar(32) default NULL,
  pic_user_ip char(8) NOT NULL default '0',
  pic_time int(11) unsigned NOT NULL,
  pic_cat_id mediumint(8) unsigned NOT NULL default '1',
  pic_view_count int(11) unsigned NOT NULL default '0',
  pic_lock tinyint(3) NOT NULL default '0',
  pic_approval tinyint(3) NOT NULL default '1',
  PRIMARY KEY  (pic_id),
  KEY pic_cat_id (pic_cat_id),
  KEY pic_user_id (pic_user_id),
  KEY pic_time (pic_time)
);

CREATE TABLE IF NOT EXISTS phpbb_smartor_album_cat (
  cat_id mediumint(8) unsigned NOT NULL auto_increment,
  cat_title varchar(255) NOT NULL,
  cat_desc text,
  cat_wm text,
  cat_order mediumint(8) NOT NULL,
  cat_view_level tinyint(3) NOT NULL default '-1',
  cat_upload_level tinyint(3) NOT NULL default '0',
  cat_rate_level tinyint(3) NOT NULL default '0',
  cat_comment_level tinyint(3) NOT NULL default '0',
  cat_edit_level tinyint(3) NOT NULL default '0',
  cat_delete_level tinyint(3) NOT NULL default '2',
  cat_view_groups varchar(255) default NULL,
  cat_upload_groups varchar(255) default NULL,
  cat_rate_groups varchar(255) default NULL,
  cat_comment_groups varchar(255) default NULL,
  cat_edit_groups varchar(255) default NULL,
  cat_delete_groups varchar(255) default NULL,
  cat_moderator_groups varchar(255) default NULL,
  cat_approval tinyint(3) NOT NULL default '0',
  cat_parent mediumint(8) unsigned default '0',
  cat_user_id mediumint(8) unsigned default '0',
  PRIMARY KEY  (cat_id),
  KEY cat_order (cat_order)
);

INSERT INTO phpbb_smartor_album_cat VALUES(1, 'Test Category', 'First Test Category', '', 10, -1, 0, 0, 0, 0, 2, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 0, 0, 0);

CREATE TABLE IF NOT EXISTS phpbb_smartor_album_comment (
  comment_id int(11) unsigned NOT NULL auto_increment,
  comment_pic_id int(11) unsigned NOT NULL,
  comment_cat_id int(11) NOT NULL default '0',
  comment_user_id mediumint(8) NOT NULL,
  comment_username varchar(32) default NULL,
  comment_user_ip char(8) NOT NULL,
  comment_time int(11) unsigned NOT NULL,
  comment_text text,
  comment_edit_time int(11) unsigned default NULL,
  comment_edit_count smallint(5) unsigned NOT NULL default '0',
  comment_edit_user_id mediumint(8) default NULL,
  PRIMARY KEY  (comment_id),
  KEY comment_pic_id (comment_pic_id),
  KEY comment_user_id (comment_user_id),
  KEY comment_user_ip (comment_user_ip),
  KEY comment_time (comment_time)
);


CREATE TABLE IF NOT EXISTS phpbb_smartor_album_config (
  config_name varchar(255) NOT NULL,
  config_value varchar(255) NOT NULL,
  PRIMARY KEY  (config_name)
);

INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_pics', '1024');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('user_pics_limit', '50');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('mod_pics_limit', '250');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_file_size', '128000');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_width', '1024');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_height', '768');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('rows_per_page', '3');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('cols_per_page', '4');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('fullpic_popup', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('thumbnail_quality', '50');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('thumbnail_size', '150');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('thumbnail_cache', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('sort_method', 'pic_time');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('sort_order', 'DESC');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('jpg_allowed', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('png_allowed', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('gif_allowed', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('desc_length', '512');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('hotlink_prevent', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('hotlink_allowed', 'smartor.is-root.com');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_gallery', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_gallery_private', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_gallery_limit', '10');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_gallery_view', '-1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('rate', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('rate_scale', '10');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('comment', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('gd_version', '2');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('album_version', '.0.54');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('fap_version', '1.4.2');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_thumb', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_total_pics', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_total_comments', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_comments', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_last_comment', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_last_pic', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_pics', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_recent_in_subcats', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_recent_instead_of_nopics', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('line_break_subcats', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_subcats', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_allow_gallery_mod', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_allow_sub_categories', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_sub_category_limit', '-1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_show_subcats_in_index', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_show_recent_in_subcats', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_show_recent_instead_of_nopics', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_personal_gallery_link', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('album_category_sorting', 'cat_order');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('album_category_sorting_direction', 'ASC');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('album_debug_mode', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_all_in_personal_gallery', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('new_pic_check_interval', '1M');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('index_enable_supercells', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('email_notification', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_download', '2');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_slideshow', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_pic_size_on_thumb', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_files_to_upload', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_pregenerated_fields', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('dynamic_fields', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('pregenerate_fields', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('propercase_pic_title', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_index_last_pic_lv', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_pics_approval', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_img_no_gd', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('dynamic_pic_resampling', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_file_size_resampling', '1024000');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('switch_nuffload', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('path_to_bin', './modules/mx_smartor/cgi-bin/');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('perl_uploader', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_progress_bar', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('close_on_finish', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_pause', '5');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('simple_format', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('multiple_uploads', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('max_uploads', '5');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('zip_uploads', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('resize_pic', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('resize_width', '600');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('resize_height', '600');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('resize_quality', '70');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_pics_nav', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_inline_copyright', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('enable_nuffimage', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('enable_sepia_bw', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('personal_allow_avatar_gallery', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_gif_mid_thumb', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('slideshow_script', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_exif', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('album_bbcode', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('quick_thumbs', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('set_memory', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('lb_preview', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('use_old_pics_gen', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_last_comments', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('enable_mooshow', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('enable_integration', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('override_default_pages', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('index', '5');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('invert_nav_arrows', '0');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_otf_link', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_all_pics_link', '1');
INSERT INTO phpbb_smartor_album_config (config_name, config_value) VALUES('show_personal_galleries_link', '1');

CREATE TABLE IF NOT EXISTS phpbb_smartor_album_rate (
  rate_pic_id int(11) unsigned NOT NULL,
  rate_user_id mediumint(8) NOT NULL,
  rate_user_ip char(8) NOT NULL,
  rate_point tinyint(3) unsigned NOT NULL,
  rate_hon_point tinyint(3) NOT NULL default '0',
  KEY rate_pic_id (rate_pic_id),
  KEY rate_user_id (rate_user_id),
  KEY rate_user_ip (rate_user_ip),
  KEY rate_point (rate_point)
);

CREATE TABLE IF NOT EXISTS phpbb_smartor_album_sp_config (
  config_name varchar(255) NOT NULL,
  config_value varchar(255) NOT NULL,
  PRIMARY KEY  (config_name)
);

INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('disp_late', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('rate_type', '2');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('disp_high', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('disp_mostv', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('disp_rand', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('img_rows', '2');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('img_cols', '3');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('use_watermark', '0');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('wut_users', '0');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('disp_watermark_at', '3');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('hon_rate_times', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('hon_rate_sep', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('hon_rate_where', '');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('hon_rate_users', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('midthumb_use', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('midthumb_height', '500');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('midthumb_width', '500');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('midthumb_cache', '1');
INSERT INTO phpbb_smartor_album_sp_config (config_name, config_value) VALUES('jaime_lettering', '0');

#
#-----[ OPEN ]------------------------------------------------
#
includes/constants.php
#
#-----[ FIND ]------------------------------------------------
#
if ( !defined('IN_PHPBB') )
{
	die("Hacking attempt");
}
#
#-----[ AFTER, ADD ]------------------------------------------
#
@define('PAGE_ALBUM', -50);	// for Session Handling
@define('PAGE_ALBUM_PERSONAL', -51);
@define('PAGE_ALBUM_PICTURE', -52);
@define('PAGE_ALBUM_SEARCH', -53);

#
#-----[ OPEN ]------------------------------------------------
#
viewonline.php

#
#-----[ FIND ]------------------------------------------------
#
				case PAGE_FAQ:
					$location = $lang['Viewing_FAQ'];
					$location_url = "faq.$phpEx";
					break;
#
#-----[ AFTER, ADD ]------------------------------------------
#
				case PAGE_ALBUM:
					$location = $lang['View_Album_Index'];
					$location_url = "album.$phpEx";
					break;
				case PAGE_ALBUM_PERSONAL:
					$location = $lang['View_Album_Personal'];
					$location_url = "album.$phpEx?smartor_mode=album_personal_index";
					break;

#
#-----[ OPEN ]------------------------------------------------
#
includes/page_header.php

#
#-----[ FIND ]------------------------------------------------
#

	'U_GROUP_CP' => append_sid('groupcp.'.$phpEx),

#
#-----[ AFTER, ADD ]------------------------------------------
#
	'L_ALBUM' => $lang['Album'],
	'U_ALBUM' => append_sid('album.'.$phpEx),
	'L_PIC_NAME' => $lang['Pic_Name'],
	'L_DESCRIPTION' => $lang['Description'],
	'L_GO' => $lang['Go'],
	'L_SEARCH_CONTENTS' => $lang['Search_Contents'],
	'L_SEARCH_MATCHES' => $lang['Search_Matches'],

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_admin.php

#
#-----[ FIND ]------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

$lang['Photo_Album'] = 'Photo Album';
$lang['Categories'] = 'Categories';
$lang['Personal_Galleries'] = 'Personal Galleries';

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php

#
#-----[ FIND ]------------------------------------------------
#

?>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

$lang['Album'] = 'Album';
$lang['Personal_Gallery_Of_User'] = 'Personal Gallery Of %s';
$lang['Personal_Gallery_Of_User_Profile'] = 'Personal Gallery of %s (%d Pictures)';
$lang['Show_All_Pic_View_Mode_Profile'] = 'Show All Pictures In The Personal Gallery of %s (without sub cats)';
$lang['Not_allowed_to_view_album'] = 'Sorry, you are not allowed to view the album.';
$lang['Not_allowed_to_upload_album'] = 'Sorry, you are not allowed to upload new pic to the album. Please contact the album administrator for more information.';
$lang['Album_empty'] = 'There are no pics in the album<br />Click on the <b>Upload New Pic</b> link on this page to post one.';
$lang['Upload_New_Pic'] = 'Upload New Pic.';
$lang['Pic_Title'] = 'Pic Title';
$lang['Pic_Title_Explain'] = 'It is very important to give your pic a good title. It could be a name, a subject to make others know what it is without see it.';
$lang['Pic_Upload'] = 'Pic Upload';
$lang['Pic_Upload_Explain'] = 'Allowed types are JPG, GIF and PNG. Maximum file size is %s bytes. Maximum image dimensions are %sx%s pixels.';
$lang['Album_full'] = 'Sorry, the album has reached the maximum number of uploaded pics. Please contact the album administrator for more information.';
$lang['Album_upload_successful'] = 'Thank you, your pic has been uploaded successfully.';
$lang['Click_return_album'] = 'Click %shere%s to return to the Album.';
$lang['Invalid_upload'] = 'Invalid Upload<br /><br />Your pic is too big or its type is not allowed.';
$lang['Image_too_big'] = 'Sorry, your image dimensions is too large.';
$lang['Uploaded_by'] = 'Uploaded by';
$lang['Category_locked'] = 'Sorry, you cannot upload because this category was locked by an admin. Please contact the album administrator for more information.';
$lang['View_Album_Index'] = 'Album Index';
$lang['View_Album_Personal'] = 'Viewing Personal Album of a user';
$lang['View_Pictures'] = 'Viewing Pictures or Posting/Reading comments in the Album';
$lang['Album_Search'] = 'Searching the Album';
$lang['Pic_Name'] = 'Picture Name';
$lang['Description'] = 'Description';
$lang['Search_Contents'] = ' that contains: ';
$lang['Search_Found'] = 'Search found ';
$lang['Search_Matches'] = 'Matches:';

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/page_header.tpl

#
#-----[ FIND ]------------------------------------------------
#

</head>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

<link rel="stylesheet" href="../templates/subSilver/mx_smartor.css" type="text/css" />

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/overall_header.tpl

#
#-----[ FIND ]------------------------------------------------
#

</head>

#
#-----[ BEFORE, ADD ]-----------------------------------------
#

<link rel="stylesheet" href="templates/subSilver/mx_smartor.css" type="text/css" />
<script language="javascript" type="text/javascript" src="album_mod/fap_loader.js"></script>

#
#-----[ FIND ]------------------------------------------------
#

{L_USERGROUPS}</a>&nbsp;

#
#-----[ IN-LINE FIND ]----------------------------------------
#

{L_USERGROUPS}</a>&nbsp;

#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#

<a href="{U_ALBUM}" class="mainmenu"><img src="templates/subSilver/images/icon_mini_album.gif" width="12" height="13" border="0" alt="{L_ALBUM}" hspace="3" />{L_ALBUM}</a>&nbsp;


#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM