Macsch15 / Capsule-phpbb

Local image hosting for phpBB 3.1.x and phpBB 3.2.x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Capsule

Capsule is a local image hosting for phpBB 3.1.x and phpBB 3.2.x

Capsule preview

Requirements

  • PHP 5.5 or later

Installation

Download repository from GitHub and paste in:

path/to/phpbb/ext/macsch15/capsule

Then go to ACP -> Customize -> Manage Extensions -> Capsule -> Enable

Configuration

For now, configuration is localed at controller/controller.php.

    const UPLOAD_FOLDER = 'hosting';
    const ALLOWED_MIME = ['image/gif', 'image/jpeg', 'image/png'];
    const ALLOWED_EXTENSION = ['.jpeg', '.png', '.gif', '.jpg', '.JPEG', '.PNG', '.GIF', '.JPG'];
    const MAX_SIZE = 5242880;
    const IMAGE_NAME_REMOVE_REGEX = '/[^A-Za-z0-9_\-\.]/i';
    const IMAGES_PER_PAGE = 5;

To-Do list

  • Configuration
  • prosilver theme support
  • ACL's
  • Tests
  • Upload from URL
  • ACP user-friendly settings

MIT Licence

Copyright (c) 2019 Maciej Schmidt

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Local image hosting for phpBB 3.1.x and phpBB 3.2.x


Languages

Language:PHP 69.7%Language:HTML 28.3%Language:JavaScript 1.2%Language:CSS 0.7%