This commit is contained in:
Baoshuo Ren 2022-11-16 16:42:02 +08:00
parent 6d6a058b02
commit 2a025e9ec9
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -59,7 +59,7 @@ if ($_POST['image_upload_file_submit'] == 'submit') {
list($width, $height, $type) = $size; list($width, $height, $type) = $size;
$hash = hash_file("sha256", $_FILES['image_upload_file']['tmp_name']) . Auth::id(); $hash = hash_file("sha256", $_FILES['image_upload_file']['tmp_name']) . Auth::id();
$scale = ceil($height / 600.0); $scale = ceil($width / 600.0);
$watermark_text = UOJConfig::$data['profile']['oj-name-short']; $watermark_text = UOJConfig::$data['profile']['oj-name-short'];
if (isSuperUser(Auth::user()) && $_POST['watermark'] == 'no_watermark') { if (isSuperUser(Auth::user()) && $_POST['watermark'] == 'no_watermark') {