Archive for Октябрь 31st, 2008
Stopping XSS but allowing HTML is Hard
Original source : http://ha.ckers.org/blog/20070124/stopping-xss-but…
Testing Your Web Applications for Cross-Site Scripting Vulnerabilities
Original source : http://technet.microsoft.com/en-us/library/cc51266…
Protecting Your Cookies: HttpOnly
Original source : http://www.codinghorror.com/blog/archives/001167.h…
I Put In 5 Miles at the Office
Original source : http://www.nytimes.com/2008/09/18/health/nutrition…
HTML 5: Welcome WebForms and more
Original source : http://ajaxian.com/archives/html-5-webforms…
Lotusscript : Json formatter⦠enjoy
Original source : http://pierrekoerber.wordpress.com/2008/07/28/lotu…
PromptMailTemplateUsed – Get information about the template your mail database inherits from.
[<pre>
Sub PromptMailTemplateUsed()
‘Written by John Smart John.Smart@GreyDuck.com
‘Submitted to OpenNTF on 30 Oct 2008
‘http://www.openntf.org/projects/codebin/codebin.nsf/CodeByDate/660570790A3B977B862574F2006E3E4F
Dim db As New NotesDatabase("", "")
Dim doc As NotesDocument
Dim strMsg As String
Dim strTemplateName As String
Dim strTemplateServerName As String
Dim strTemplateFileName As String Print "Finding your email database…"
Call db.OpenMail() Print "Verifying that your email database inherits from a template…"
strTemplateName = db.DesignTemplateName
If Len(strTemplateName) = 0 Then
Error 1000, "Your mail database doesn’t inherit it’s design from a template."
End If Print "Getting information about where your mail template inherits from…"
Set doc = db.GetDocumentByID("FFFF0010") ‘icon design element. Thanks to http://www.nsftools.com/tips/NotesTips.htm#defaultelements ‘Get template information stored in the icon design element. Thanks to http://www.notesninjas.com/#TemplateFileName
strTemplateServerName = doc.GetItemValue("$TemplateServerName")(0)
strTemplateFileName = doc.GetItemValue("$TemplateFileName")(0) strMsg = |Design Template Name: | + strTemplateName + |
Server: | + strTemplateServerName + |
File Path: | + strTemplateFileName + | NOTE: File Path is based on the server’s operating system, so a File Path of "/local/notes/data/mail8.ntf" would imply that your template is probably "mail8.ntf" in the root data directory on your server.| Print ""
Messagebox strMsg, 0, "Hints on where to find your mail template."
End Sub
</pre>]
Original source : http://www.openntf.org/projects/codebin/codebin.ns…