$allowTypes = array('jpg', 'png', 'jpeg', 'gif', 'webp');
		if (in_array($fileType, $allowTypes)) {
			// Upload file to server 
			if (move_uploaded_file($_FILES["fav"]["tmp_name"], $targetFilePath))
				;
			chmod($targetFilePath, 0777);
			copy($targetFilePath, $targetFilePath1); {
				// Insert image file name into database 
				if ($cek_setting[0] == 0) {
					$ins = mysqli_query($this->db["artikel"], "INSERT INTO `setting`(fav) Values('$fav')");
				} else {
					$ins = mysqli_query($this->db["artikel"], "update `setting` set fav='$fav'");
				}
				if ($ins) {