1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-05 03:24:41 +00:00

uwuzu v1.4.7 Funium

This commit is contained in:
Daichimarukana
2024-11-14 20:12:04 +09:00
parent 83d599aa25
commit 6cdad111f0
20 changed files with 318 additions and 90 deletions
+12 -2
View File
@@ -213,7 +213,7 @@ if (!(empty($pdo))) {
//-----------------URLから取得----------------
if(isset($_GET['text'])) {
$ueuse = safetext($_GET['text']);
$ueuse = safetext(urldecode($_GET['text']));
}elseif(isset($_COOKIE['ueuse'])) {
$ueuse = safetext($_COOKIE['ueuse']);
}
@@ -221,6 +221,16 @@ if(isset($_GET['text'])) {
//-------------------------------------------
if( !empty($_POST['btn_submit']) ) {
$settingsJsonQuery = $pdo->prepare("SELECT userid, other_settings FROM account WHERE userid = :userid");
$settingsJsonQuery->bindValue(':userid', $userid);
$settingsJsonQuery->execute();
$settingsJson = $settingsJsonQuery->fetch();
if(!(empty($settingsJson["other_settings"]))){
$isAIBWM = val_OtherSettings("isAIBlockWaterMark", $settingsJson["other_settings"]);
}else{
$isAIBWM = false;
}
$ueuse = safetext($_POST['ueuse']);
if(isset($_POST['nsfw_chk'])){
@@ -237,7 +247,7 @@ if( !empty($_POST['btn_submit']) ) {
$rpUniqid = $ueuseid;
$ruUniqid = "";
$ueuse_result = send_ueuse($userid,$rpUniqid,$ruUniqid,$ueuse,$photo1,$photo2,$photo3,$photo4,$video1,$nsfw_chk);
$ueuse_result = send_ueuse($userid,$rpUniqid,$ruUniqid,$ueuse,$photo1,$photo2,$photo3,$photo4,$video1,$nsfw_chk,$isAIBWM);
if($ueuse_result == null){
//一時保存していたユーズ内容の削除