<?php /** * Justboil.me - a TinyMCE image upload plugin * jbimages/config.php * * Released under Creative Commons Attribution 3.0 Unported License * * License: http://creativecommons.org/licenses/by/3.0/ * Plugin info: http://justboil.me/ * Author: Viktor Kuzhelnyi * * Version: 2.3 released 23/06/2013 */ /*------------------------------------------------------------------- | | IMPORTANT NOTE! In case, when TinyMCE�s folder is not protected with HTTP Authorisation, | you should require is_allowed() function to return | `TRUE` if user is authorised, | `FALSE` - otherwise | | This is intended to protect upload script, if someone guesses it's url. | -------------------------------------------------------------------*/ function is_allowed() { if(isset($_SESSION['user']) && $_SESSION['user']['rank'] >= 6) return TRUE; else return FALSE; } ?>