PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   General Discussion (http://www.photopost.com/forum/general-discussion/)
-   -   Do not delete photos from source directory not working (http://www.photopost.com/forum/general-discussion/135756-do-not-delete-photos-source-directory-not-working.html)

skidpics March 8th, 2008 08:56 AM

Do not delete photos from source directory not working
 
The bulk upload function of "Do not delete photos from source directory" is not working correctly, my images are still being deleted.

What do you need so we can look into this?

Chuck S March 8th, 2008 09:36 AM

Try in uploadphoto.php adding in bold as noted.

Code:

Content visible to verified customers only.
then twice this

Code:

Content visible to verified customers only.

skidpics March 8th, 2008 10:25 AM

didn't fix the problem.. lets see if our code matches..
Quote:

'keywords' => STRING, 'mature' => STRING,donotdelete => STRING) );

forward( "bulkupload.php?ppaction=addphotos&do=preview&donotdelete=$donotdelete&photopath=$uploaduser&upuser=$upuser&notify=$notify&defcat=$category&numprocess=$numprocess&deftitle=$deftitle&defdesc=$defdesc&keywords=$keywords&updir=$updir&processall=$processall&skipwater=true&dthumbs=$dthumbs&mature=$mature", $Globals['pp_lang']['prepare'] );

forward( "bulkupload.php?ppaction=addphotos&do=preview&donotdelete=$donotdelete&photopath=$uploaduser&upuser=$upuser&notify=$notify&defcat=$category&numprocess=$numprocess&deftitle=$deftitle&defdesc=$defdesc&keywords=$keywords&updir=$updir&processall=$processall&dthumbs=$dthumbs&mature=$mature", $Globals['pp_lang']['prepare'] );
sorry for about it being so long. cannot find the function to put it into a table..

Chuck S March 8th, 2008 10:40 AM

the bulkupload forwards there are 4 of them did you get them all

skidpics March 8th, 2008 11:21 AM

Replaced the 4 lines as instructed, no luck. Successfully upload the uploadphoto.php file twice to make sure it was there.

Chuck S March 8th, 2008 12:02 PM

I will have to play with it some but I see no reason why it would not work. As long as you pass donotdelete to the bulkupload script there is this code in there which should work fine.

Code:

Content visible to verified customers only.

skidpics March 8th, 2008 12:12 PM

Quote:

Originally Posted by Chuck S (Post 1219205)
I will have to play with it some but I see no reason why it would not work. As long as you pass donotdelete to the bulkupload script there is this code in there which should work fine.

Code:

Content visible to verified customers only.

I am review that code. I am not sure 100% how it works, but it seems like the first entry and the 'else' entry is performing the same function?

Chuck S March 8th, 2008 12:49 PM

what it says is if the file exists and donotdelete is not equal to donotdelete then delete the file

What I am saying is if we pass donotdelete to bulkupload then it should not delete the images

Like I said I will test it out and see if I see anything

skidpics March 12th, 2008 11:26 PM

any luck yet?

Chuck S March 13th, 2008 09:13 AM

Not yet there are many delete functions within the file. I need to debug each one. Try at line 241 make this line has the code in bold and try

Code:

Content visible to verified customers only.

skidpics March 14th, 2008 12:40 PM

that didn't work.. just tried it..

Chuck S March 14th, 2008 12:46 PM

You did that to every line in that file BULKUPLOAD.PHP?

skidpics March 14th, 2008 12:54 PM

Quote:

Originally Posted by Chuck S (Post 1219638)
You did that to every line in that file BULKUPLOAD.PHP?

you stated 241, either way, replaced $donotdelete != "donotdelete"

in the corrsponding lines with $donotdelete == "donotdelete"


line 241, 425, 433

skidpics March 14th, 2008 12:59 PM

just tried that and I just got a blank bulkupload screen once submitting bulk upload - revert back to original for now.

skidpics March 14th, 2008 01:01 PM

is it supposed to be if ( file_exists( $filein ) && $donotdelete == "donotdelete" )

or if ( file_exists( $filein ) && $donotdelete !== "donotdelete" )

notice the ! from a previous post here.

Chuck S March 14th, 2008 01:38 PM

Yes

if ( file_exists( $filein ) && $donotdelete != "donotdelete" )

that would be right

Chuck S March 14th, 2008 01:59 PM

Please just pm me ftp account info and I will upload the changed files as I applied the changes I noted and things work from what i see.


All times are GMT -5. The time now is 02:24 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97