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:
@@ -187,7 +187,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$localFilePathhead = 'img/deficon/icon.png';
|
||||
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.png';
|
||||
$newFilename = createUniqId() . '-'.$userid.'.png';
|
||||
|
||||
// 保存先のパスを生成
|
||||
$uploadedPath = 'usericons/' . $newFilename;
|
||||
@@ -226,10 +226,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;
|
||||
@@ -262,7 +262,7 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$localFilePathhead = 'img/defhead/head.png';
|
||||
|
||||
// 新しいファイル名を生成(uniqid + 拡張子)
|
||||
$newFilename = uniqid() . '-'.$userid.'.png';
|
||||
$newFilename = createUniqId() . '-'.$userid.'.png';
|
||||
|
||||
// 保存先のパスを生成
|
||||
$uploadedPath = 'userheads/' . $newFilename;
|
||||
@@ -403,6 +403,8 @@ if( !empty($_POST['btn_submit']) ) {
|
||||
$enc_mailadds = "";
|
||||
}
|
||||
|
||||
$other_settings = [];
|
||||
$other_settings_json = json_encode($other_settings);
|
||||
|
||||
try {
|
||||
|
||||
@@ -415,7 +417,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);
|
||||
@@ -432,6 +434,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user