Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Picture Download Link  (Read 3947 times)

0 Members and 1 Guest are viewing this topic.

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 1578
Picture Download Link
« on: October 20, 2018, 05:30:45 pm »

This is a CPG1.5.x version plugin that has been updated for CGP1.6.x
Original thread: http://forum.coppermine-gallery.net/index.php/topic,65849.0.html
Logged

zuckelpart

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Picture Download Link
« Reply #1 on: December 09, 2019, 03:16:43 am »

I made a translation for Estonian users (attached).
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Picture Download Link
« Reply #2 on: August 08, 2020, 12:17:56 am »

1) In debug \plugins\pic_download_link\picture.php from line 69 to 72:
I assume mysql_ should be cpg_db_
Anyway the debug notice is gone.

2. mysqli_close(); I don't know what coppermine uses for it or is fine this way.

3. \plugins\pic_download_link\configuration.php (not text on plugin page, plugin configuration or displayimage.php)

Code: [Select]
    Notice line 18: Undefined variable: pic_link
    Notice line 19: Undefined variable: pic_link
    Notice line 19: Undefined variable: pic_link
    Notice line 20: Undefined variable: pic_link
    Notice line 21: Undefined variable: pic_link
    Notice line 29: Undefined variable: pic_link

Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Picture Download Link
« Reply #3 on: August 12, 2020, 04:22:41 am »

FIXED

1) init.inc.php on line 18

Code: [Select]
require_once
should be replaced with

Code: [Select]
require
2) admin.php line 167

Code: [Select]
$pic_link['link_whichone']
should be replaced with

Code: [Select]
$pic_link['whichone'][code]

3) I also belive in init.inc.php

[code]
if (file_exists("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php")) {
    require_once ("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php");
}

should be

Code: [Select]
if ($CONFIG['lang'] != 'english' && file_exists("./plugins/pic_download_link/lang/{$CONFIG['lang']}.php")) {
    require "./plugins/pic_download_link/lang/{$CONFIG['lang']}.php";
}

Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Picture Download Link
« Reply #4 on: August 12, 2020, 04:26:48 am »

I don't know if is important but in some files like admin.php

Code: [Select]
require_once('plugins/pic_download_link/init.inc.php');

is without the ./

Code: [Select]
require_once('./plugins/pic_download_link/init.inc.php');
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Picture Download Link
« Reply #5 on: August 12, 2020, 05:41:33 am »

This plugin won't take the german language on any page.
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Picture Download Link
« Reply #6 on: August 12, 2020, 06:30:19 am »

This plugin won't take the german language on any page.

Ctrl F5 did not cleared chache, but firefox restart did.
Logged
Pages: [1]   Go Up
 

Page created in 0.027 seconds with 21 queries.