markn86/moodle-mod_certificate — pull request #22 by arael (2013-01-24 12:50:34+00:00)
Title: Course protected images feature

Hi Mark,

I extended a bit your certificate plugin by adding the course limited upload of the images.

Here is the description:

The Course protected images allows the user to upload images
that are visible only from Course specified during the upload.

The global uploading form has been extended by adding two fields:
- Limit to one course (Checkbox)
Selecting this checkbox is going to place the upladed image inside
the $CFG->data_root/mod/certificate/image_type/course/$COURSE->shortname
folder. The images are then going to be visible only form the course
with the same shortname.

- Course Shortname
This field specifies the Course shortname to use during the upload.
Thus the file is going to be placed in the directory specified by
the input of this field. Before proceeding with the update the module
validates the input by checking the existence of the course.

This is particularly useful for the Signature images because
it avoids the signature to be visible in all other courses once they
are uploaded.

This commits also adds the Italian language support.

The attached image shows the new form. Please let me know if you have suggestions.

Regards,

Goran
![upload_image_form](https://f.cloud.github.com/assets/587072/93446/97749932-6624-11e2-8211-e228fc319aa3.jpg)