This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { expect, test } from '@playwright/test' | |
import { RecaptchaSection } from '../page-sections/recaptchaSection' | |
test('displays no errors when everything is correctly completed and form is submitted', async ({ page }, testInfo) => { | |
const recaptchaInstance = new RecaptchaSection(page, testInfo) | |
// go to the form page | |
await page.goto('/contact-us') | |
// fill out any form fields and click the submit button | |
await page.locator('#btnSubmit').click() | |
// this solves the reCAPTCHA if shown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
writeOutput( dateFormat( createDate( "2023", "01", "01" ), "YYYY-MM-DD" ) ); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ScriptFile] | |
Path=C:\ServerScripts\SendEmailOnServiceFail.vbs | |
[Options] | |
Timeout=20 | |
DisplayLogo=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Class Database | |
Dim i_dbConnection | |
Dim i_objConn | |
Dim i_objRS | |
Private Sub Class_Initialize() | |
Const MAX_TRIES = 10 | |
Dim intTries | |
On Error Resume Next |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<input type="checkbox" onclick="setMode(this.checked)"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
Set objEmail = Server.CreateObject("CDONTS.NewMail") | |
objEmail.BodyFormat = 0 'CdoBodyFormatHTML objEmail.MailFormat = 0 'CdoMailFormatMime | |
objEmail.From = strEmail | |
objEmail.To = "[email protected]" | |
objEmail.Subject = strSubject | |
objEmail.Body = ReadFile("template.htm") | |
objEmail.Send | |
Set objEmail = Nothing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
Dim arrFields | |
Dim arrValues | |
Dim clsDatabase | |
Dim numNewID | |
Dim numCategoryID,strQuestion,strAnswer,numPosterID | |
numCategoryID = "5" | |
strQuestion = "What is this?" | |
strAnswer = "This is the answer." | |
numPosterID = "10" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
strQuery = "faq_qry_sub_categories '" & numCategoryID & "', '" & secondparam & "'" | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<%@Language="VBScript"%> | |
<%Option Explicit%> | |
<%Response.Buffer = True%> | |
<% | |
On Error Resume Next | |
Dim strPath | |
strPath = CStr(Request.QueryString("file")) | |
'-- do some basic error checking for the QueryString | |
If strPath = "" Then | |
Response.Clear |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="download.aspx?file=/images/logo.gif">Download the logo image</a> |
NewerOlder