Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Colored red alert in inc_header
 New Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxime
Average Member

France
521 Posts

Posted - 15 June 2014 :  17:47:45  Show Profile  Visit Maxime's Homepage  Reply with Quote
Hello,

Color red, for example, all warning messages in this code in the page inc_header.asp

code in the page inc_header.asp

'## Login Flood Control For Testing Only ## Add code below for testing ##
'## FOR TESTING ONLY ## REMOVE AFTER TESTING                           ##

if trim(Session(strCookieURL & "login")) <> "" then
    Response.Write Session(strCookieURL & "login") & " Failed login attempts.</br>"
end if

if isDate(Session(strCookieURL & "logingrace")) then
    Response.Write DateDiff("s",Session(strCookieURL & "logingrace"),time) & " seconds of grace period have expired.<br />"
end if
if isDate(Session(strCookieURL & "logindelay")) then
    if inStr(DateDiff("s",Session(strCookieURL & "logindelay"),time),"-") > 0 then
        Response.Write Replace(DateDiff("s",Session(strCookieURL & "logindelay"),time),"-","") & " seconds before you can login.<br />If you try to login before the time is up you will go back to the start.<br />You will be able to login again at " & Session(strCookieURL & "logindelay")
    else
        Response.Write  "You can login now. Your login attempts will be set to 0 when you try to login again."
    end if
end if

'## End #################################################################

Cordially,
Maxime

Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 15 June 2014 :  19:29:52  Show Profile
Not sure what you wanted, but this might be it:



'## Login Flood Control For Testing Only ## Add code below for testing ##
'## FOR TESTING ONLY ## REMOVE AFTER TESTING                           ##

if trim(Session(strCookieURL & "login")) <> "" then
    Response.Write Session(strCookieURL & "login") & " Failed login attempts.</br>"
end if

if isDate(Session(strCookieURL & "logingrace")) then
    Response.Write DateDiff("s",Session(strCookieURL & "logingrace"),time) & " seconds of grace period have expired.<br />"
end if
if isDate(Session(strCookieURL & "logindelay")) then
    if inStr(DateDiff("s",Session(strCookieURL & "logindelay"),time),"-") > 0 then
        Response.Write Replace(DateDiff("s",Session(strCookieURL & "logindelay"),time),"-","") & " seconds before you can login.<br />If you try to login before the time is up you will go back to the start.<br />You will be able to login again at " & Session(strCookieURL & "logindelay")
    else
        Response.Write  "You can login now. Your login attempts will be set to 0 when you try to login again."
    end if
end if
Go to Top of Page

Maxime
Average Member

France
521 Posts

Posted - 15 June 2014 :  20:09:09  Show Profile  Visit Maxime's Homepage
Thank you Carefree,

I disturbed you for nothing. This code on the page inc_header.asp and test code to be deleted after the test.
I am truly sorry to have bothered you for a mistake or translation has not been done by me.

See here below in red:
## Login Flood Control For Testing Only ## Add code below for testing ##
'## FOR TESTING ONLY ## REMOVE AFTER TESTING ##

Cordially,
Maxime

Taxation consists in so plucking the goose to get the most out of feathers with the least possible cries.(Jean-Baptiste Colbert)

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.46 seconds. Powered By: Snitz Forums 2000 Version 3.4.07