SnippetMaster Support Forums
Return to main website
 
August 25, 2005, 12:30:42 PM
* Show unread posts since last visit.
* Show new replies to your posts.
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 25, 2005, 12:30:42 PM

Login with username, password and session length
Search:  
Advanced search
* Home Help Search Login Register
SnippetMaster Support Forums  |  General  |  Bug Reports & Fixes  |  Topic: code replacement « previous next »
Pages: [1] Print
Author Topic: code replacement  (Read 402 times)
yokozuna

Posts: 1


WWW
[-] code replacement
« on: December 04, 2004, 11:25:16 AM »

Sorry for my crappy english....

I made a site with snippetmaster lite in it.
Now my client is changing the content and weird things happen..
Sometimes. the </snippet>  tag dissapears.. and now this..

</snippet></td>
         <td width="20">  </td>
       </tr>
     </table>
     
   </td>
   <td>  </td>
 </tr>
</table>
</body>
</html>
</font></span></font></table></table>

What has happened here???
It has written lines out of the snippet tags?
Logged
Dwight

Posts: 36



WWW
[-] Re: code replacement
« Reply #1 on: December 04, 2004, 01:53:36 PM »

Quote from: yokozuna
Sorry for my crappy english....

I made a site with snippetmaster lite in it.
Now my client is changing the content and weird things happen..
Sometimes. the </snippet>  tag dissapears.. and now this..

</snippet></td>
          <td width="20">  </td>
        </tr>
      </table>
     
    </td>
    <td>  </td>
  </tr>
</table>
</body>
</html>
</font></span></font></table></table>

What has happened here???
It has written lines out of the snippet tags?


Probably your client is trying to cut and paste from Word or some other program. You can get strange results when that happens.  Here is the instructions I send to my clients. I hope it is helpful..
=============
Instructions for using the SnippetMaster Client Editor Feature

Your web site has been upgraded to include one or more areas that are directly editable by you. It is important to read and understand these instructions before you try to edit your web site. If you have any questions, please call Rainbow Flair Web Design for assistance.

1.   Your will need a connection to the Internet and Internet Explorer. The editor will not work with Netscape or other browsers.

2.   Logon to this address. http://www.YourDomainName.com/edits/

3.   Your Username is: xxxxx
Your Password is: xxxxx
Please keep this Username and Password information safe. Anyone with this information can change your web site from anywhere in the world!

4.   Towards the right of the screen is a small drop down box labeled, "Select a File". Use the drop down arrow and you will see a list with one or more files. The files will have descriptive names such as Body.txt, PriceList.txt, etc.

5.   Select one of the files and click the Open button. The file will open in the Edit Window.

6.   You may re-type the text, change fonts, font size, or font colors. You may add attributes such as bolding, italics, etc. Do NOT Cut and Paste from other programs! (See Below)
When you are satisfied with your changes, click the Save button at the bottom of the screen. (In this version, the Preview button doesn't work, but you can open a new browser window and see your changes on your web site.) If you do not see your changes, click the 'Refresh' or 'Reload' button on your browser.

7.   After saving, you can select another file to edit, or log out.

Cutting and Pasting.

Because the editor has full feature formatting of its own, pasting content from another program that adds formatting can have unexpected and unwanted results. This would include programs such as word processors, spreadsheets, web browsers and any others that add formatting to the text. The ONLY safe way to Cut and Paste text is:

1.   Cut and paste text from Word, Web browser, etc.
2.   Paste the text into Notepad or another text only editor. (This will remove all formatting from the text)
3.   Copy from Notepad, and paste into the editor window.
4.   Add your desired formatting to the text from within the editor window.
===============
Logged

==========
Dwight Jenkins
==========
imex_int1

Posts: 2


[-] Security Issues
« Reply #2 on: December 05, 2004, 01:55:57 AM »

Hi Dwight,

you seems to be a knowladgeble user.

Can you say how you handled the security issues.
It seems that my html files must be with 777 autorization.
This is risky according to my hosting company.

Regrads
Imex
Logged
Dwight

Posts: 36



WWW
[-] Re: Security Issues
« Reply #3 on: December 05, 2004, 10:33:49 AM »

Quote from: imex_int1
Hi Dwight,

you seems to be a knowladgeble user.

Can you say how you handled the security issues.
It seems that my html files must be with 777 autorization.
This is risky according to my hosting company.

Regrads
Imex


Yes, I felt the same way. Probably setting your files to 666 will work just as well, although that still leaves your files open for hackers. Here's what I did. Check out the FAQ's about multiple snippets in one file... http://www.snippetmaster.com/install.html#multiple
 
Using this method has several advantages...  

1. by using the snippets inside text files, ONLY the text files need be chmod to 666, not your html. I think this is an acceptable risk.

2. You can have more than one snippet per page, something I needed anyway.

3. If you should ever make a change to your html file and upload it, you won't have to worry about changing your clients changes.. they will be held in the text file.

4. If the client messes up the text file, you won't have to fix the html, just the text file.

The only disadvantage is your page needs to be a .shtml page (or .php) and your server needs to suppport SSI (Server Side Includes), or PHP... But most servers do as far as I've seen.

Hope that helps.

Dwight

P.S.  If you use the text file method, you should name the text files something descriptive for your client's benefit.. MainHeading.txt, Body.txt, etc....
Logged

==========
Dwight Jenkins
==========
imex_int1

Posts: 2


[-] Hi Dwight
« Reply #4 on: December 06, 2004, 06:52:17 AM »

Thanks for the answers.

In general i see that this system is not 100% secure.
Is there any other way to make sure that hakers
will not be able to edit my files.
Logged
Dwight

Posts: 36



WWW
[-] Re: Hi Dwight
« Reply #5 on: December 06, 2004, 09:44:46 AM »

Quote from: imex_int1
Thanks for the answers.

In general i see that this system is not 100% secure.
Is there any other way to make sure that hakers
will not be able to edit my files.


Well, as far as I can see, the only files that are at risk are the text files, and then, I would think a hacker would need to know about them, and have some access to get to them, and some reason. I worry more about my client than hackers. From what I've seen, no matter how much you tell people to keep passwords safe, some will still write it down, or tell everyone what it is.

Frankly, I would prefer to not give my client ANY access, but if they really need it, then SnippetMaster seems the best I've found. And I've looked at a LOT of editors.

Dwight
Logged

==========
Dwight Jenkins
==========
admin
Forum Administrator
*
Posts: 887

SnippetMaster Author


WWW
[-] Re: Hi Dwight
« Reply #6 on: December 06, 2004, 12:43:50 PM »

Quote from: imex_int1
Thanks for the answers.

In general i see that this system is not 100% secure.
Is there any other way to make sure that hakers
will not be able to edit my files.


Hi everyone!

Dwight, thanks for your excellent posts.  Smile

imex_int1, the text files that need to be editable for your clients to modify them are technically "insecure", however Dwight is correct.  An attacker would need to have access to the web server, ftp, or some other method of actually writing to the file.

The files need to be "world writable", because it is actually the web server itself that needs to write to the file - the snippetmaster software.  (Since the snippetmaster software runs as the web server user.)

If you are using a web server that runs PHP as YOU, instead of the web server user, then you wouldn't need to give such high permissions.  However, this is a non-standard way to run PHP, because it creates a number of other security issues, etc...

Anyway, I am very confident that giving write permissions to your files will not be harmful, UNLESS your web server is hacked somehow, etc..  But if you are using a reputable web host, then the possibility of this should be minimal.

Lastly, be sure to keep backups of all your files...  Wink

Cheers!
Logged
Pages: [1] Print 
SnippetMaster Support Forums  |  General  |  Bug Reports & Fixes  |  Topic: code replacement « previous next »
Jump to:  

Powered by MySQL Powered by PHP SnippetMaster Support Forums | Powered by SMF 1.0.3.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!