mirror of
https://github.com/Daichimarukana/uwuzu.git
synced 2026-06-04 19:14:41 +00:00
uwuzu v1.4.8 Funium
This commit is contained in:
+18
-12
@@ -1394,20 +1394,26 @@ function val_OtherSettings($dataname, $jsontext){
|
|||||||
//ユーザーのOther_Settings追加関数
|
//ユーザーのOther_Settings追加関数
|
||||||
function val_AddOtherSettings($dataname, $data, $jsontext){
|
function val_AddOtherSettings($dataname, $data, $jsontext){
|
||||||
$other_settings = json_decode($jsontext, true);
|
$other_settings = json_decode($jsontext, true);
|
||||||
if(isset($dataname) && isset($data) && isset($jsontext)) {
|
if(empty($other_settings)){
|
||||||
if(is_bool($data) === true){
|
$new_data = [$dataname=>$data];
|
||||||
$new_data = [$dataname=>$data];
|
$ret = json_encode($new_data);
|
||||||
$ret = json_encode(array_merge($other_settings,$new_data));
|
|
||||||
}elseif(is_int($data) === true){
|
|
||||||
$new_data = [$dataname=>(int)$data];
|
|
||||||
$ret = json_encode(array_merge($other_settings,$new_data));
|
|
||||||
}elseif(is_string($data)){
|
|
||||||
$new_data = [$dataname=>$data];
|
|
||||||
$ret = json_encode(array_merge($other_settings,$new_data));
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
$ret = false;
|
if(isset($dataname) && isset($data) && isset($jsontext)) {
|
||||||
|
if(is_bool($data) === true){
|
||||||
|
$new_data = [$dataname=>$data];
|
||||||
|
$ret = json_encode(array_merge($other_settings,$new_data));
|
||||||
|
}elseif(is_int($data) === true){
|
||||||
|
$new_data = [$dataname=>(int)$data];
|
||||||
|
$ret = json_encode(array_merge($other_settings,$new_data));
|
||||||
|
}elseif(is_string($data)){
|
||||||
|
$new_data = [$dataname=>$data];
|
||||||
|
$ret = json_encode(array_merge($other_settings,$new_data));
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$ret = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
uwuzu
|
uwuzu
|
||||||
1.4.7
|
1.4.8
|
||||||
2024/11/14
|
2024/11/14
|
||||||
daichimarukana,putonfps
|
daichimarukana,putonfps
|
||||||
@@ -1,6 +1,12 @@
|
|||||||
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
|
## リリースノートだぜぇぇぇぇぇぇい!!!!!!!
|
||||||
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
|
ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...)
|
||||||
|
|
||||||
|
## Version 1.4.8 (Funium)
|
||||||
|
2024/11/14
|
||||||
|
fix: アップデート時にフォルダの階層が更新されない問題を修正しました!!
|
||||||
|
fix: 設定画面で重大なエラーが発生する問題を修正しました!
|
||||||
|
fix: 設定の保存ができない問題を修正しました!
|
||||||
|
|
||||||
## Version 1.4.7 (Funium)
|
## Version 1.4.7 (Funium)
|
||||||
2024/11/14
|
2024/11/14
|
||||||
fix: 未使用のライブラリのライセンス情報が表示されてしまう問題を修正しました。
|
fix: 未使用のライブラリのライセンス情報が表示されてしまう問題を修正しました。
|
||||||
|
|||||||
+11
-2
@@ -235,7 +235,12 @@ if( !empty($_POST['btn_submit']) ) {
|
|||||||
|
|
||||||
$mailadds = safetext($_POST['mailadds']);
|
$mailadds = safetext($_POST['mailadds']);
|
||||||
|
|
||||||
$new_isAIBlock = safetext($_POST['isAIBlock']);
|
if( !empty($_POST['isAIBlock']) ) {
|
||||||
|
$new_isAIBlock = safetext($_POST['isAIBlock']);
|
||||||
|
}else{
|
||||||
|
$new_isAIBlock = "false";
|
||||||
|
}
|
||||||
|
|
||||||
if($new_isAIBlock === "true"){
|
if($new_isAIBlock === "true"){
|
||||||
$save_isAIBlock = true;
|
$save_isAIBlock = true;
|
||||||
}else{
|
}else{
|
||||||
@@ -243,7 +248,11 @@ if( !empty($_POST['btn_submit']) ) {
|
|||||||
}
|
}
|
||||||
$other_settings_json = val_AddOtherSettings("isAIBlock", $save_isAIBlock, $userData["other_settings"]);
|
$other_settings_json = val_AddOtherSettings("isAIBlock", $save_isAIBlock, $userData["other_settings"]);
|
||||||
|
|
||||||
$new_isAIBMW = safetext($_POST['isAIBMW']);
|
if( !empty($_POST['isAIBMW']) ) {
|
||||||
|
$new_isAIBMW = safetext($_POST['isAIBMW']);
|
||||||
|
}else{
|
||||||
|
$new_isAIBMW = "false";
|
||||||
|
}
|
||||||
if($new_isAIBMW === "true"){
|
if($new_isAIBMW === "true"){
|
||||||
$save_isAIBMW = true;
|
$save_isAIBMW = true;
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ $notiData = $notiQuery->fetch(PDO::FETCH_ASSOC);
|
|||||||
|
|
||||||
$notificationcount = $notiData['notification_count'];
|
$notificationcount = $notiData['notification_count'];
|
||||||
|
|
||||||
if( !empty($_POST['update_submit']) ) {
|
if (!empty($_POST['update_submit'])) {
|
||||||
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['extract_path'])) {
|
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['extract_path'])) {
|
||||||
$extractPath = safetext($_POST['extract_path']);
|
$extractPath = safetext($_POST['extract_path']);
|
||||||
|
|
||||||
@@ -190,25 +190,32 @@ if( !empty($_POST['update_submit']) ) {
|
|||||||
$jsonData = json_decode(file_get_contents($jsonFile), true);
|
$jsonData = json_decode(file_get_contents($jsonFile), true);
|
||||||
if (json_last_error() === JSON_ERROR_NONE) {
|
if (json_last_error() === JSON_ERROR_NONE) {
|
||||||
// 上書きファイルの処理
|
// 上書きファイルの処理
|
||||||
if(!(empty($jsonData['files']['overwrite']))){
|
if (!(empty($jsonData['files']['overwrite']))) {
|
||||||
foreach ($jsonData['files']['overwrite'] as $file) {
|
foreach ($jsonData['files']['overwrite'] as $file) {
|
||||||
$sourceFile = $extractPath . '/' . $file;
|
$sourceFile = $extractPath . '/' . $file;
|
||||||
$destinationFile = $_SERVER['DOCUMENT_ROOT'] . '/' . $file;
|
$destinationFile = $_SERVER['DOCUMENT_ROOT'] . '/' . $file;
|
||||||
|
|
||||||
if (file_exists($sourceFile)) {
|
if (file_exists($sourceFile)) {
|
||||||
|
// ディレクトリが存在しない場合は作成
|
||||||
|
$destinationDir = dirname($destinationFile);
|
||||||
|
if (!file_exists($destinationDir)) {
|
||||||
|
mkdir($destinationDir, 0775, true);
|
||||||
|
}
|
||||||
|
|
||||||
copy($sourceFile, $destinationFile);
|
copy($sourceFile, $destinationFile);
|
||||||
}else{
|
} else {
|
||||||
$error_message[] = "アップデート元のzipファイルに本来予定されていたファイルがありませんでしたが、アップデート作業は完了しました。(UPDATE_FILE_NOT_FOUND)";
|
$error_message[] = "アップデート元のzipファイルに本来予定されていたファイルがありませんでしたが、アップデート作業は完了しました。(UPDATE_FILE_NOT_FOUND)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 削除ファイルの処理
|
// 削除ファイルの処理
|
||||||
if(!(empty($jsonData['files']['delete']))){
|
if (!(empty($jsonData['files']['delete']))) {
|
||||||
foreach ($jsonData['files']['delete'] as $file) {
|
foreach ($jsonData['files']['delete'] as $file) {
|
||||||
$deleteFile = $_SERVER['DOCUMENT_ROOT'] . '/' . $file;
|
$deleteFile = $_SERVER['DOCUMENT_ROOT'] . '/' . $file;
|
||||||
if (file_exists($deleteFile)) {
|
if (file_exists($deleteFile)) {
|
||||||
unlink($deleteFile);
|
unlink($deleteFile);
|
||||||
}else{
|
} else {
|
||||||
$error_message[] = "削除予定のファイルがありませんでしたが、アップデート作業は完了しました。(DELETE_FILE_NOT_FOUND)";
|
$error_message[] = "削除予定のファイルがありませんでしたが、アップデート作業は完了しました。(DELETE_FILE_NOT_FOUND)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -229,6 +236,7 @@ if( !empty($_POST['update_submit']) ) {
|
|||||||
$error_message[] = "不正なリクエストです。(BAD_REQUEST)";
|
$error_message[] = "不正なリクエストです。(BAD_REQUEST)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
require('../logout/logout.php');
|
require('../logout/logout.php');
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
|
|||||||
+5
-17
@@ -1,26 +1,14 @@
|
|||||||
{
|
{
|
||||||
"software": "uwuzu",
|
"software": "uwuzu",
|
||||||
"version": "1.4.7",
|
"version": "1.4.8",
|
||||||
"release_date": "2024-11-14",
|
"release_date": "2024-11-14",
|
||||||
"release_notes": "このアップデートではAI学習対策を中心に様々な新機能の追加がされています!\nまた、いくつかのバグ修正が含まれています!\nアップデートを推奨します!!",
|
"release_notes": "このアップデートでは設定画面で発生する重大なバグが修正されています。\n早急なアップデートを推奨します。",
|
||||||
"notices": "アップデートの前に、データベースの構造の更新をお忘れなく!\n合わせてデータのバックアップを行うことをおすすめします!",
|
"notices": "アップデートの前にデータのバックアップを行うことをおすすめします!",
|
||||||
"files": {
|
"files": {
|
||||||
"overwrite": [
|
"overwrite": [
|
||||||
"/abi/addabi.php",
|
|
||||||
"/actor/index.php",
|
|
||||||
"/css/home.css",
|
|
||||||
"/function/function.php",
|
|
||||||
"/function/reuse.php",
|
|
||||||
"/home/index.php",
|
|
||||||
"/settings/index.php",
|
"/settings/index.php",
|
||||||
"/settings_admin/plugin_settings/aiblockwatermark_settings.php",
|
"/settings_admin/update_admin.php",
|
||||||
"/settings_admin/plugin_admin.php",
|
"/function/function.php",
|
||||||
"/settings_admin/serveradmin.php",
|
|
||||||
"/ueuse/index.php",
|
|
||||||
"/user/followers/index.php",
|
|
||||||
"/user/following/index.php",
|
|
||||||
"/user/outbox/index.php",
|
|
||||||
"/user/index.php",
|
|
||||||
"/server/uwuzuabout.txt",
|
"/server/uwuzuabout.txt",
|
||||||
"/server/uwuzuinfo.txt",
|
"/server/uwuzuinfo.txt",
|
||||||
"/server/uwuzurelease.txt"
|
"/server/uwuzurelease.txt"
|
||||||
|
|||||||
Reference in New Issue
Block a user