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:
+9
-5
@@ -104,7 +104,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$localFilePathhead = '../img/deficon/icon.png';
|
||||
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.png';
|
||||
$newFilename = createUniqId() . '-'.$userid.'.png';
|
||||
|
||||
// 保存先のパスを生成
|
||||
$uploadedPath = 'usericons/' . $newFilename;
|
||||
@@ -142,10 +142,10 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
|
||||
if(check_mime($uploadedFile['tmp_name']) == "image/webp"){
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.webp';
|
||||
$newFilename = createUniqId() . '-'.$userid.'.webp';
|
||||
}else{
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.' . $extension;
|
||||
$newFilename = createUniqId() . '-'.$userid.'.' . $extension;
|
||||
}
|
||||
// 保存先のパスを生成
|
||||
$uploadedPath = 'usericons/' . $newFilename;
|
||||
@@ -178,7 +178,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$localFilePathhead = '../img/defhead/head.png';
|
||||
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.png';
|
||||
$newFilename = createUniqId() . '-'.$userid.'.png';
|
||||
|
||||
// 保存先のパスを生成
|
||||
$uploadedPath = 'userheads/' . $newFilename;
|
||||
@@ -314,6 +314,9 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$enc_mailadds = "";
|
||||
}
|
||||
|
||||
$other_settings = [];
|
||||
$other_settings_json = json_encode($other_settings);
|
||||
|
||||
try {
|
||||
|
||||
$role = "official";
|
||||
@@ -325,7 +328,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$loginid = hash('sha3-512', $LoginIdBytes);
|
||||
|
||||
// SQL作成
|
||||
$stmt = $pdo->prepare("INSERT INTO account (username, userid, password, loginid, mailadds, profile, iconname, headname, role, datetime, admin, encryption_ivkey) VALUES (:username, :userid, :password, :loginid, :mailadds, :profile, :iconname, :headname, :role, :datetime, :admin ,:encryption_ivkey)");
|
||||
$stmt = $pdo->prepare("INSERT INTO account (username, userid, password, loginid, mailadds, profile, iconname, headname, role, datetime, admin, encryption_ivkey, other_settings) VALUES (:username, :userid, :password, :loginid, :mailadds, :profile, :iconname, :headname, :role, :datetime, :admin, :encryption_ivkey, :other_settings)");
|
||||
|
||||
// アイコン画像
|
||||
$stmt->bindValue(':iconname', $iconName, PDO::PARAM_STR);
|
||||
@@ -342,6 +345,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$stmt->bindParam(':profile', $profile, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':role', $role, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':datetime', $datetime, PDO::PARAM_STR);
|
||||
$stmt->bindParam(':other_settings', $other_settings_json, PDO::PARAM_STR);
|
||||
|
||||
$stmt->bindParam(':encryption_ivkey', $iv, PDO::PARAM_STR);
|
||||
|
||||
|
||||
+1
-1
@@ -167,7 +167,7 @@ $pdo = null;
|
||||
これらのデータをあなたが知っているのであれば早速セットアップを開始しましょう!<br>
|
||||
<?php }?>
|
||||
<br>
|
||||
セットアップ中にエラーに遭遇した場合はuwuzu.comを確認し、解消に向けて取り組みましょう!</p>
|
||||
セットアップ中にエラーに遭遇した場合はdocs.uwuzu.xyzを確認し、解消に向けて取り組みましょう!</p>
|
||||
|
||||
<div class="module_chk">
|
||||
<div class="p2">Already setが設定済みでNot setが未設定です。</div>
|
||||
|
||||
Reference in New Issue
Block a user