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