Archived
1
0
This repository has been archived on 2020-12-10. You can view files and clone it, but cannot push or open issues or pull requests.
old/application/helpers/is_allowed.php
2018-10-16 18:28:42 +02:00

33 lines
878 B
PHP
Raw Permalink Blame History

<?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<43>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;
}
?>