fix: Hapus Google Login, perbaiki upload, update README, dan ignore srs.txt

This commit is contained in:
2026-06-12 02:33:25 +07:00
parent 10b62c6560
commit 2f4a375b9d
4 changed files with 48 additions and 92 deletions
+4 -1
View File
@@ -44,9 +44,12 @@ function uploadFoto($file_input_name) {
$file_extension = pathinfo($file_name, PATHINFO_EXTENSION);
$new_file_name = uniqid($file_input_name . '_', true) . '.' . $file_extension;
$upload_file_dir = '../uploads/';
if (!is_dir($upload_file_dir)) {
@mkdir($upload_file_dir, 0777, true);
}
$dest_path = $upload_file_dir . $new_file_name;
if (move_uploaded_file($file_tmp_path, $dest_path)) {
if (@move_uploaded_file($file_tmp_path, $dest_path)) {
return $new_file_name;
}
}