############################################################## 
## MOD Title: Image Upload
## MOD Author: Postimage Team < support@postimage.org > http://postimage.org
## MOD Description:
##      This mod adds a tool to quickly upload and attach
##      images to posts. Images are uploaded to the postimage.org
##      picture hosting website, so there is no need to worry
##      about disk space or web server configuration. When an image
##      is uploaded using this {mod}'s button, bbcodes for a thumbnail
##      and a link to the original image are automatically generated
##      and inserted into the post.
## MOD Version: 1.0.0
## 
## Installation Level:  Easy
## Installation Time:   ~2 Minutes
## Files To Edit:       ./includes/template.php
## License: https://opensource.org/licenses/GPL-3.0 GNU General Public License v3
##############################################################
## 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:
## Please email support@postimage.org if you have any problems
## or questions. Also please see our website
## http://postimage.org/site-plugins/ for info on options and useful tips.
##
##############################################################
## MOD History:
##
##   2016-07-29 - Version 1.0.0
##      - Initial release
##
############################################################## 
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
############################################################## 

# 
#-----[ OPEN ]--------------------------------------------- 
# 

./includes/template.php

# 
#-----[ FIND ]--------------------------------------------- 
# around line 265

		$str = implode("", @file($filename));
		
# 
#-----[ AFTER, ADD ]--------------------------------------------- 
# 

		$str=str_replace("</head>","<script type='text/javascript' src='//mod.postimage.org/phpbb2.js' charset='utf-8'></script>\n</head>",$str);

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