This is the cpg1.5.x port of the fullsize_access plugin by Klaus Schwarzburg (http://forum.coppermine-gallery.net/index.php?action=profile;u=8075). The port has been created as a freelance job (link (http://forum.coppermine-gallery.net/index.php/topic,74851.0.html)), so there's just limited support.

this plugin controls access for downloading fullsize images and adds several features:

- restrict access to fullsize pics to registered users- adds a download link to the image information section- adds a fullsize download history (datetime,username,ip) table and a statistics page - sending email to admin and/or customer for each download- zip download link to download all pics in an album and in favorites- clicking on medium sized pic to show fullsize pic is disabled- Secure image files on the file system level via chmod

Most settings can be controlled by a configuration page added to the admin menu. Plugin language is english only, but some settings are in german. This may be improved in a future version... At the moment all registered users are allowed to download fullsize images. You can change this behavior by editing the file fullsize_check.php.

The zip download feature bypasses cpg's build-in favorites zip download. I recommend to switch off the cpg favorites-zip download in the cpg-config page if you want to use this plugin.

The optional file security feature will prevent users to download pics by entering the pics url directly and it works like this:- if a fullsize pic is requested, the plugin first changes the file attributes from 660 (safe) to 666 (unsafe) and then sends the file to the user. After the download the attribute is set back to 660. - The fullsize access conig panel has buttons to secure and unsecure all files- The file attribute is changed via ftp

If you want to use this feature you have to edit the file 'fullsize_secure.php'. At the beginning of the file there is a section where you must specify your ftp login and the path for the ftp client to the coppermine root. New pics that are added to the cpg gallery are not automatically secured. You must use the secure button in the plugins config page. So this feature is only useful for galleries were only 1 or a few people are uploading pics. I'm not an unix/apache expert and the security feature is open for discussion. On my present webserver the file attribute change from 660 to 666 is not needed to download the file via the script. However this was different on my old system.... Any suggestions are welcome!

The album ZIP download feature has been disabled, as it doesn't work (missing library).

Interesting idea changing perms that way. For users with root access it might be easier to have a specific group (chown) setup on the server so images in the albums folder could only be called up by a script belonging to that group and not a general user guessing the URL. The problem as ever with this kind of script it how an individuals server is setup.

I really like the plugin but I have a little issue.It is running on CPG 1.5.20 with no ability to use the php internal mail sending.I set up my mail-providers details in the general cpg setup und all works well.

A few more questions:a) Is it possible to add more text to the mail a user gets after downloading an image?b) Is there a way to insert the Album-Name and the user name as a variable?c) For the access rights of the full sized image: The "secured" images are getting the rights 660. In the settings of coppermine there is an option to set the default access rights of files. When setting 660 there, does this save the step from securing images via the plug in?

c) For the access rights of the full sized image: The "secured" images are getting the rights 660. In the settings of coppermine there is an option to set the default access rights of files. When setting 660 there, does this save the step from securing images via the plug in?

If Coppermine has sufficient permissions to change that, I guess you won't be able to access any generated files (thumbnails, intermediate-sized versions). I haven't checked that nor looked at the code. I suggest to test this on your gallery.

Had any chance to look at this already. I tried to find the "hooks" for the info part, to try to change it to current pic data, but with no luck.

Basicly what I want to do as said, is to have this button displayed in top/bottom of the intermediate pic, in spite of the file_info section.

At ehe moment, when I grant certain users VIP status (access to the bigger photo), they basicly have access to all albums with bigger photos. I want to be able to grant access for certain users for bigger pictures just for certain albums. Surely there must be a easier way to do this.

If I look at the script changes, it's actually very simple. I'm getting stupid with php.

Thanx in anyway.

By the way, in the plugins admin section where you can view the downloads ( "show downloads history" ) and then you get a section "downloaded fullsize images sorted by download date ( with user date filename album ip-address), will it be complecated to add the actual category as well ?

Just a small note: if the album resides in the root category (* no category*) or in the user galleries, the script won't display a category name. This would need an additional check, which I haven't added, as I haven't found such albums in your gallery at first glance.