Bitcoin Forum
November 19, 2017, 11:21:47 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Two Small PHP fixes - Will Pay .5btc  (Read 1186 times)
cosmicboy
Member
**
Offline Offline

Activity: 95


View Profile
September 24, 2013, 04:51:51 AM
 #1

I recently installled the wordpress plugin wp2pgpmail.com   http://wp2pgpmail.com/
It is a pretty simple plugin and mostly consists of one php file: http://pastebin.com/01sLdyxJ

I need two small modifications:

1) The email "from" field arrives as "encrypted data". The email field itself decrypts within the message body but the "from" field of the email is encrypted so I can't just hit reply. I have to copy and paste the email from the message body. I would like the "from" field of the email to not be encrypted

2) I would like to strip out all of the form field names from emails so just the data comes in.

Will pay .25 bitcoin for each task. Do one or both of them. If you need the other files let me know but theres not much...just some javascript that does the encryption. This file does all the emailing work.
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
1511090507
Hero Member
*
Offline Offline

Posts: 1511090507

View Profile Personal Message (Offline)

Ignore
1511090507
Reply with quote  #2

1511090507
Report to moderator
ghedipunk
Newbie
*
Offline Offline

Activity: 21


View Profile
September 24, 2013, 02:41:02 PM
 #2

Both parts require access to the JS file, since the PHP never sees the unencrypted values.

Also, the "free" version on the wp2pgpmail site is not the same version that was posted to Pastebin.  Your version is 2.4.1, and the free version is 1.4.  (This probably doesn't matter, but it does server as a nice FYI, no?)

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w
DoRob
Member
**
Offline Offline

Activity: 70


View Profile
September 24, 2013, 09:52:14 PM
 #3

I can do this. Please send me a PM Wink

1DoRobFUcdcsnS4cDAPsGkqAGiWzacQ94p
ghedipunk
Newbie
*
Offline Offline

Activity: 21


View Profile
September 25, 2013, 12:30:30 AM
 #4

The best thing for cosmicboy to do in this case is to post the JS file publicly, rather than to PM people.

That way, the person who fixes it first gets the bounty, and cosmicboy doesn't have to wait around for a slow developer who he put his (misguided) faith in.

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w
Sothh
Full Member
***
Offline Offline

Activity: 238



View Profile
September 25, 2013, 03:26:29 PM
 #5

I can fix this, no problem.  I am well versed in PHP and Javascript.
cosmicboy
Member
**
Offline Offline

Activity: 95


View Profile
September 30, 2013, 04:16:13 PM
 #6

I'm going to take ghedipunk's advice and just post everything up needed to do the job.

Here is a link to the whole plugin I need modified: http://www.filedropper.com/2012-06-25wp2pgpmail-pro
This will install in any wordpress.

I need you to:

1) Remove all form names in the output email. Right now I get:

name: Joe Smith
address: 18 Nickel Lane
City-state-zip: Nowhere, NJ, 37362

I would like:
Joe Smith
18 Nickel Lane
Nowhere, NJ 37362

2) I would like the "from" field in the email to not be encrypted, but to show their email address

 I will pay .5btc for doing this (or .25btc if you can only do one). You can PM me here. Show me a working version on your site and I will pay you and you can send me the files after. I will post up here when the task has been completed. If you are actively working on it with an ETA let me know and I can post that here as well.
ndsdb
Jr. Member
*
Offline Offline

Activity: 49


View Profile
September 30, 2013, 04:29:16 PM
 #7

Hi,

I have just started.
BitVegas
Sr. Member
****
Offline Offline

Activity: 252



View Profile
September 30, 2013, 05:35:14 PM
 #8

This should solve issue #2:
http://pastebin.com/hzYkVqwE

replace wp2pgpmail-validate.js with that code.

Changes (Incase you want to know):

Line 32:
Code:
message += label + " : " + champ.value + "\r\n";
To:
message += champ.value + "\r\n";

Line 40:
Code:
message += "\r\n[IP : " + form._ip.value + "]\r\n";
To:
message += "\r\n[" + form._ip.value + "]\r\n";

Payment to: 1Pqd5pR2V53y59hhYyoRkusQrzC1W31V5g

Upon payment I can look into the other issue Smiley

cosmicboy
Member
**
Offline Offline

Activity: 95


View Profile
September 30, 2013, 05:53:47 PM
 #9

Hey bitvegas. Fix did not work for me. Did you test it?  Email is still encrypted and it had the negative effect of sending some of the other form fields as "encrypted data"

cb
cosmicboy
Member
**
Offline Offline

Activity: 95


View Profile
September 30, 2013, 10:18:52 PM
 #10

Still looking for fixes....

cb
ghedipunk
Newbie
*
Offline Offline

Activity: 21


View Profile
September 30, 2013, 11:09:39 PM
 #11

http://pastebin.com/v602h3Ha

wp2pgmail-validate.js

Lines 35 and 36 need to be edited by you, depending on how your form is set up.

These are from the "name" properties of the input tags.  An easy way to find this is, using Chrome, right click the text field, then select "Inspect element".  This will bring up a parsed source code view, and will highlight the line with the input tag.  Look for name="wp2pgpmail-asdf-1234".

The order does not matter, and if there are any other fields that need to be kept from becoming part of the encrypted message, add the names there as well.

Also, I'm not sure if you've done this already, but to have the "reply-to" in the email be set correctly so that you can just hit your Reply button, edit your form, then under Form Settings, and under Email, set the "User's Name" field to the name field in your form, and the "User's Email" field as well.  Make sure that both fields are set to "required" and that the email field has validation set to "Email".

I believe that this covers everything.  If not, please feel free to pester me again.

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w
cosmicboy
Member
**
Offline Offline

Activity: 95


View Profile
October 01, 2013, 03:45:33 AM
 #12

both problems have been solved. ghedipunk, bitcoin sent. ndsdb send your wallet address.

thanks!
ghedipunk
Newbie
*
Offline Offline

Activity: 21


View Profile
October 01, 2013, 04:07:34 AM
 #13

Payment confirmed.  It was a pleasure!

166XA8Kq3Dv4DVS6vnvzRotpmJovycWd7w
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!