سؤالم راجع به این بود که می تونی فایله asp رو هم includ کنی چرا inc.؟؟ در صورتی که من شنیدم در حالت اول امنیت بیشتری داره!!!
و در مورد اول به جایی اینکه 2 بار ، 2 فایل مختلف includ کنی 1 فایلش کن عوضش function های مختلف توش بذار!!! مثلآ:
function splitDate(DateStr,Action)
If Action = "year" Then
splitDate = Cint(left(DateStr,4))
Elseif Action="month" Then
If mid(DateStr,7,1) = "/" Then
SplitDate = Cint(mid(DateStr,6,1))
Elseif mid(DateStr,8,1) = "/" Then
SplitDate = Cint(mid(DateStr,6,2))
End If
Elseif Action="day" Then
If mid(DateStr,8,1) = "/" Then
SplitDate = Cint(mid(DateStr,9))
Elseif mid(DateStr,7,1) = "/" Then
SplitDate = Cint(mid(DateStr,8))
End If
End If
End function
'_________________________________________________ _______________________________________
Function ReverseDate(S)
Dim Temp
Dim Str
IF S="" Or Isnull(S) Then
ReverseDate=S
Else
Temp = Left(S, Len(S) - InStr(S, "/") - 1)
S = Right(S, InStr(S, "/"))
Str = Temp
Temp = Left(S, Len(S) - InStr(S, "/"))
Str = Temp & "/" & Str
S = Right(S, InStr(S, "/") - 1)
Str = S & "/" & Str
ReverseDate=Str
End IF
End Function
'_________________________________________________ _________________________