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: Moving a plugin file to cpg root?  (Read 3932 times)

0 Members and 1 Guest are viewing this topic.

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Moving a plugin file to cpg root?
« on: September 29, 2007, 08:54:14 pm »

Hey,

My plugin needs a file to be in the root directory of coppermine, the plugin manager uploads the files to .../plugins/plugin_name can you specify where to upload the file to in the codebase, or will i need to use a php copy() in the codebase?

Code: [Select]
$file = 'plugin.php';
$newfile = '' . $CONFIG['site_url'] .'/plugin.php';

if (!copy($file, $newfile)) {
    echo "Plugin error";
}

Thanks!
« Last Edit: October 02, 2007, 09:04:46 am by GauGau »
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Moving a plugin file to cpg root?
« Reply #1 on: September 29, 2007, 10:27:24 pm »

It would be better to copy it manually by user (You can describe it under installation doc of plugin as well)
using file system function of PHP could create permission problem under badly configured servers
Logged
‍I don't answer to PM with support question
Please post your issue to related board

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Moving a plugin file to cpg root?
« Reply #2 on: September 29, 2007, 10:34:23 pm »

ok, thanks, while im at it is there a restrictions to urls accessing profile.php?  the page wont load.

Thanks for your help.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Moving a plugin file to cpg root?
« Reply #3 on: September 30, 2007, 01:09:14 am »

Almost finished plugin  ;D. However i need a hand with the plugin syntax, i have a section of code that needs to be inserted into changethumb.php how is this done?

Also, for a language file do you do this?
add this to the lang file

$jsg_plugin = 'Text here';

then on a file you would say:

$jsg_plugin ="Text here" to call up the text.

example:
Code: [Select]
<a href="http://www.google.com"> $jsg_plugin <a />
Correct?

Thanks,
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums

just_some_guy

  • Supporter
  • Coppermine addict
  • ****
  • Offline Offline
  • Posts: 539
  • I am currently on holiday, back in a few weeks. :D
Re: Moving a plugin file to cpg root?
« Reply #4 on: October 02, 2007, 08:39:34 am »

Solved, thanks.
Logged
Tambien, Hablo Espaņol      PHP - Achieve Anything
"The Internet is becoming the town square for the global village of tomorrow. " - Bill Gates
Windows 7 Forums
Pages: [1]   Go Up
 

Page created in 0.034 seconds with 19 queries.