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: Check Edit permission function  (Read 3922 times)

0 Members and 1 Guest are viewing this topic.

Cisi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Check Edit permission function
« on: April 06, 2005, 05:32:18 pm »

Because of problems with permission of edit folder and view that in some cases they rechange automaticaly , would be nice to add a function that check if they are 777 or 775 . If yes upload continue , if not they are changed automatically and then upload continue .
Is it possible .
Thanx a lot for your support .. anyway .
Regards.
Cisi
Logged

Nibbler

  • Guest
Re: Check Edit permission function
« Reply #1 on: April 06, 2005, 05:35:29 pm »

Do you still have this problem with 1.4 ?
Logged

Cisi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Check Edit permission function
« Reply #2 on: April 06, 2005, 06:08:27 pm »

Do you still have this problem with 1.4 ?

1.4 ?? in download section i see the latest version is 1.3.2 .. the one that i've  :o ???
I've also put on server picmgmt.inc.php v 1.9 , like suggested some post above ..
Please tell me if there is a new version avaible .
Thanx in advance .
Cisi
Logged

Nibbler

  • Guest
Re: Check Edit permission function
« Reply #3 on: April 06, 2005, 06:12:11 pm »

Your profile information says Coppermine version: cpg1.4.x so I assumed that is what you are using.
Logged

Cisi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Check Edit permission function
« Reply #4 on: April 06, 2005, 07:14:08 pm »

Sorry , i was wrong . I have 1.3.2 ... dont know where to keep 1.4 .. can u help me ? thanx .
Logged

Cisi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Check Edit permission function
« Reply #5 on: April 07, 2005, 04:31:46 pm »

Ok , i've seen that 1.4.x version of coppermine is alpha release .
So .. anyone can tell me if there is a way to check folder permission and in case change it ?
Thanx again .
Logged

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: Check Edit permission function
« Reply #6 on: April 08, 2005, 06:38:20 am »

You can check and change folder permissions with most FTP programs.
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.

Cisi

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 14
Re: Check Edit permission function
« Reply #7 on: April 08, 2005, 11:25:50 am »

You can check and change folder permissions with most FTP programs.

Yes , sure .. but i can't stay all time online for checking  ;D .
So , i solved (hope) .
I made a new php page "chmod.php" :

Code: [Select]
<?php
$foldercheck = dirname($_SERVER['SCRIPT_FILENAME'])."/albums/edit";
chmod("$foldercheck", 0755);  
?>

And in upload.php

After // Call basic functions, etc.
Code: [Select]
require('chmod.php');
I hope that this solution solve lots of request for automatic chmod check and change .
On my host , i've tested , it runs well .

Thanx anb bye .
Cisi
Logged

OmegaGOD

  • Supporter
  • Coppermine frequent poster
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 346
  • I approve.
Re: Check Edit permission function
« Reply #8 on: April 09, 2005, 06:01:40 pm »

Yes, that is definately a work around; however, your folders should not be changing permissions automatically. Either your FTP program is changing them without you specifiying it to do so (very bad) or your web-server is changing the permissions (also very bad). CPG does not change permissions of the 'album' or 'edit' directories at all. This is why upon installation you are required to change them. I run a secured web-server with approx 30 CPG. I have encountered this permission problem twice with my clients and both times there FTP software was responsible for it.

Hope this helps,

--OmegaGOD
Logged
Please do not PM me with support questions. Please read the manual and then if posting questions please place them in the proper sub-boards.
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 15 queries.