Support > cpg1.5 plugin contributions

Download complete album als ZIP

<< < (3/33) > >>

Finswimmer:
Now it navigates to root_dir/fotos/index.php?file=albumdownload/albumZip.php?aid=2
and shows the normal index.php

Starting the file directly via Firefox leads to:
Notice: Undefined variable: superCage in /var/www/vhosts/default/htdocs/fotos/plugins/albumdownload/albumZip.php on line 31 Notice: Trying to get property of non-object in /var/www/vhosts/default/htdocs/fotos/plugins/albumdownload/albumZip.php on line 31 Fatal error: Call to a member function getInt() on a non-object in /var/www/vhosts/default/htdocs/fotos/plugins/albumdownload/albumZip.php on line 31

I guess this is fine as init.inc.php is not "executed", but why does the redirect via index.php?... does not work?

Thanks!

Αndré:

--- Code: ---root_dir/fotos/index.php?file=albumdownload/albumZip.php?aid=2
--- End code ---
should be something like

--- Code: ---root_dir/fotos/index.php?file=albumdownload/zip&aid=2
--- End code ---

Attaching the current plugin files might help, so I can have a look at the code and test, too.

Finswimmer:
This leads to a long list with the files, ended by:
Fatal error: Class 'zip_file' not found in /var/www/vhosts/default/htdocs/fotos/plugins/albumdownload/albumZip.php on line 42

Function zip_file is in include/archive.php which should be included...

BTW: Normally, it is foo.php?firstParamater=bar&secondParamater=bar
Is this coppermine-specific?

http://tobiaskaminsky.de/albumdownload.zip

Αndré:
In albumZip.php, find

--- Code: ---include('../../include/archive.php');
--- End code ---
and replace with

--- Code: ---require('include/archive.php');
--- End code ---

Finswimmer:
Great!
Now it works.

Thank you.

I will post the final version of this plugin this afternoon.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version