Skip to content

POTI-board EVO EN v5.23.8 released. v3.x and earlier all versions have a serious bug.

Compare
Choose a tag to compare
@satopian satopian released this 16 Aug 08:10
· 692 commits to main since this release

POTI-board EVO EN v5.23.8 released

[2022/08/16] v5.23.8

Update

  • Updated Klecks to the latest version.
    Added noise filter.

image

  • Updated BladeOne to v4.5.5.
  • Updated jQuery to v3.6.0.
    Since the existence of the file is checked, the program will not run if the included jQuery does not exist.
    The case an error message telling you that the file does not exist.

Improvements

  • Fixed clickjacking vulnerability.
    It will not be possible to display in frames or iframes.
    It's more secure, but I know some people want to display it in a frame.
    Therefore, we added a new setting item to config.php so that you can select whether or not to display it in the frame.
    If you do not need to display in the frame, you do not need to add setting items.
// Deny display in iframe:  (1: Deny, 0: Allow)
// We strongly recommend "Deny" to avoid security risks.
define('X_FRAME_OPTIONS_DENY', '1');

I think it is difficult to rewrite config.php from scratch, so if you add the above setting items anywhere, you will be able to display it in the frame.

  • Improved mobile usability.
    Optimized tap target size and spacing.

  • Improved page loading speed
    Prefetch externally loaded JavaScript such as jQuery and loadcookie.js to avoid rendering blocking.

  • JavaScript execution timing to DOMContentLoaded.

  • Fixed a fatal error if not written carefully. error() function to built-in function die().

  • Enabled to change the jQuery version without touching the template directly.

  • Added width and height of image in search screen.

  • In order to speed up loading speed, loading="lazy" is not applied to the range displayed from the beginning.

  • The JavaScript description of the timer under the PaintBBS startup screen was deprecated, so it has been fixed.
    After setting the content security policy, the clock on the drawing screen of POTI-board stopped working. |Satopian|note

added files

  • lib/jquery-3.6.0.min.js

changed files

  • thumbnail_gd.php
  • potiboard.php
  • config.php
  • search.php

changed directories

  • klecks/

Changed Templates

  • templates/mono_en/

All templates have been changed, including CSS.
We have improved the speed of the site and the ease of smartphone operation, and now you can manage the jQuery version.
However, if you have already customized it, you don't have to change the template.
Please note that the jQuery version will remain v3.5.1 in that case.

[2022/07/11] v5.20.2

Improvement

  • Reduced the probability of duplicate file names when posting drawing images to 1/1000.
  • Even if it is duplicated, 1 second will be added to the posting time.
  • Add a process to check if there is a posted image, make sure that the drawn image is sent to the server, and then move from the drawing screen.

Update

  • Klecks has been updated. Added a grid to the editing function.
  • BladeOne has been updated. A minor bug has been fixed.

Changed file

  • potiboard.php
  • picpost.php
  • save.php
  • saveklecks.php

Changed directory

  • BladeOne /
  • klecks /

POTI-board EVO EN v5.19.1 released

[2022/06/30] v5.19.1

  • Since it was confirmed that it does not work with PHP7.1, the required operating environment has been changed to PHP7.2 or higher.
    In the PHP7.1 environment, it will not start and will issue an error message telling you that the PHP version is low.
  • The form is not displayed when there is no unposted image.

Files that have changed

  • potiboard.php
  • picpost.php

Templates that have changed

MONO

  • templates/mono_en/mono_other.blade.php
  • templates/mono_en/css/

[2022/06/11] v5.18.25

Bug fixes

  • Fixed the issue that the layout was broken when posts omitted .

Improvement

  • ChickenPaint now launches in full screen.

Files that have changed

  • potiboard.php

Templates that have changed

  • templates/mono_en/mono_main.blade.php
    Fixed the issue that the layout was broken when posts omitted .
  • templates/mono_en/mono_paint.blade.php
    ChickenPaint is now launched in full screen.

[2022/05/25] v5.18.9

Klecks update

Updated Klecks to the latest version.

CheerpJ update to v2.3

Updated CheerpJ, which converts Java applets to JavaScript when using the painter, to v2.3.

Bug fixes

  • Fixed a bug that the rejected character string and rejected url for anti-spam could not be processed correctly if they contained / (slash).
  • Fixed a minor error when calculating the number of days elapsed for deleting temporary unnecessary files.
  • Fixed the problem that the date and time when closing the reply in the specified number of days was not the parent's posting date and time but the latest reply posting date and time.

Improvement

  • Reimplemented tripcode function.

Changed directory

  • klecks/

Files that have changed

  • potiboard.php
  • search.php

Templates that have changed

MONO

  • potiboard5/templates/mono_en/paint_klecks.blade.php
    (Error alerts now open even when the error from the server is exactly 400)

[2022/04/28] v5.16.8

Klecks has been updated.

  • Several issues with the iPad OS have been fixed.
  • Traditional Chinese has been added to the available languages.

The template engine BladeOne has been updated.

  • BladeOne has been updated to v4.5.3.

Improvement

  • If the cause of the transmission failure of klecks is a server error, the error number is displayed as an alert.
    For example, if saveklecks.php does not exist ," Error 404 "will be displayed in the alert.

  • Changed the working directory of the PNGtoJPEG process to TEMP_DIR.
    Even if the process fails and the working files are left behind, they are now automatically deleted over time.

Bug fixes

  • When the .pch save directory was specified other than'src/', the automatic directory creation function did not work and the required files could not be saved.
    Changed to be created automatically when the directory does not exist.

Changed directory

  • klecks/
  • BladeOne/

Files that have changed

  • potiboard.php
  • templates/mono_en/paint_klecks.blade.php

[2022/04/02] v5.16.5.1

  • fix search template.
  • fix main template.
    Fixed a grammatical error in the HTML of the search screen.
  • Corrected incorrect English notation.
  • klecks updated
    The number of layers that can be used has been increased from 8 to 16.

Changed directory

  • klecks/

Files that have changed

  • search.php
  • templates/mono_en/search.blade.php
  • templates/mono_en/mono_main.blade.php

[2022/03/25] v5.16.5

Improvement

Klecks Japanese translation

image

  • Translated Klecks into Japanese.
    I was able to bundle a Japanese version with POTI-board.
    This new version of Klecks will automatically detect your browser's language priority and switch languages ​​for you.
    You can also specify the language to use regardless of the browser language setting.
    You can select English, German, or Japanese.
    Chinese is only in Simplified Chinese and details are still in English.
    Japanese translation resources have already been merged into the klecks repository.

The download button for the application-specific file has been created.

image

App-specific format list

  • . Pch file (PaintBBS)
  • . Chi file (ChickenPaint)
  • . Psd file (Klecks)

The file containing the layer information for Klecks is a .psd file in Photoshop format.
The downloaded .psd file can be opened by CSP, SAI and many other apps.
.pch and .chi can be opened with NEO and ChickenPaint, respectively.
If you attach .pch, .chi, .psd from the administrator posting screen and press the paint button, you can load it on the canvas and post it.

Transparent PNG, change the transparent part of the thumbnail of transparent GIF to white

  • Fixed the problem that the transparent part of transparent PNG was black when it was converted to JPEG.
    It is not a mistake that the transparent color is black, but since it often results in unintended results, when converting from transparent GIF or transparent PNG to JPEG, the transparent color is converted to white.

Bug fixes

  • Fixed the case where a minor error occurred when operating the upload format specific to the paint application used when logging in to the administrator, and the automatic deletion function of unnecessary temporary files such as pch, chi, and psd.

BladeOne update

Updated template engine BladeOne to v4.5.

Files that have changed

  • potiboard.php
  • thumbnail_gd.php

Changed directory

  • BladeOne/
  • klecks/
    Overwrite update for each directory.

Templates that have changed

MONO EN

  • templates/mono_en/mono_paint.blade.php
  • templates/mono_en/paint_klecks.blade.php
  • templates/mono_en/template_ini.php

[2022/03/12] v5.12.0

Bug fixes

  • Fixed the issues that the menu could not be operated with Apple Pencil.
    Fixed that the menu operation of ChickenPaint and Klecks could not be operated with.
    It was caused by Javascript added to the paint related template in v3.19.5.
    I deleted the corresponding Javascript and confirmed that it works normally.

Updated Klecks

  • Updated Klecks to the latest version.
    A new brush has been added. You can now do mirror painting.

Changed directory

  • klecks/

Files that have changed

  • potiboard.php

Template MONO

  • templates/mono_en/mono_paint.blade.php
  • templates/mono_en/paint_klecks.blade.php

Also check out the POTI-board EVO v5.10.0 release.
Many files have been updated.

[2022/03/8] v5.10.0

new function

  • You can use the new painting app Klecks.

image

Easy-to-understand UI, powerful brushes, and filter functions.
You can use 8 layers.

fix

Many minor bugs have been fixed.

Overwrite and update these directories.

  • BladeOne/
  • klecks/
  • templates/mono_en/

Overwrite and update these files.

  • potiboard.php
  • save.php

Please add this file.

  • saveklecks.php

[2022/02/10] v5.05.0

URL blacklists

When the character string specified by the "String blacklists" exists in the URL, it is now rejected.
In addition, we have added a "URL blacklists" .

// URL blacklists
$badurl = array("example.com","www.example.com");

Previously, no spam word checking was done on the URL.

Older threads don't show links to draw more. Do not allow the continuation to be drawn.

There was a function to lock the editing of articles that exceeded the specified number of days, but I was able to draw the continuation.
I created these settings because the article will be modified if the password is compromised by a third party.
Even if the article is locked, it can be deleted by the user.
In addition, the administrator can edit even after the specified number of days.

However, I think that some people may be in trouble if the lock is applied within a certain number of days.

define ('ELAPSED_DAYS', '365');

Threads older than 1 year will be locked in 365,

define ('ELAPSED_DAYS', '0');

If set to 0, it will not be locked.

  • If the specified number of days has passed while drawing, it will be a new post.
    Also, when the thread is deleted while drawing, it will be a new post.

[2022/01/27] v5.01.03

Change to BladeOne for template engine

I changed the template engine to BladeOne because I get a deprecated error from Skinny.php in PHP8.1 environment.
However, that means that the templates will be incompatible.
Templates with the extension HTML have been replaced with templates with the extension blade.php.
When you open the content, it's not much different from a traditional template. However, it may seem difficult because the extension is not HTML.

What has changed due to the change of the template engine

PHP7.1

  • I was developing it to work in PHP5.6 environment, but I found that v4.2 of BladeOne only works in PHP7.1 or higher environment.
    POTI-board EVO v5.x requires PHP 7.1 or higher.

Information for those who customize and use templates.

The thread display process has changed significantly.
Previously, there was processing for the parent of the thread, and there was separate processing for reply.

In v5.x, the loop of the array of one thread is ended at once.

It then treats the first loop as the parent of the thread.
Specifically, it looks like the following.

	@foreach ($ress as $res)
	 {{-- Parent article header -}}
	@if ($loop->first)
	{{-- First loop -}}
	<h2 class="article_title"><a href="{{$self}}?res={{$ress[0]['no']}}">[{{$ress[0]['no']}}]
			{{$ress[0]['sub']}}</a></h2>

	@else
	<hr>
	{{-- article header for reply -}}
	<div class="res_article_wrap">
		<div class="res_article_title">[{{$res['no']}}] {{$res['sub']}}</div>
		@endif

@if ($loop->first) is true for the first loop of the thread.
When @if ($loop->first) is true, it is processed as the parent of the thread.
The <h2> tag of the title that is displayed differently only when it is the parent of the thread is put in that place.

If you install the extension laravel-blade in a free editor called VScode, the editor screen will appear. Switch to a color scheme optimized for the blade syntax.
Both the extension and the editor itself can be used free of charge.

Files that have changed

all.

Looking ahead for a few years

We apologize for the incompatibility of the template and the resetting of config.php, but we hope you understand it.

Also, please use the PHP script for the Oekaki bulletin board called Petit Note, which was newly recreated from scratch.

Download

You can download it from the source code link below.