Releases: satopian/poti-kaini-EN
POTI-board EVO EN v3.10.0 released. Fixed a serious bug.
POTI-board EVO EN v3.10.0 released
Also check the POTI-board EVO EN v3.10.1 released
[2021/10/30] v3.10.0 Fixed a serious bug
- A serious flaw was found in all previous versions of POTI-board.
The url length was not checked. Please upgrade to the latest version as soon as possible.
For those who are using POTI-board v2.
You cannot use all the functions of v3 system just by replacingpotiboard.php
, but you can deal with this problem.
Please updatepotiboard.php
by overwriting.
[2021/10/27] v3.09.5
-
To prevent the use of weak passwords, an error message will be displayed when the password is 5 characters or less. The error message is "Password is too short. At least 6 characters."
-
In order to prevent tampering with articles by third parties, the function to lock replies to threads older than the set number of days has been expanded to lock editing of old articles.
You can delete it. In addition, the administrator can edit and delete as before. -
If you used the old config.php that doesn't have the following settings, you had to check or uncheck [no_imane].
// Use to the checkbox of [no_imane], do:'1', do not:'0'
define('USE_CHECK_NO_FILE', '0');
we changed this default value from "do:'1'" to "do not:'0'".
Previously, even if you were using a new theme HTML file, you had to check or uncheck "[no_imane]" when the version of config.php was old.
- Changing the copyright link on the site. https://paintbbs.sakura.ne.jp/poti/
Changed file
- potiboard.php
All of the theme directory
- theme/mono_catalog.html
- theme/mono_main.html
- theme/mono_other.html
- theme/mono_paint.html
- theme/template_ini.php
download
You can download it from the source code link below.
POTI-board EVO EN v3.08.1.1 released
POTI-board EVO EN v3.08.1.1 released
Fixed a bug in POTI-board EVO v3.08.1.
There was a problem switching the color scheme of the theme MONO because the necessary JavaScript was accidentally deleted.
Code that causes v3.08.1 issues
<script>
window.onpageshow = function(){
var $btn = $('[type="submit"]');
//disbledを解除
$btn.prop('disabled', false);
$btn.click(function(){//送信ボタン2度押し対策
$(this).prop('disabled',true);
$(this).closest('form').submit();
});
}
</script>
Code that fixed the bug
<script>
colorIdx=GetCookie('colorIdx');
document.getElementById("mystyle").selectedIndex=colorIdx;
window.onpageshow = function(){
var $btn = $('[type="submit"]');
//disbledを解除
$btn.prop('disabled', false);
$btn.click(function(){//送信ボタン2度押し対策
$(this).prop('disabled',true);
$(this).closest('form').submit();
});
}
</script>
Please update the corresponding file, mono_main.html
by overwriting, or rewrite to the above modified JavaScript.
Below are the updates for v3.08.1.
The JavaScript used in the POTI-board did not have the process of reverting after disabling the submit button.
Fixed an issue where the submit button was not enabled when using the browser's "History Back" or error screen "Back" links.
This JavaScript is included in the HTML of each theme, so it's faster to overwrite all the HTML files for each theme, but I'm sure some people will customize the HTML.
If you can find and fix the HTML source, you can work around this issue by modifying the following JavaScript:
The following is information for those who can edit the source directly.
If you are not sure, please overwrite and update using the HTML of the theme updated this time.
Problematic code
<script>
$(function(){//2度押し対策
$('[type="submit"]').click(function(){
$(this).prop('disabled',true);
$(this).closest('form').submit();
});
});
</script>
Fixed code
<script>
window.onpageshow = function(){
var $btn = $('[type="submit"]');
//disbledを解除
$btn.prop('disabled', false);
$btn.click(function(){//送信ボタン2度押し対策
$(this).prop('disabled',true);
$(this).closest('form').submit();
});
}
</script>
NEO Update
- neo.js updates.
Code organization
- Fixed minor code changes in potiboard.php.
Changed file
- neo.js
- potiboard.php
- theme/mono_main.html
- theme/mono_other.html
download
You can download it from the source code link below.
POTI-board EVO EN v3.07.5 released
POTI-board EVO v3.07.5 released
Minor bug fixes
- Fixed the processing specification that determines whether to start the drawing time calculation.
- Even if an error occurs during the posting process, you can repost the drawing image from the unposted image. Moved work file deletion to almost the end of the post process. Previously, if an error occurred in the second half of the posting process, the posted illustration would remain on the server but could not be displayed on the bulletin board.
Personal identification ID
Even if the date changes, the same ID will be displayed if the IP address is the same.
If you have dozens of posts per day, you can use the ID for one day, but the ID is meaningless for bulletin boards with a small number of posts in a few days.
The same ID may be displayed on other POTI bulletin boards. If you want to avoid it, change the setting in config.php.
// ID生成の種
// Seed of ID
define('ID_SEED', 'ID_SEED');
If you change'ID_SEED', it will be a unique ID only for that bulletin board.
Improved UI UX
- Linkd from thread title to reply screen.
Click the thread title to open the reply screen .
- The color scheme of the search screen is closer to that of the bulletin board.
Improved auto-complete for Chrome and Firefox
When editing or deleting an article, if you enter the article number and press the edit button, the password may be saved as a set with the user name as the article number.
To avoid this problem, I created a separate input field hidden by CSS.
This makes it easier to save passwords that use your name as your username.
What you can see for a moment in this GIF video is the hidden input field.
For the sake of explanation, the CSS is switched so that it can be seen.
Changed files
- The whole theme/ directory
(The structure of the HTML has changed significantly, so if you're using customized CSS, you might not want to use the modified HTML this time. If you update the HTML, you will need to recreate the CSS.) - noticemail/noticemail.inc
- potiboard.php
CSS
The structure of MONO's HTML has also changed.
Therefore, when I load the old CSS, the display is corrupted.
For PC, reload, for example, ctrl + shift + r.
On mobile, there may be no other way but to clear the cache.
I think that the old cache will disappear within a certain period of time, but if you are worried about the display collapse, please consider deleting the cache.
Download
You can download it from the source code link below.
POTI-board EVO EN v3.06.8.2
POTI-board EVO v3.06.8 .2released
The chickenpaint icon has been updated.
2021/08/23 Due to my mistake, there was no new icon for chicken paint.
I apologize for any inconvenience, but please overwrite and update the ChickenPaint directory.
It has been fixed in (v3.06.8.1).
Changed the color scheme of the theme MONO
- Change vivid color to pastel color.
Fix garbled characters
- Fixed the problem that the character string posted on the Twitter screen when the Tweet button was pressed was garbled.
- Fixed garbled characters in post notification emails.
Administrator deletion screen
- Improved security. Strengthened XSS measures.
- Changed the number of items displayed on one page from 2000 to 1000.
Fixed error message
- "chi" has been added to the description of supported formats because you can use "chi" files for the ability to upload files and load them onto the canvas.
search.php
- Fixed a bug that the time zone setting was not reflected correctly. I modified the code to speed up the process
Files that have changed
- potiboard.php
- search.php
- config.php
- chickenpaint/ (Directory)
theme MONO
- theme/css/mono_dark.css
- theme/css/mono_deep.css
- theme/css/mono_main.css
- theme/css/mono_mayo.css
- theme/mono_main.html
- theme/template_ini.php
Download
You can download it from the source code link below.
POTI-board EVO EN v3.05.2.2
POTI-board EVO v3.05.2.2 released
Fixed a issues.when using Chicken Paint on iPad.
-
Resolved an issue where using ChickenPaint on an iPad would cause unintended double-tap zoom issues that would make drawing difficult.
Please update the HTML for Paint screen.
-
Fixed an issue where palm rejection would malfunction when using ChickenPaint on an iPad.
Please update the ChickenPaint directory by overwriting. -
<img loading = "lazy">
.
Addedloading =" lazy "
to theimg
tag of theme.
Files that have changed
potiboard.php
theme/mono_catalog.html
theme/mono_main.html
theme/mono_paint.html
theme/search.html
/chickenpaint
Download
You can download it from the source code link below.
POTI-board EVO EN v3.05.2
Please use the new version.
Release POTI-board EVO EN v3.05.2.1 · satopian/poti-kaini-EN
POTI-board EVO EN v3.05.1
POTI-board EVO v3.05.1 released
Overview
- Introduced CSRF measures using fixed tokens.
You can reject unauthorized posts from outside the site.
If the theme HTML doesn't support tokens
define ('CHECK_CSRF_TOKEN', '0');
If you enable this setting when the theme is not supported, you will not be able to post normally.
If this setting is not present in config.php
define ('CHECK_CSRF_TOKEN', '0');
It will be treated the same as. - Moved to a method that checks HTML at the time of output. Administrators can no longer use HTML tags.
HTML tags that have already been entered will be removed.
The output is the one that has been removed and further escaped. - The form on the top page and the mini reply form displayed in each thread have been abolished.
This is because CSRF tokens cannot be set in static HTML files. - Chicken Paint is now compatible with smartphones.
Obsolete top page and form for each thread
The form for this image has been deprecated.
The form on the top page and the mini reply form displayed in each thread.
This is because you cannot set a CSRF token in static HTML.
Javascript processing to switch CSS
Information required when creating your own CSS file
Changed the javascript of the color switching process by CSS of the theme MONO.
The CSS file name is in the <head> </ head>
of each HTML file.
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="theme/css/mono_main.css">
<link rel="stylesheet" href="theme/css/mono_dark.css" id="css1" disabled>
<link rel="stylesheet" href="theme/css/mono_deep.css" id="css2" disabled>
<link rel="stylesheet" href="theme/css/mono_mayo.css" id="css3" disabled>
<script>
var colorIdx = GetCookie("colorIdx");
switch (Number(colorIdx)) {
case 1:
document.getElementById("css1").removeAttribute("disabled");
break;
case 2:
document.getElementById("css2").removeAttribute("disabled");
break;
case 3:
document.getElementById("css3").removeAttribute("disabled");
break;
}
function SetCss(obj){
var idx = obj.selectedIndex;
SetCookie("colorIdx",idx);
window.location.reload();
}
function GetCookie(key){
var tmp = document.cookie + ";";
var tmp1 = tmp.indexOf(key, 0);
if(tmp1 != -1){
tmp = tmp.substring(tmp1, tmp.length);
var start = tmp.indexOf("=", 0) + 1;
var end = tmp.indexOf(";", start);
return(decodeURIComponent(tmp.substring(start,end)));
}
return("");
}
function SetCookie(key, val){
document.cookie = key + "=" + encodeURIComponent(val) + ";max-age=31536000;";
}
</script>
CSRF token
We have added a process to set a token in the form to prevent posting from external sites, accept posts only when the tokens match, and reject others.
However, to use this process, you need to update the theme HTML file.
If you are using an older version of the theme and you enable the CRSF token rejection process, regular posts will also be rejected and you will not be able to post anything.
In the item of config.php
If there is no setting item for define
Or
define ('CHECK_CSRF_TOKEN', '0');
In the setting of, the check by token is not performed. You should be able to post as before.
In the case of a new setting, it should work normally without thinking too much, but when using an old theme,
define('CHECK_CSRF_TOKEN', '0');
Please change the setting to.
It's on the last line of config.php.
If there is no setting item there
define('CHECK_CSRF_TOKEN', '0');
It works the same as before, so you can post as before.
chickenpaint Smartphone compatible
Chicken Paint is now available on your smartphone.
Overwrite and update the chicken paint directory.
Next, you need to update the theme HTML.
This is because ChickenPaint is designed not to launch on your smartphone.
Update the theme to new HTML.
Update from v3.02.0
potiboard.php
and
search.php
and
Overwrite the chickenpaint
directory.
added a setting item to check CSRF countermeasure tokens in config.php
.
If you want to check it, add this setting item.
Overwrite and update the theme HTML file.
theme / directory
Each HTML file.
Files that have changed
potiboard.php
search.php
chickenpaint /
directory
config.php
When checking with CRSF token
define('CHECK_CSRF_TOKEN', '1');
Add the setting item of to the existing config.php
.
If you do not update it at the same time as the theme HTML, you will not be able to post.
theme/
HTML
Overwrite all HTML files in theme / directory update
Don't accidentally overwrite your customized CSS file.
Download
You can download it from the source code link below.
POTI-board EVO EN v3.05.0
There was a bug that line breaks were not reflected.
Please use v3.05.1.
Release POTI-board EVO EN v3.05.1 · satopian/poti-kaini-EN
POTI-board EVO EN v3.02.0
- PaintBBS NEO v1.5.12
Updated NEO to the latest version. - Prevents returning to the previous screen with Windows ink and two-finger gestures when drawing with PaintBBS NEO and shi-Painter.
Overwrite and update the HTML file of the paint screen theme.
- Addressed an issue where the Chicken Paint screen would be selected
Overwrite and update the HTML file of the paint screen theme.
- Changed CSS switching of theme MONO to pull-down menu method
noticemail.inc
used to send emails
Has been updated.
You can send in utf-8 encoding.
Files with changes
noticemail/noticemail.inc
neo.js
potiboard.php
theme/mono_catalog.html
theme/mono_main.html
theme/mono_other.html
theme/mono_paint.html
theme/search.html
Download from the Source code link.
POTI-board EVO EN v3.01.9
[2021/06/05] v3.01.9 lot.210605
-
Updated to the latest version of "ChickenPaint".
If the browser language is other than Japanese, it will be displayed in English. If the browser language is Japanese, it will be displayed in Japanese. -
Management screen paging Page breaks in units of 2000.
Improved paging on the main page and catalog page.
Shifted to a method of paging in 35-page units. -
Addressed the version of CheerpJ where the "shi-painter" does not start.
The JavaScript url required to start CheerpJ is managed in potiboard.php.
Download from the Source code link.