Menu

encrypting guestbook posts

2003-09-07
2003-09-07
  • Nobody/Anonymous

    Hi all, I have got soupermail up and running without too much hassle, had to learn editing the soupermail.pl file from in ssh using vi as the only prob I had seemed to be with carriage returns or something after editing it in dreamweaver and uploading... anyway all is great now :)

    So what I am trying to figure out now is how to use a combination of the 'guestbook' and the 'reftest' example scripts... I currently have them both working fine individually but wish to combine them so that a user can type in a message, select to encrypt it then send, the success page then leads to the guestbook which displays their encrypted message (that I can pick up using the key) this is to also send the email as the guestbook usually does with the encrypted message... I have managed to get it to send a variable for the subject line to the guestbook and the email also, just not sure how to combine the configuration lines from both scripts into one?

    I am on a server with php and mysql if that helps with any ideas...

    any advice much appreciated :)

    Jon.

     
    • Nobody/Anonymous

      You can't combine the configuration lines, however you can rewrite the config files so that they do the same thing in one file.

       
    • jon kane

      jon kane - 2003-09-07

      cheers, (thought I'd register now) I've managed to get the guestbook to display the pgp encrypted text on the guestbook page but it is the whole template table as well instead of just the text from the form encrypted within the template... getting there, but I'm a novice so it's just mostly guesswork, but hey I suppose we learn from trial and error :) my configuration file is currently as below...

      ______________________________

      # What file to save to
      fileto: /counters/guestbook.php

      # make sure its viewable from the web
      filereadable: yes

      # make sure new entries appear at the top of the guestbook
      fileattop: yes

      # what to use as a file header
      headings: guesthead.txt

      # what to use as a file footer
      footings: guestfoot.txt

      # what template to use for the guestbook file
      filetemplate: guesttpl.txt

      # What template to use on success
      success: guestbook.txt

      # subject line to appear in emails and journal entries
      subject : "$subject"

      # Removes the footer info in emails i.e. browser and ip etc
      nomailfooter : yes

      # if encryption has been selected
      if: encrypt eq "yes" then filepgpuserid: me@myemail.com

      if: pgpversion eq "gpg" then pgpversion: gpg

      # If a confirmation email is needed, make sure they have put in an email
      # and the appropriate templates are used
      if : (confirm) then required: Email
      if : (confirm) then mailto: "$form_Email"
      if : (confirm) then mailtemplate: guestmail.txt
      Subject : "$form_subject"

      # see if old entries are to be cleaned out
      if : (clearold) then filemaxbytes: 1

       
    • jon kane

      jon kane - 2003-09-07

      the template file used to format the posts, specified in the configuration file above as filetemplate: guesttpl.txt is as below

      I guess I need to have the encrypted 'message' text appear where <output name="message" type="html" newline="html"> is....

      any advice?... hugely appreciate it

      ____________________________________

      <a name="<output name="http_ref">"></a>
      <table border="0" bgcolor="#000066" cellpadding="1" cellspacing="0" width="75%">
      <tr valign="top">
      <td>
        <table border="0" cellpadding="2" cellspacing="0" width="100%">
        <tr valign="top">
        <td width="100%" bgcolor="#000066"><font color="#ffffff">
        Subject: <output name="subject">&nbsp;  :: &nbsp; by <b><output name="Email" pre='<a href="mailto:' post='">' type="html"><output name="name" type="html"><output name="Email" sub="</a>"></b> at
        <output name="http_time"> on <output name="http_date"></font>
        </td>
        </tr>
        <tr valign="top">
        <td width="100%" bgcolor="#ffffff">
        <br>
        <output name="message" type="html" newline="html">
        <br>&nbsp;
        </td>
        </tr>
        </table>

      </td>
      </tr>
      </table>

      <br>

       

Log in to post a comment.