<%
'-----------------------------------------------
'COUNT CATEGORIES AND SUB CATS
'-----------------------------------------------
strQuery = "SELECT COUNT(PT_ID) AS Categories FROM tblCactuShopProdtype"
Call ExecuteSQL(strQuery, numCursorType, objRecordSet)
response.write(objRecordSet("Categories") & " ")
objRecordSet.close
WriteString("ContentText_Categories")
%>
<%
'-----------------------------------------------
'COUNT PRODUCTS
'-----------------------------------------------
strQuery = "SELECT COUNT(P_ID) AS Products FROM tblCactuShopProducts"
Call ExecuteSQL(strQuery, numCursorType, objRecordSet)
response.write(objRecordSet("Products") & " ")
objRecordSet.close
WriteString("ContentText_Products")
%>
<%
'-----------------------------------------------
'COUNT VERSIONS
'-----------------------------------------------
strQuery = "SELECT COUNT(V_ID) AS Versions FROM tblCactuShopVersions"
Call ExecuteSQL(strQuery, numCursorType, objRecordSet)
response.write(objRecordSet("Versions") & " ")
objRecordSet.close
WriteString("ContentText_Versions")
%>
<%
'------------------------------------
'SECURITY CHECKS
'These check to ensure you have
'changed default configuration. If
'you don't, an attacker could easily
'gain entry to your system.
'------------------------------------
If strThisUserLOGIN_Protected = "y" Then
bolSecurityErrors = False
'Check default database
If strDatabaseType = "access" AND strPathToDatabase = "database/cactushop5.mdb" then
bolSecurityErrors = True
strSecurityErrors = strSecurityErrors & "
" & GetString("Security_DatabasePath") & "
" & vbcrlf
End if
'Check default login settings
theQuery = "SELECT LOGIN_Username FROM tblCactuShopLogins WHERE LOGIN_Username = 'cactushop' AND LOGIN_Password = 'cactushop'"
ExecuteSQL theQuery, numCursorType, objRecordSet
If Not (objRecordSet.BOF And objRecordSet.EOF) Then
bolSecurityErrors = True
strSecurityErrors = strSecurityErrors & "
" & GetString("Security_Password") & "
" & vbcrlf
End if
objRecordSet.Close
'Check license number
If LICENSENUMBER = "DEFAULT" then
bolSecurityErrors = True
strSecurityErrors = strSecurityErrors & "
" & GetString("Security_LicenseNumber") & "
" & vbcrlf
End if
If bolSecurityErrors = True Then
%>
<%
If strThisUserLOGIN_Config = "y" Then
'-----------------------------------------------
'DISPLAY SHOP STATUS AND LINK
'This tells the owner whether the shop is
'currently locked or unlocked and lets them open
'or close it.
'-----------------------------------------------
If Application(LICENSENUMBER & "shopstatus")="hardlocked" Then
%>