Jan
14
2006
Configuration
Posted by admin under
Old ASP applications
Open up inctopsite.asp in Notepad.
In the function
IncTopsite_GetDatabaseConn()
the strDSN = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ="& Server.MapPath("topsite2.mdb") call might need to be changed ( depends on which database you are using and where it is placed )
After that there are some global variables
Const g_strTitle = "ASPCode.net Topsite"
Const g_strTitle2 = "TopsiteMentor Demo"
Const g_strPath = "http://www.yourserver.com/topsitementor/"
Const g_strButtonImagePath = "http://www.yourserver.com/topsitementor/topsite.gif"
Const g_nSitesPerPage = 10
Const g_AdminUID = "admin"
Const g_AdminPassword = "test"
Const g_ClickThruPage = True
Const g_MailServer = "mail.yourserver.com"
Const g_OutgoingMailFrom = "webmaster@aspcode.net"
Const g_strSiteBgColor1 = "#ffff99"
Const g_strSiteBgColor2 = "#ffffcc"
Const g_strBodyColor = "#FF9900"
'This variable could be set to
' DAY for hits/day ranking or
' TOTAL for total hits ranking
Const g_strRankOption = "TOTAL"
Const g_fUseGateway = False
Most of them are self-explained.
The
g_fUseGateway
variable however might need some explaining.
If set to true then the user must click twice to vote - this is to eliminate fraud ( the case when someone uses a automatic popup window ).